|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 3 | +<plist version="1.0"> |
| 4 | +<dict> |
| 5 | + <key>IDECodeSnippetCompletionPrefix</key> |
| 6 | + <string>swift-asdisplaynode-lifecycle</string> |
| 7 | + <key>IDECodeSnippetCompletionScopes</key> |
| 8 | + <array> |
| 9 | + <string>ClassImplementation</string> |
| 10 | + </array> |
| 11 | + <key>IDECodeSnippetContents</key> |
| 12 | + <string> //MARK: - vars |
| 13 | + |
| 14 | + //MARK: - subnodes |
| 15 | + |
| 16 | + //MARK: - constants |
| 17 | + fileprivate struct localConstants { |
| 18 | + static let insets = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 16) |
| 19 | + } |
| 20 | + |
| 21 | + //MARK: - init |
| 22 | + override init() { |
| 23 | + super.init() |
| 24 | + initialSetup() |
| 25 | + } |
| 26 | + |
| 27 | + //MARK: - ASDisplayNode override |
| 28 | + override func didLoad() { |
| 29 | + super.didLoad() |
| 30 | + setupView() |
| 31 | + } |
| 32 | + |
| 33 | + override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -> ASLayoutSpec { |
| 34 | + return ASInsetLayoutSpec(insets: localConstants.insets, child: <#node#>) |
| 35 | + } |
| 36 | + |
| 37 | + //MARK: - private methods |
| 38 | + private func initialSetup() { |
| 39 | + automaticallyManagesSubnodes = true |
| 40 | + } |
| 41 | + |
| 42 | + private func setupView() { |
| 43 | + //backgroundColor = UIColor.white |
| 44 | + } |
| 45 | + |
| 46 | +</string> |
| 47 | + <key>IDECodeSnippetIdentifier</key> |
| 48 | + <string>A6DF07C7-B8BA-427E-AA74-F111DB71AC91</string> |
| 49 | + <key>IDECodeSnippetLanguage</key> |
| 50 | + <string>Xcode.SourceCodeLanguage.Swift</string> |
| 51 | + <key>IDECodeSnippetPlatformFamily</key> |
| 52 | + <string>iphoneos</string> |
| 53 | + <key>IDECodeSnippetTitle</key> |
| 54 | + <string>ASDisplayNode setup</string> |
| 55 | + <key>IDECodeSnippetUserSnippet</key> |
| 56 | + <true/> |
| 57 | + <key>IDECodeSnippetVersion</key> |
| 58 | + <integer>0</integer> |
| 59 | +</dict> |
| 60 | +</plist> |
0 commit comments