Skip to content

Commit 7d35e3a

Browse files
committed
Add demo project
1 parent ea27bf2 commit 7d35e3a

File tree

13 files changed

+623
-2
lines changed

13 files changed

+623
-2
lines changed

CollapseTableView.xcodeproj/project.pbxproj

+191-2
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,68 @@
99
/* Begin PBXBuildFile section */
1010
4901DBBD22ABC747008CC400 /* CollapseSectionHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4901DBBB22ABC747008CC400 /* CollapseSectionHeader.swift */; };
1111
4901DBBE22ABC747008CC400 /* CollapseTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4901DBBC22ABC747008CC400 /* CollapseTableView.swift */; };
12+
4919EFCE22AC25D400CD5A74 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4919EFCD22AC25D400CD5A74 /* AppDelegate.swift */; };
13+
4919EFD022AC25D400CD5A74 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4919EFCF22AC25D400CD5A74 /* ViewController.swift */; };
14+
4919EFD322AC25D400CD5A74 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4919EFD122AC25D400CD5A74 /* Main.storyboard */; };
15+
4919EFD522AC25D500CD5A74 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4919EFD422AC25D500CD5A74 /* Assets.xcassets */; };
16+
4919EFD822AC25D500CD5A74 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4919EFD622AC25D500CD5A74 /* LaunchScreen.storyboard */; };
17+
4919EFDF22AC263D00CD5A74 /* SectionHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4919EFDD22AC263D00CD5A74 /* SectionHeaderView.swift */; };
18+
4919EFE022AC263D00CD5A74 /* SectionHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4919EFDE22AC263D00CD5A74 /* SectionHeaderView.xib */; };
19+
4919EFE122AC27A200CD5A74 /* CollapseTableView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4922F97122AAE53700967BB5 /* CollapseTableView.framework */; };
20+
4919EFE222AC27A200CD5A74 /* CollapseTableView.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 4922F97122AAE53700967BB5 /* CollapseTableView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
1221
4922F97622AAE53700967BB5 /* CollapseTableView.h in Headers */ = {isa = PBXBuildFile; fileRef = 4922F97422AAE53700967BB5 /* CollapseTableView.h */; settings = {ATTRIBUTES = (Public, ); }; };
1322
/* End PBXBuildFile section */
1423

24+
/* Begin PBXContainerItemProxy section */
25+
4919EFE322AC27A200CD5A74 /* PBXContainerItemProxy */ = {
26+
isa = PBXContainerItemProxy;
27+
containerPortal = 4922F96822AAE53700967BB5 /* Project object */;
28+
proxyType = 1;
29+
remoteGlobalIDString = 4922F97022AAE53700967BB5;
30+
remoteInfo = CollapseTableView;
31+
};
32+
/* End PBXContainerItemProxy section */
33+
34+
/* Begin PBXCopyFilesBuildPhase section */
35+
4919EFE522AC27A200CD5A74 /* Embed Frameworks */ = {
36+
isa = PBXCopyFilesBuildPhase;
37+
buildActionMask = 2147483647;
38+
dstPath = "";
39+
dstSubfolderSpec = 10;
40+
files = (
41+
4919EFE222AC27A200CD5A74 /* CollapseTableView.framework in Embed Frameworks */,
42+
);
43+
name = "Embed Frameworks";
44+
runOnlyForDeploymentPostprocessing = 0;
45+
};
46+
/* End PBXCopyFilesBuildPhase section */
47+
1548
/* Begin PBXFileReference section */
1649
4901DBBB22ABC747008CC400 /* CollapseSectionHeader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollapseSectionHeader.swift; sourceTree = "<group>"; };
1750
4901DBBC22ABC747008CC400 /* CollapseTableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollapseTableView.swift; sourceTree = "<group>"; };
51+
4919EFCB22AC25D400CD5A74 /* CollapseTableViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CollapseTableViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
52+
4919EFCD22AC25D400CD5A74 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
53+
4919EFCF22AC25D400CD5A74 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
54+
4919EFD222AC25D400CD5A74 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
55+
4919EFD422AC25D500CD5A74 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
56+
4919EFD722AC25D500CD5A74 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
57+
4919EFD922AC25D500CD5A74 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
58+
4919EFDD22AC263D00CD5A74 /* SectionHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SectionHeaderView.swift; sourceTree = "<group>"; };
59+
4919EFDE22AC263D00CD5A74 /* SectionHeaderView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SectionHeaderView.xib; sourceTree = "<group>"; };
1860
4922F97122AAE53700967BB5 /* CollapseTableView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CollapseTableView.framework; sourceTree = BUILT_PRODUCTS_DIR; };
1961
4922F97422AAE53700967BB5 /* CollapseTableView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CollapseTableView.h; sourceTree = "<group>"; };
2062
4922F97522AAE53700967BB5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2163
/* End PBXFileReference section */
2264

