yptools 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +7 -0
  2. data/bin/yptools +4 -0
  3. data/lib/yptools/help/yp_help.rb +16 -0
  4. data/lib/yptools/install/mvvm/install-template.sh +15 -0
  5. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.h +11 -0
  6. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectObjective-C/___FILEBASENAME___.m +7 -0
  7. data/lib/yptools/install/mvvm/kMVVM.xctemplate/NSObjectSwift/___FILEBASENAME___.swift +7 -0
  8. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon.png +0 -0
  9. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateIcon@2x.png +0 -0
  10. data/lib/yptools/install/mvvm/kMVVM.xctemplate/TemplateInfo.plist +224 -0
  11. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.h +11 -0
  12. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewObjective-C/___FILEBASENAME___.m +7 -0
  13. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewSwift/___FILEBASENAME___.swift +7 -0
  14. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.h +11 -0
  15. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.m +12 -0
  16. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBObjective-C/___FILEBASENAME___.xib +17 -0
  17. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.swift +12 -0
  18. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionReusableViewXIBSwift/___FILEBASENAME___.xib +17 -0
  19. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.h +11 -0
  20. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellObjective-C/___FILEBASENAME___.m +7 -0
  21. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellSwift/___FILEBASENAME___.swift +7 -0
  22. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.h +11 -0
  23. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.m +12 -0
  24. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBObjective-C/___FILEBASENAME___.xib +21 -0
  25. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.swift +12 -0
  26. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewCellXIBSwift/___FILEBASENAME___.xib +21 -0
  27. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.h +11 -0
  28. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerObjective-C/___FILEBASENAME___.m +87 -0
  29. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerSwift/___FILEBASENAME___.swift +83 -0
  30. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.h +11 -0
  31. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.m +87 -0
  32. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBObjective-C/___FILEBASENAME___.xib +31 -0
  33. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.swift +83 -0
  34. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UICollectionViewControllerXIBSwift/___FILEBASENAME___.xib +31 -0
  35. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.h +11 -0
  36. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellObjective-C/___FILEBASENAME___.m +26 -0
  37. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellSwift/___FILEBASENAME___.swift +18 -0
  38. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.h +11 -0
  39. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.m +18 -0
  40. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBObjective-C/___FILEBASENAME___.xib +21 -0
  41. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.swift +18 -0
  42. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewCellXIBSwift/___FILEBASENAME___.xib +21 -0
  43. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.h +11 -0
  44. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerObjective-C/___FILEBASENAME___.m +87 -0
  45. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerSwift/___FILEBASENAME___.swift +84 -0
  46. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.h +11 -0
  47. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.m +103 -0
  48. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBObjective-C/___FILEBASENAME___.xib +26 -0
  49. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.swift +84 -0
  50. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UITableViewControllerXIBSwift/___FILEBASENAME___.xib +26 -0
  51. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.h +11 -0
  52. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___FILEBASENAME___.m +94 -0
  53. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.h +15 -0
  54. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_Proxy___.m +39 -0
  55. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.h +11 -0
  56. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_TableViewCell___.m +30 -0
  57. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.h +24 -0
  58. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerObjective-C/___VARIABLE_ViewModel___.m +51 -0
  59. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerSwift/___FILEBASENAME___.swift +24 -0
  60. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.h +9 -0
  61. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.m +61 -0
  62. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBObjective-C/___FILEBASENAME___.xib +43 -0
  63. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.swift +24 -0
  64. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewControllerXIBSwift/___FILEBASENAME___.xib +22 -0
  65. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.h +11 -0
  66. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewObjective-C/___FILEBASENAME___.m +26 -0
  67. data/lib/yptools/install/mvvm/kMVVM.xctemplate/UIViewSwift/___FILEBASENAME___.swift +15 -0
  68. data/lib/yptools/install/yp_install.rb +40 -0
  69. data/lib/yptools/log/yp_log.rb +11 -0
  70. data/lib/yptools/mgc/yp_makegarbagecode.rb +278 -0
  71. data/lib/yptools.rb +68 -0
  72. metadata +156 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c2a1d81fcf7afcc20f70b784156f180c24d8c74ad8fd4cae17ee98138fb81955
