Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions CodeSnippets/StyleShare - Node.codesnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string></string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>All</string>
</array>
<key>IDECodeSnippetContents</key>
<string>import StyleShareReactive
import StyleShareUI

final class &lt;#name#&gt;: ASDisplayNode {

// MARK: Module

struct Payload {
}


// MARK: Constants

private enum Typo {
}


// MARK: Properties

private let payload: Payload


// MARK: UI


// MARK: Initializing

init(payload: Payload) {
self.payload = payload
super.init()
self.automaticallyManagesSubnodes = true
}


// MARK: LayoutSpec

override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -&gt; ASLayoutSpec {
return ASInsetLayoutSpec()
}

}</string>
<key>IDECodeSnippetIdentifier</key>
<string>5DC94BAC-BAF9-4300-8D39-9B6964D4E3D1</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - Node</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>2</integer>
</dict>
</plist>
32 changes: 32 additions & 0 deletions CodeSnippets/StyleShare - Pure Module.codesnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string></string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>All</string>
</array>
<key>IDECodeSnippetContents</key>
<string>// MARK: Module

struct Dependency {
}

struct Payload {
}</string>
<key>IDECodeSnippetIdentifier</key>
<string>109BC502-5C76-4FE2-85CF-FC329007A1EE</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - Pure Module</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>
69 changes: 69 additions & 0 deletions CodeSnippets/StyleShare - Reactor.codesnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string></string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>All</string>
</array>
<key>IDECodeSnippetContents</key>
<string>import StyleShareReactive

final class &lt;#name#&gt;: Reactor, FactoryModule {

// MARK: Module

struct Dependency {
}

struct Payload {
}


enum Action {
}

enum Mutation {
}

struct State {
}


// MARK: Properties

let initialState: State


// MARK: Initializing

init(dependency: Dependency, payload: Payload) {
defer { _ = self.state }
self.initialState = State()
}

func mutate(action: Action) -&gt; Observable&lt;Mutation&gt; {
return .empty()
}

func reduce(state: State, mutation: Mutation) -&gt; State {
return state
}
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>84D36537-6B60-4299-80E8-122607BF40D9</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - Reactor</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>
38 changes: 38 additions & 0 deletions CodeSnippets/StyleShare - Test.codesnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string></string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>All</string>
</array>
<key>IDECodeSnippetContents</key>
<string>@testable import &lt;#name#&gt;

final class &lt;#name#&gt;: QuickSpec {
override func spec() {
}
}

extension Factory where Module == &lt;#name#&gt; {
static func dummy() -&gt; Factory {
return .init(dependency: .init())
}
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>2633990D-B131-4D0A-9BEC-2B2B7965921F</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - Test</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>
78 changes: 78 additions & 0 deletions CodeSnippets/StyleShare - UIViewController.codesnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDECodeSnippetCompletionPrefix</key>
<string></string>
<key>IDECodeSnippetCompletionScopes</key>
<array>
<string>All</string>
</array>
<key>IDECodeSnippetContents</key>
<string>import StyleShareUI

final class &lt;#name#&gt;: BaseViewController, View, FactoryModule {

// MARK: Module

struct Dependency {
}

struct Payload {
}


// MARK: Constants

private enum Typo {
}


// MARK: Properties


// MARK: UI


// MARK: Initializing

init(dependency: Dependency, payload: Payload) {
defer { self.reactor = payload.reactor }
super.init()
}


// MARK: View Life Cycle

override func viewDidLoad() {
super.viewDidLoad()
}


// MARK: Binding

func bind(reactor: &lt;#name#&gt;) {
}


// MARK: Layout

override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -&gt; ASLayoutSpec {
return ASLayoutSpec()
}
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>96005E4B-F7F1-493E-8858-2C6D6FB8C537</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - UIViewController</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>