Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenient snippets with FlexLayout using in StyleShare #6

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
<?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

public final class &lt;#Name#&gt;: BaseCollectionViewCell {

// MARK: Module

public struct Payload {
public init () {
}
}


// MARK: Constants

private enum Typo {
}


// MARK: Properties

private var payload: Payload?


// MARK: UI


// MARK: Initializing

public override init(frame: CGRect) {
super.init(frame: frame)
}

public required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}


// MARK: Configure

public func configure(payload: Payload) {
self.payload = payload
}


// MARK: Layout

public override func defineFlexContainer() {
}

public override func layoutFlexContainer() {
}
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>9481554E-73B5-44A4-9437-D382A9BA1042</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - UICollectionViewCell (FlexLayout)</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?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

public final class &lt;#Name#&gt;: BaseCollectionViewCell, ConfiguratorModule {

// MARK: Module

public struct Dependency {
}

public struct Payload {
public init () {
}
}


// MARK: Constants

private enum Typo {
}


// MARK: Properties

private var dependency: Dependency?
private var payload: Payload?


// MARK: UI


// MARK: Initializing

public override init(frame: CGRect) {
super.init(frame: frame)
}

public required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}


// MARK: Configure

public func configure(dependency: Dependency, payload: Payload) {
self.dependency = dependency
self.payload = payload
}


// MARK: Layout

public override func defineFlexContainer() {
}

public override func layoutFlexContainer() {
}
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>E0373661-D9B3-4DE9-9925-EF0AE06332D6</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - UICollectionViewCell (FlexLayout, Pure)</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?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

public final class &lt;#Name#&gt;: BaseCollectionViewCell, View, ConfiguratorModule {

// MARK: Module

public struct Dependency {
}

public struct Payload {
let reactor: &lt;#Reactor#&gt;

public init (reactor: &lt;#Reactor#&gt;) {
self.reactor = reactor
}
}


// MARK: Constants

private enum Typo {
}


// MARK: Properties

private var dependency: Dependency?
private var payload: Payload?


// MARK: UI


// MARK: Initializing

public override init(frame: CGRect) {
super.init(frame: frame)
}

public required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}


// MARK: Configure

public func configure(dependency: Dependency, payload: Payload) {
self.dependency = dependency
self.payload = payload
}


// MARK: Binding

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


// MARK: Layout

public override func defineFlexContainer() {
}

public override func layoutFlexContainer() {
}
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>0120A327-EB83-4499-9925-16797EEB6327</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - UICollectionViewCell (FlexLayout, Pure, ReactorKit)</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>
63 changes: 63 additions & 0 deletions CodeSnippets/StyleShare - UIView (FlexLayout).codesnippet
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?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

public final class &lt;#Name#&gt;: BaseView {

// MARK: Constants

private enum Typo {
}


// MARK: Properties



// MARK: UI


// MARK: Initializing

public override init(frame: CGRect) {
super.init(frame: frame)
}

public required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}


// MARK: Layout

public override func defineFlexContainer() {
}

public override func layoutFlexContainer() {
}
}
</string>
<key>IDECodeSnippetIdentifier</key>
<string>381FA7E8-D950-4F5C-8F3A-5FE682C8AF5E</string>
<key>IDECodeSnippetLanguage</key>
<string>Xcode.SourceCodeLanguage.Swift</string>
<key>IDECodeSnippetSummary</key>
<string></string>
<key>IDECodeSnippetTitle</key>
<string>StyleShare - UIView (FlexLayout)</string>
<key>IDECodeSnippetUserSnippet</key>
<true/>
<key>IDECodeSnippetVersion</key>
<integer>0</integer>
</dict>
</plist>
Loading