4
+ data.tar.gz: 48c8ba6dfcd339de5568cdc22c84cba2d3add124786889524569fffe3f6f47b7
5
+ SHA512:
6
+ metadata.gz: d3e6f6fe10c5f9bc342e4b75cae6d75112d79b4dbcdc5394e3995b36de223af488919bde79499d82d0877059cad9d89d71573ac1699a7bd67f5e5a5f3913d4f5
7
+ data.tar.gz: 2c4560f3189ad2f750eaf3b493063fdf19ede759155255b29f226e91404f0a51f5e1c374d84e1a9522aca0004400323dea95623a568dd97d4ff0743eb15c2436
data/bin/yptools ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "yptools"
4
+ YPTools.cmd_dispatch(ARGV)
@@ -0,0 +1,16 @@
1
+ class YPHelp
2
+
3
+ def self.message
4
+ puts %q{
5
+
6
+ install: use [yptools install mvvm] 为xcode创建OC语言的mvvm的模板
7
+
8
+ mgc: use [yptools mgc suffix] 在当前目录生成垃圾代码(当前目录需要有.xcworkspace或者.xcodeproj目录)
9
+
10
+ help: use [yptools help] 查看帮助
11
+
12
+
13
+ }
14
+ end
15
+
16
+ end
@@ -0,0 +1,15 @@
1
+
2
+ starttime=$(date +%Y-%m-%d\ %H:%M:%S)
3
+ echo "🚀 开始时间 $starttime 🚀"
4
+ echo `pwd`
5
+
6
+ #export kSourceDir="~/Library/Developer/Xcode/Templates/Source/"
7
+ #export kTemplateUbanDir="~/Library/Developer/Xcode/Templates/Source/JiangXi\ Uban\ MVVM.xctemplate"
8
+
9
+ mkdir -p ~/Library/Developer/Xcode/Templates/Source/
10
+
11
+ rm -rf dir ~/Library/Developer/Xcode/Templates/Source/kMVVM.xctemplate
12
+
13
+ cp -R kMVVM.xctemplate ~/Library/Developer/Xcode/Templates/Source/kMVVM.xctemplate
14
+
15
+ echo "🚀 结束时间 $endtime 🚀"
@@ -0,0 +1,11 @@
1
+ //___FILEHEADER___
2
+
3
+ ___IMPORTHEADER_cocoaTouchSubclass___
4
+
5
+ NS_ASSUME_NONNULL_BEGIN
6
+
7
+ @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
+
9
+ @end
10
+
11
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
1
+ //___FILEHEADER___
2
+
3
+ #import "___FILEBASENAME___.h"
4
+
5
+ @implementation ___FILEBASENAMEASIDENTIFIER___
6
+
7
+ @end
@@ -0,0 +1,7 @@
1
+ //___FILEHEADER___
2
+
3
+ import UIKit
4
+
5
+ class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
+
7
+ }
@@ -0,0 +1,224 @@
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>Kind</key>
6
+ <string>Xcode.IDEFoundation.TextSubstitutionFileTemplateKind</string>
7
+ <key>Description</key>
8
+ <string>A Cocoa Touch class.</string>
9
+ <key>Summary</key>
10
+ <string>A Cocoa Touch class</string>
11
+ <key>SortOrder</key>
12
+ <string>0</string>
13
+ <key>DefaultCompletionName</key>
14
+ <string>MyClass</string>
15
+ <key>Platforms</key>
16
+ <array>
17
+ <string>com.apple.platform.iphoneos</string>
18
+ </array>
19
+ <key>Options</key>
20
+ <array>
21
+ <dict>
22
+ <key>Identifier</key>
23
+ <string>productName</string>
24
+ <key>Required</key>
25
+ <true/>
26
+ <key>Name</key>
27
+ <string>Class:</string>
28
+ <key>Description</key>
29
+ <string>The name of the class to create</string>
30
+ <key>Type</key>
31
+ <string>text</string>
32
+ <key>NotPersisted</key>
33
+ <true/>
34
+ </dict>
35
+ <dict>
36
+ <key>Identifier</key>
37
+ <string>cocoaTouchSubclass</string>
38
+ <key>Required</key>
39
+ <string>YES</string>
40
+ <key>Name</key>
41
+ <string>Subclass of:</string>
42
+ <key>Description</key>
43
+ <string>What class to subclass in the new file</string>
44
+ <key>Type</key>
45
+ <string>class</string>
46
+ <key>Default</key>
47
+ <string>NSObject</string>
48
+ <key>FallbackHeader</key>
49
+ <string>#import &lt;UIKit/UIKit.h&gt;</string>
50
+ <key>Values</key>
51
+ <array>
52
+ <string>NSObject</string>
53
+ <string>UIView</string>
54
+ <string>UIViewController</string>
55
+ <string>UITableViewController</string>
56
+ <string>UITableViewCell</string>
57
+ <string>UICollectionViewController</string>
58
+ <string>UICollectionViewCell</string>
59
+ <string>UICollectionReusableView</string>
60
+ </array>
61
+ <key>Suffixes</key>
62
+ <dict>
63
+ <key>UIViewController</key>
64
+ <string>ViewController</string>
65
+ <key>UITableViewController</key>
66
+ <string>TableViewController</string>
67
+ <key>UITableViewCell</key>
68
+ <string>TableViewCell</string>
69
+ <key>UICollectionViewController</key>
70
+ <string>CollectionViewController</string>
71
+ <key>UICollectionViewCell</key>
72
+ <string>CollectionViewCell</string>
73
+ <key>UICollectionReusableView</key>
74
+ <string>CollectionReusableView</string>
75
+ </dict>
76
+ </dict>
77
+ <dict>
78
+ <key>Default</key>
79
+ <string>ViewModel</string>
80
+ <key>Identifier</key>
81
+ <string>ViewModel</string>
82
+ <key>Required</key>
83
+ <true/>
84
+ <key>Name</key>
85
+ <string>ViewModel:</string>
86
+ <key>Description</key>
87
+ <string>The name of the viewModel to create</string>
88
+ <key>Type</key>
89
+ <string>text</string>
90
+ <key>NotPersisted</key>
91
+ <true/>
92
+ </dict>
93
+ <dict>
94
+ <key>Default</key>
95
+ <string>Proxy</string>
96
+ <key>Identifier</key>
97
+ <string>Proxy</string>
98
+ <key>Required</key>
99
+ <true/>
100
+ <key>Name</key>
101
+ <string>Proxy:</string>
102
+ <key>Description</key>
103
+ <string>The name of the proxy to create</string>
104
+ <key>Type</key>
105
+ <string>text</string>
106
+ <key>NotPersisted</key>
107
+ <true/>
108
+ </dict>
109
+ <dict>
110
+ <key>Default</key>
111
+ <string>TableViewCell</string>
112
+ <key>Identifier</key>
113
+ <string>TableViewCell</string>
114
+ <key>Required</key>
115
+ <true/>
116
+ <key>Name</key>
117
+ <string>TableViewCell:</string>
118
+ <key>Description</key>
119
+ <string>The name of the TableViewCell to create</string>
120
+ <key>Type</key>
121
+ <string>text</string>
122
+ <key>NotPersisted</key>
123
+ <true/>
124
+ </dict>
125
+ <dict>
126
+ <key>Identifier</key>
127
+ <string>XIB</string>
128
+ <key>Name</key>
129
+ <string>Also create XIB file</string>
130
+ <key>Description</key>
131
+ <string>Whether to create a XIB file with the same name</string>
132
+ <key>Type</key>
133
+ <string>checkbox</string>
134
+ <key>RequiredOptions</key>
135
+ <dict>
136
+ <key>cocoaTouchSubclass</key>
137
+ <array>
138
+ <string>UIViewController</string>
139
+ <string>UITableViewController</string>
140
+ <string>UITableViewCell</string>
141
+ <string>UICollectionViewController</string>
142
+ <string>UICollectionViewCell</string>
143
+ <string>UICollectionReusableView</string>
144
+ </array>
145
+ </dict>
146
+ <key>Default</key>
147
+ <string>false</string>
148
+ <key>NotPersisted</key>
149
+ <true/>
150
+ </dict>
151
+ <dict>
152
+ <key>Identifier</key>
153
+ <string>languageChoice</string>
154
+ <key>Required</key>
155
+ <true/>
156
+ <key>Name</key>
157
+ <string>Language:</string>
158
+ <key>Description</key>
159
+ <string>The implementation language</string>
160
+ <key>Type</key>
161
+ <string>popup</string>
162
+ <key>Default</key>
163
+ <string>Objective-C</string>
164
+ <key>Values</key>
165
+ <array>
166
+ <string>Swift</string>
167
+ <string>Objective-C</string>
168
+ </array>
169
+ <key>MainTemplateFiles</key>
170
+ <dict>
171
+ <key>Swift</key>
172
+ <string>___FILEBASENAME___.swift</string>
173
+ <key>Objective-C</key>
174
+ <string>___FILEBASENAME___.m</string>
175
+ </dict>
176
+ <key>AllowedTypes</key>
177
+ <dict>
178
+ <key>Swift</key>
179
+ <array>
180
+ <string>public.swift-source</string>
181
+ </array>
182
+ <key>Objective-C</key>
183
+ <array>
184
+ <string>public.objective-c-source</string>
185
+ <string>public.objective-c-plus-plus-source</string>
186
+ </array>
187
+ </dict>
188
+ </dict>
189
+ <dict>
190
+ <key>Identifier</key>
191
+ <string>safariExtensionType</string>
192
+ <key>Units</key>
193
+ <dict>
194
+ <key>Safari App Extension</key>
195
+ <array>
196
+ <dict>
197
+ <key>RequiredOptions</key>
198
+ <dict>
199
+ <key>languageChoice</key>
200
+ <string>Objective-C</string>
201
+ </dict>
202
+ <key>Nodes</key>
203
+ <array>
204
+ <string>Resources/___VARIABLE_ViewModel___.h</string>
205
+ </array>
206
+ <key>Definitions</key>
207
+ <dict>
208
+ <key>Resources/___VARIABLE_ViewModel___.h</key>
209
+ <dict>
210
+ <key>Path</key>
211
+ <string>___VARIABLE_ViewModel___.h</string>
212
+ <key>Group</key>
213
+ <string>Resources</string>
214
+ <key>SortOrder</key>
215
+ <integer>2</integer>
216
+ </dict>
217
+ </dict>
218
+ </dict>
219
+ </array>
220
+ </dict>
221
+ </dict>
222
+ </array>
223
+ </dict>
224
+ </plist>
@@ -0,0 +1,11 @@
1
+ //___FILEHEADER___
2
+
3
+ ___IMPORTHEADER_cocoaTouchSubclass___
4
+
5
+ NS_ASSUME_NONNULL_BEGIN
6
+
7
+ @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
+
9
+ @end
10
+
11
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
1
+ //___FILEHEADER___
2
+
3
+ #import "___FILEBASENAME___.h"
4
+
5
+ @implementation ___FILEBASENAMEASIDENTIFIER___
6
+
7
+ @end
@@ -0,0 +1,7 @@
1
+ //___FILEHEADER___
2
+
3
+ import UIKit
4
+
5
+ class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
+
7
+ }
@@ -0,0 +1,11 @@
1
+ //___FILEHEADER___
2
+
3
+ ___IMPORTHEADER_cocoaTouchSubclass___
4
+
5
+ NS_ASSUME_NONNULL_BEGIN
6
+
7
+ @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
+
9
+ @end
10
+
11
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,12 @@
1
+ //___FILEHEADER___
2
+
3
+ #import "___FILEBASENAME___.h"
4
+
5
+ @implementation ___FILEBASENAMEASIDENTIFIER___
6
+
7
+ - (void)awakeFromNib {
8
+ [super awakeFromNib];
9
+ // Initialization code
10
+ }
11
+
12
+ @end
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
+ <dependencies>
4
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
5
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
+ </dependencies>
8
+ <objects>
9
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
+ <collectionReusableView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="U6b-Vx-4bR">
12
+ <rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
13
+ <autoresizingMask key="autoresizingMask"/>
14
+ <viewLayoutGuide key="safeArea" id="9Gg-ye-v9C"/>
15
+ </collectionReusableView>
16
+ </objects>
17
+ </document>
@@ -0,0 +1,12 @@
1
+ //___FILEHEADER___
2
+
3
+ import UIKit
4
+
5
+ class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
+
7
+ override func awakeFromNib() {
8
+ super.awakeFromNib()
9
+ // Initialization code
10
+ }
11
+
12
+ }
@@ -0,0 +1,17 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
+ <dependencies>
4
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
5
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
+ </dependencies>
8
+ <objects>
9
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
+ <collectionReusableView opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="U6b-Vx-4bR">
12
+ <rect key="frame" x="0.0" y="0.0" width="320" height="50"/>
13
+ <autoresizingMask key="autoresizingMask"/>
14
+ <viewLayoutGuide key="safeArea" id="VXr-Tz-HHm"/>
15
+ </collectionReusableView>
16
+ </objects>
17
+ </document>
@@ -0,0 +1,11 @@
1
+ //___FILEHEADER___
2
+
3
+ ___IMPORTHEADER_cocoaTouchSubclass___
4
+
5
+ NS_ASSUME_NONNULL_BEGIN
6
+
7
+ @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
+
9
+ @end
10
+
11
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
1
+ //___FILEHEADER___
2
+
3
+ #import "___FILEBASENAME___.h"
4
+
5
+ @implementation ___FILEBASENAMEASIDENTIFIER___
6
+
7
+ @end
@@ -0,0 +1,7 @@
1
+ //___FILEHEADER___
2
+
3
+ import UIKit
4
+
5
+ class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
+
7
+ }
@@ -0,0 +1,11 @@
1
+ //___FILEHEADER___
2
+
3
+ ___IMPORTHEADER_cocoaTouchSubclass___
4
+
5
+ NS_ASSUME_NONNULL_BEGIN
6
+
7
+ @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
+
9
+ @end
10
+
11
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,12 @@
1
+ //___FILEHEADER___
2
+
3
+ #import "___FILEBASENAME___.h"
4
+
5
+ @implementation ___FILEBASENAMEASIDENTIFIER___
6
+
7
+ - (void)awakeFromNib {
8
+ [super awakeFromNib];
9
+ // Initialization code
10
+ }
11
+
12
+ @end
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
+ <dependencies>
4
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
5
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
+ </dependencies>
8
+ <objects>
9
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
+ <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="___FILEBASENAMEASIDENTIFIER___">
12
+ <rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
13
+ <autoresizingMask key="autoresizingMask"/>
14
+ <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
15
+ <rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
16
+ <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
17
+ </view>
18
+ <viewLayoutGuide key="safeArea" id="SEy-5g-ep8"/>
19
+ </collectionViewCell>
20
+ </objects>
21
+ </document>
@@ -0,0 +1,12 @@
1
+ //___FILEHEADER___
2
+
3
+ import UIKit
4
+
5
+ class ___FILEBASENAMEASIDENTIFIER___: ___VARIABLE_cocoaTouchSubclass___ {
6
+
7
+ override func awakeFromNib() {
8
+ super.awakeFromNib()
9
+ // Initialization code
10
+ }
11
+
12
+ }
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13142" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
3
+ <dependencies>
4
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12042"/>
5
+ <capability name="Safe area layout guides" minToolsVersion="9.0"/>
6
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7
+ </dependencies>
8
+ <objects>
9
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
10
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
11
+ <collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="___FILEBASENAMEASIDENTIFIER___" customModuleProvider="target">
12
+ <rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
13
+ <autoresizingMask key="autoresizingMask"/>
14
+ <view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
15
+ <rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
16
+ <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
17
+ </view>
18
+ <viewLayoutGuide key="safeArea" id="ZTg-uK-7eu"/>
19
+ </collectionViewCell>
20
+ </objects>
21
+ </document>
@@ -0,0 +1,11 @@
1
+ //___FILEHEADER___
2
+
3
+ ___IMPORTHEADER_cocoaTouchSubclass___
4
+
5
+ NS_ASSUME_NONNULL_BEGIN
6
+
7
+ @interface ___FILEBASENAMEASIDENTIFIER___ : ___VARIABLE_cocoaTouchSubclass___
8
+
9
+ @end
10
+
11
+ NS_ASSUME_NONNULL_END
@@ -0,0 +1,87 @@
1
+ //___FILEHEADER___
2
+
3
+ #import "___FILEBASENAME___.h"
4
+
5
+ @interface ___FILEBASENAMEASIDENTIFIER___ ()
6
+
7
+ @end
8
+
9
+ @implementation ___FILEBASENAMEASIDENTIFIER___
10
+
11
+ static NSString * const reuseIdentifier = @"Cell";
12
+
13
+ - (void)viewDidLoad {
14
+ [super viewDidLoad];
15
+
16
+ // Uncomment the following line to preserve selection between presentations
17
+ // self.clearsSelectionOnViewWillAppear = NO;
18
+
19
+ // Register cell classes
20
+ [self.collectionView registerClass:[UICollectionViewCell class] forCellWithReuseIdentifier:reuseIdentifier];
21
+
22
+ // Do any additional setup after loading the view.
23
+ }
24
+
25
+ /*
26
+ #pragma mark - Navigation
27
+
28
+ // In a storyboard-based application, you will often want to do a little preparation before navigation
29
+ - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
30
+ // Get the new view controller using [segue destinationViewController].
31
+ // Pass the selected object to the new view controller.
32
+ }
33
+ */
34
+
35
+ #pragma mark <UICollectionViewDataSource>
36
+
37
+ - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
38
+ #warning Incomplete implementation, return the number of sections
39
+ return 0;
40
+ }
41
+
42
+
43
+ - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
44
+ #warning Incomplete implementation, return the number of items
45
+ return 0;
46
+ }
47
+
48
+ - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
49
+ UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:reuseIdentifier forIndexPath:indexPath];
50
+
51
+ // Configure the cell
52
+
53
+ return cell;
54
+ }
55
+
56
+ #pragma mark <UICollectionViewDelegate>
57
+
58
+ /*
59
+ // Uncomment this method to specify if the specified item should be highlighted during tracking
60
+ - (BOOL)collectionView:(UICollectionView *)collectionView shouldHighlightItemAtIndexPath:(NSIndexPath *)indexPath {
61
+ return YES;
62
+ }
63
+ */
64
+
65
+ /*
66
+ // Uncomment this method to specify if the specified item should be selected
67
+ - (BOOL)collectionView:(UICollectionView *)collectionView shouldSelectItemAtIndexPath:(NSIndexPath *)indexPath {
68
+ return YES;
69
+ }
70
+ */
71
+
72
+ /*
73
+ // Uncomment these methods to specify if an action menu should be displayed for the specified item, and react to actions performed on the item
74
+ - (BOOL)collectionView:(UICollectionView *)collectionView shouldShowMenuForItemAtIndexPath:(NSIndexPath *)indexPath {
75
+ return NO;
76
+ }
77
+
78
+ - (BOOL)collectionView:(UICollectionView *)collectionView canPerformAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
79
+ return NO;
80
+ }
81
+
82
+ - (void)collectionView:(UICollectionView *)collectionView performAction:(SEL)action forItemAtIndexPath:(NSIndexPath *)indexPath withSender:(id)sender {
83
+
84
+ }
85
+ */
86
+
87
+ @end