2365
/* Begin PBXFrameworksBuildPhase section */
66+
4919EFC822AC25D400CD5A74 /* Frameworks */ = {
67+
isa = PBXFrameworksBuildPhase;
68+
buildActionMask = 2147483647;
69+
files = (
70+
4919EFE122AC27A200CD5A74 /* CollapseTableView.framework in Frameworks */,
71+
);
72+
runOnlyForDeploymentPostprocessing = 0;
73+
};
2474
4922F96E22AAE53700967BB5 /* Frameworks */ = {
2575
isa = PBXFrameworksBuildPhase;
2676
buildActionMask = 2147483647;
@@ -40,10 +90,26 @@
4090
path = Source;
4191
sourceTree = "<group>";
4292
};
93+
4919EFCC22AC25D400CD5A74 /* CollapseTableViewDemo */ = {
94+
isa = PBXGroup;
95+
children = (
96+
4919EFCD22AC25D400CD5A74 /* AppDelegate.swift */,
97+
4919EFDD22AC263D00CD5A74 /* SectionHeaderView.swift */,
98+
4919EFDE22AC263D00CD5A74 /* SectionHeaderView.xib */,
99+
4919EFCF22AC25D400CD5A74 /* ViewController.swift */,
100+
4919EFD122AC25D400CD5A74 /* Main.storyboard */,
101+
4919EFD422AC25D500CD5A74 /* Assets.xcassets */,
102+
4919EFD622AC25D500CD5A74 /* LaunchScreen.storyboard */,
103+
4919EFD922AC25D500CD5A74 /* Info.plist */,
104+
);
105+
path = CollapseTableViewDemo;
106+
sourceTree = "<group>";
107+
};
43108
4922F96722AAE53700967BB5 = {
44109
isa = PBXGroup;
45110
children = (
46111
4922F97322AAE53700967BB5 /* CollapseTableView */,
112+
4919EFCC22AC25D400CD5A74 /* CollapseTableViewDemo */,
47113
4922F97222AAE53700967BB5 /* Products */,
48114
);
49115
sourceTree = "<group>";
@@ -52,6 +118,7 @@
52118
isa = PBXGroup;
53119
children = (
54120
4922F97122AAE53700967BB5 /* CollapseTableView.framework */,
121+
4919EFCB22AC25D400CD5A74 /* CollapseTableViewDemo.app */,
55122
);
56123
name = Products;
57124
sourceTree = "<group>";
@@ -80,6 +147,25 @@
80147
/* End PBXHeadersBuildPhase section */
81148

82149
/* Begin PBXNativeTarget section */
150+
4919EFCA22AC25D400CD5A74 /* CollapseTableViewDemo */ = {
151+
isa = PBXNativeTarget;
152+
buildConfigurationList = 4919EFDC22AC25D500CD5A74 /* Build configuration list for PBXNativeTarget "CollapseTableViewDemo" */;
153+
buildPhases = (
154+
4919EFC722AC25D400CD5A74 /* Sources */,
155+
4919EFC822AC25D400CD5A74 /* Frameworks */,
156+
4919EFC922AC25D400CD5A74 /* Resources */,
157+
4919EFE522AC27A200CD5A74 /* Embed Frameworks */,
158+
);
159+
buildRules = (
160+
);
161+
dependencies = (
162+
4919EFE422AC27A200CD5A74 /* PBXTargetDependency */,
163+
);
164+
name = CollapseTableViewDemo;
165+
productName = CollapseTableViewDemo;
166+
productReference = 4919EFCB22AC25D400CD5A74 /* CollapseTableViewDemo.app */;
167+
productType = "com.apple.product-type.application";
168+
};
83169
4922F97022AAE53700967BB5 /* CollapseTableView */ = {
84170
isa = PBXNativeTarget;
85171
buildConfigurationList = 4922F97922AAE53700967BB5 /* Build configuration list for PBXNativeTarget "CollapseTableView" */;
@@ -104,9 +190,13 @@
104190
4922F96822AAE53700967BB5 /* Project object */ = {
105191
isa = PBXProject;
106192
attributes = {
193+
LastSwiftUpdateCheck = 1020;
107194
LastUpgradeCheck = 1020;
108195
ORGANIZATIONNAME = "Serhii Kharauzov";
109196
TargetAttributes = {
197+
4919EFCA22AC25D400CD5A74 = {
198+
CreatedOnToolsVersion = 10.2;
199+
};
110200
4922F97022AAE53700967BB5 = {
111201
CreatedOnToolsVersion = 10.2;
112202
};
@@ -118,18 +208,31 @@
118208
hasScannedForEncodings = 0;
119209
knownRegions = (
120210
en,
211+
Base,
121212
);
122213
mainGroup = 4922F96722AAE53700967BB5;
123214
productRefGroup = 4922F97222AAE53700967BB5 /* Products */;
124215
projectDirPath = "";
125216
projectRoot = "";
126217
targets = (
127218
4922F97022AAE53700967BB5 /* CollapseTableView */,
219+
4919EFCA22AC25D400CD5A74 /* CollapseTableViewDemo */,
128220
);
129221
};
130222
/* End PBXProject section */
131223

132224
/* Begin PBXResourcesBuildPhase section */
225+
4919EFC922AC25D400CD5A74 /* Resources */ = {
226+
isa = PBXResourcesBuildPhase;
227+
buildActionMask = 2147483647;
228+
files = (
229+
4919EFD822AC25D500CD5A74 /* LaunchScreen.storyboard in Resources */,
230+
4919EFD522AC25D500CD5A74 /* Assets.xcassets in Resources */,
231+
4919EFD322AC25D400CD5A74 /* Main.storyboard in Resources */,
232+
4919EFE022AC263D00CD5A74 /* SectionHeaderView.xib in Resources */,
233+
);
234+
runOnlyForDeploymentPostprocessing = 0;
235+
};
133236
4922F96F22AAE53700967BB5 /* Resources */ = {
134237
isa = PBXResourcesBuildPhase;
135238
buildActionMask = 2147483647;
@@ -140,6 +243,16 @@
140243
/* End PBXResourcesBuildPhase section */
141244

142245
/* Begin PBXSourcesBuildPhase section */
246+
4919EFC722AC25D400CD5A74 /* Sources */ = {
247+
isa = PBXSourcesBuildPhase;
248+
buildActionMask = 2147483647;
249+
files = (
250+
4919EFD022AC25D400CD5A74 /* ViewController.swift in Sources */,
251+
4919EFDF22AC263D00CD5A74 /* SectionHeaderView.swift in Sources */,
252+
4919EFCE22AC25D400CD5A74 /* AppDelegate.swift in Sources */,
253+
);
254+
runOnlyForDeploymentPostprocessing = 0;
255+
};
143256
4922F96D22AAE53700967BB5 /* Sources */ = {
144257
isa = PBXSourcesBuildPhase;
145258
buildActionMask = 2147483647;
@@ -151,7 +264,76 @@
151264
};
152265
/* End PBXSourcesBuildPhase section */
153266

267+
/* Begin PBXTargetDependency section */
268+
4919EFE422AC27A200CD5A74 /* PBXTargetDependency */ = {
269+
isa = PBXTargetDependency;
270+
target = 4922F97022AAE53700967BB5 /* CollapseTableView */;
271+
targetProxy = 4919EFE322AC27A200CD5A74 /* PBXContainerItemProxy */;
272+
};
273+
/* End PBXTargetDependency section */
274+
275+
/* Begin PBXVariantGroup section */
276+
4919EFD122AC25D400CD5A74 /* Main.storyboard */ = {
277+
isa = PBXVariantGroup;
278+
children = (
279+
4919EFD222AC25D400CD5A74 /* Base */,
280+
);
281+
name = Main.storyboard;
282+
sourceTree = "<group>";
283+
};
284+
4919EFD622AC25D500CD5A74 /* LaunchScreen.storyboard */ = {
285+
isa = PBXVariantGroup;
286+
children = (
287+
4919EFD722AC25D500CD5A74 /* Base */,
288+
);
289+
name = LaunchScreen.storyboard;
290+
sourceTree = "<group>";
291+
};
292+
/* End PBXVariantGroup section */
293+
154294
/* Begin XCBuildConfiguration section */
295+
4919EFDA22AC25D500CD5A74 /* Debug */ = {
296+
isa = XCBuildConfiguration;
297+
buildSettings = {
298+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
299+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
300+
CODE_SIGN_STYLE = Manual;
301+
DEVELOPMENT_TEAM = "";
302+
INFOPLIST_FILE = CollapseTableViewDemo/Info.plist;
303+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
304+
LD_RUNPATH_SEARCH_PATHS = (
305+
"$(inherited)",
306+
"@executable_path/Frameworks",
307+
);
308+
PRODUCT_BUNDLE_IDENTIFIER = sk.CollapseTableViewDemo;
309+
PRODUCT_NAME = "$(TARGET_NAME)";
310+
PROVISIONING_PROFILE_SPECIFIER = "";
311+
SWIFT_VERSION = 5.0;
312+
TARGETED_DEVICE_FAMILY = "1,2";
313+
};
314+
name = Debug;
315+
};
316+
4919EFDB22AC25D500CD5A74 /* Release */ = {
317+
isa = XCBuildConfiguration;
318+
buildSettings = {
319+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
320+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
321+
CODE_SIGN_STYLE = Manual;
322+
DEVELOPMENT_TEAM = "";
323+
INFOPLIST_FILE = CollapseTableViewDemo/Info.plist;
324+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
325+
LD_RUNPATH_SEARCH_PATHS = (
326+
"$(inherited)",
327+
"@executable_path/Frameworks",
328+
);
329+
PRODUCT_BUNDLE_IDENTIFIER = sk.CollapseTableViewDemo;
330+
PRODUCT_NAME = "$(TARGET_NAME)";
331+
PROVISIONING_PROFILE_SPECIFIER = "";
332+
SWIFT_VERSION = 5.0;
333+
TARGETED_DEVICE_FAMILY = "1,2";
334+
};
335+
name = Release;
336+
};
155337
4922F97722AAE53700967BB5 /* Debug */ = {
156338
isa = XCBuildConfiguration;
157339
buildSettings = {
@@ -280,7 +462,6 @@
280462
CODE_SIGN_IDENTITY = "";
281463
CODE_SIGN_STYLE = Manual;
282464
DEFINES_MODULE = YES;
283-
DEVELOPMENT_TEAM = "";
284465
DYLIB_COMPATIBILITY_VERSION = 1;
285466
DYLIB_CURRENT_VERSION = 1;
286467
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -307,7 +488,6 @@
307488
CODE_SIGN_IDENTITY = "";
308489
CODE_SIGN_STYLE = Manual;
309490
DEFINES_MODULE = YES;
310-
DEVELOPMENT_TEAM = "";
311491
DYLIB_COMPATIBILITY_VERSION = 1;
312492
DYLIB_CURRENT_VERSION = 1;
313493
DYLIB_INSTALL_NAME_BASE = "@rpath";
@@ -331,6 +511,15 @@
331511
/* End XCBuildConfiguration section */
332512

333513
/* Begin XCConfigurationList section */
514+
4919EFDC22AC25D500CD5A74 /* Build configuration list for PBXNativeTarget "CollapseTableViewDemo" */ = {
515+
isa = XCConfigurationList;
516+
buildConfigurations = (
517+
4919EFDA22AC25D500CD5A74 /* Debug */,
518+
4919EFDB22AC25D500CD5A74 /* Release */,
519+
);
520+
defaultConfigurationIsVisible = 0;
521+
defaultConfigurationName = Release;
522+
};
334523
4922F96B22AAE53700967BB5 /* Build configuration list for PBXProject "CollapseTableView" */ = {
335524
isa = XCConfigurationList;
336525
buildConfigurations = (

CollapseTableView.xcodeproj/xcuserdata/serhii_kharauzov.xcuserdatad/xcschemes/xcschememanagement.plist

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
<key>orderHint</key>
1010
<integer>0</integer>
1111
</dict>
12+
<key>CollapseTableViewDemo.xcscheme_^#shared#^_</key>
13+
<dict>
14+
<key>orderHint</key>
15+
<integer>1</integer>
16+
</dict>
1217
</dict>
1318
</dict>
1419
</plist>
+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
//
2+
// AppDelegate.swift
3+
// CollapseTableViewDemo
4+
//
5+
// Created by Serhii Kharauzov on 6/8/19.
6+
// Copyright © 2019 Serhii Kharauzov. All rights reserved.
7+
//
8+
9+
import UIKit
10+
11+
@UIApplicationMain
12+
class AppDelegate: UIResponder, UIApplicationDelegate {
13+
14+
var window: UIWindow?
15+
16+
17+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
18+
// Override point for customization after application launch.
19+
return true
20+
}
21+
22+
func applicationWillResignActive(_ application: UIApplication) {
23+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
24+
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
25+
}
26+
27+
func applicationDidEnterBackground(_ application: UIApplication) {
28+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
29+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30+
}
31+
32+
func applicationWillEnterForeground(_ application: UIApplication) {
33+
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
34+
}
35+
36+
func applicationDidBecomeActive(_ application: UIApplication) {
37+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
38+
}
39+
40+
func applicationWillTerminate(_ application: UIApplication) {
41+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42+
}
43+
44+
45+
}
46+

0 commit comments

Comments
 (0)