Skip to content

Commit

Permalink
Add demo project
Browse files Browse the repository at this point in the history
  • Loading branch information
Kharauzov committed Jun 8, 2019
1 parent ea27bf2 commit 7d35e3a
Show file tree
Hide file tree
Showing 13 changed files with 623 additions and 2 deletions.
193 changes: 191 additions & 2 deletions CollapseTableView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,68 @@
/* Begin PBXBuildFile section */
4901DBBD22ABC747008CC400 /* CollapseSectionHeader.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4901DBBB22ABC747008CC400 /* CollapseSectionHeader.swift */; };
4901DBBE22ABC747008CC400 /* CollapseTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4901DBBC22ABC747008CC400 /* CollapseTableView.swift */; };
4919EFCE22AC25D400CD5A74 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4919EFCD22AC25D400CD5A74 /* AppDelegate.swift */; };
4919EFD022AC25D400CD5A74 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4919EFCF22AC25D400CD5A74 /* ViewController.swift */; };
4919EFD322AC25D400CD5A74 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4919EFD122AC25D400CD5A74 /* Main.storyboard */; };
4919EFD522AC25D500CD5A74 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4919EFD422AC25D500CD5A74 /* Assets.xcassets */; };
4919EFD822AC25D500CD5A74 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4919EFD622AC25D500CD5A74 /* LaunchScreen.storyboard */; };
4919EFDF22AC263D00CD5A74 /* SectionHeaderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4919EFDD22AC263D00CD5A74 /* SectionHeaderView.swift */; };
4919EFE022AC263D00CD5A74 /* SectionHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4919EFDE22AC263D00CD5A74 /* SectionHeaderView.xib */; };
4919EFE122AC27A200CD5A74 /* CollapseTableView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4922F97122AAE53700967BB5 /* CollapseTableView.framework */; };
4919EFE222AC27A200CD5A74 /* CollapseTableView.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 4922F97122AAE53700967BB5 /* CollapseTableView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
4922F97622AAE53700967BB5 /* CollapseTableView.h in Headers */ = {isa = PBXBuildFile; fileRef = 4922F97422AAE53700967BB5 /* CollapseTableView.h */; settings = {ATTRIBUTES = (Public, ); }; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
4919EFE322AC27A200CD5A74 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 4922F96822AAE53700967BB5 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 4922F97022AAE53700967BB5;
remoteInfo = CollapseTableView;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
4919EFE522AC27A200CD5A74 /* Embed Frameworks */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 10;
files = (
4919EFE222AC27A200CD5A74 /* CollapseTableView.framework in Embed Frameworks */,
);
name = "Embed Frameworks";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
4901DBBB22ABC747008CC400 /* CollapseSectionHeader.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollapseSectionHeader.swift; sourceTree = "<group>"; };
4901DBBC22ABC747008CC400 /* CollapseTableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = CollapseTableView.swift; sourceTree = "<group>"; };
4919EFCB22AC25D400CD5A74 /* CollapseTableViewDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CollapseTableViewDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
4919EFCD22AC25D400CD5A74 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
4919EFCF22AC25D400CD5A74 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
4919EFD222AC25D400CD5A74 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
4919EFD422AC25D500CD5A74 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
4919EFD722AC25D500CD5A74 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
4919EFD922AC25D500CD5A74 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
4919EFDD22AC263D00CD5A74 /* SectionHeaderView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SectionHeaderView.swift; sourceTree = "<group>"; };
4919EFDE22AC263D00CD5A74 /* SectionHeaderView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SectionHeaderView.xib; sourceTree = "<group>"; };
4922F97122AAE53700967BB5 /* CollapseTableView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = CollapseTableView.framework; sourceTree = BUILT_PRODUCTS_DIR; };
4922F97422AAE53700967BB5 /* CollapseTableView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CollapseTableView.h; sourceTree = "<group>"; };
4922F97522AAE53700967BB5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
4919EFC822AC25D400CD5A74 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
4919EFE122AC27A200CD5A74 /* CollapseTableView.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
4922F96E22AAE53700967BB5 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -40,10 +90,26 @@
path = Source;
sourceTree = "<group>";
};
4919EFCC22AC25D400CD5A74 /* CollapseTableViewDemo */ = {
isa = PBXGroup;
children = (
4919EFCD22AC25D400CD5A74 /* AppDelegate.swift */,
4919EFDD22AC263D00CD5A74 /* SectionHeaderView.swift */,
4919EFDE22AC263D00CD5A74 /* SectionHeaderView.xib */,
4919EFCF22AC25D400CD5A74 /* ViewController.swift */,
4919EFD122AC25D400CD5A74 /* Main.storyboard */,
4919EFD422AC25D500CD5A74 /* Assets.xcassets */,
4919EFD622AC25D500CD5A74 /* LaunchScreen.storyboard */,
4919EFD922AC25D500CD5A74 /* Info.plist */,
);
path = CollapseTableViewDemo;
sourceTree = "<group>";
};
4922F96722AAE53700967BB5 = {
isa = PBXGroup;
children = (
4922F97322AAE53700967BB5 /* CollapseTableView */,
4919EFCC22AC25D400CD5A74 /* CollapseTableViewDemo */,
4922F97222AAE53700967BB5 /* Products */,
);
sourceTree = "<group>";
Expand All @@ -52,6 +118,7 @@
isa = PBXGroup;
children = (
4922F97122AAE53700967BB5 /* CollapseTableView.framework */,
4919EFCB22AC25D400CD5A74 /* CollapseTableViewDemo.app */,
);
name = Products;
sourceTree = "<group>";
Expand Down Expand Up @@ -80,6 +147,25 @@
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
4919EFCA22AC25D400CD5A74 /* CollapseTableViewDemo */ = {
isa = PBXNativeTarget;
buildConfigurationList = 4919EFDC22AC25D500CD5A74 /* Build configuration list for PBXNativeTarget "CollapseTableViewDemo" */;
buildPhases = (
4919EFC722AC25D400CD5A74 /* Sources */,
4919EFC822AC25D400CD5A74 /* Frameworks */,
4919EFC922AC25D400CD5A74 /* Resources */,
4919EFE522AC27A200CD5A74 /* Embed Frameworks */,
);
buildRules = (
);
dependencies = (
4919EFE422AC27A200CD5A74 /* PBXTargetDependency */,
);
name = CollapseTableViewDemo;
productName = CollapseTableViewDemo;
productReference = 4919EFCB22AC25D400CD5A74 /* CollapseTableViewDemo.app */;
productType = "com.apple.product-type.application";
};
4922F97022AAE53700967BB5 /* CollapseTableView */ = {
isa = PBXNativeTarget;
buildConfigurationList = 4922F97922AAE53700967BB5 /* Build configuration list for PBXNativeTarget "CollapseTableView" */;
Expand All @@ -104,9 +190,13 @@
4922F96822AAE53700967BB5 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1020;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = "Serhii Kharauzov";
TargetAttributes = {
4919EFCA22AC25D400CD5A74 = {
CreatedOnToolsVersion = 10.2;
};
4922F97022AAE53700967BB5 = {
CreatedOnToolsVersion = 10.2;
};
Expand All @@ -118,18 +208,31 @@
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 4922F96722AAE53700967BB5;
productRefGroup = 4922F97222AAE53700967BB5 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
4922F97022AAE53700967BB5 /* CollapseTableView */,
4919EFCA22AC25D400CD5A74 /* CollapseTableViewDemo */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
4919EFC922AC25D400CD5A74 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4919EFD822AC25D500CD5A74 /* LaunchScreen.storyboard in Resources */,
4919EFD522AC25D500CD5A74 /* Assets.xcassets in Resources */,
4919EFD322AC25D400CD5A74 /* Main.storyboard in Resources */,
4919EFE022AC263D00CD5A74 /* SectionHeaderView.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
4922F96F22AAE53700967BB5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -140,6 +243,16 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
4919EFC722AC25D400CD5A74 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
4919EFD022AC25D400CD5A74 /* ViewController.swift in Sources */,
4919EFDF22AC263D00CD5A74 /* SectionHeaderView.swift in Sources */,
4919EFCE22AC25D400CD5A74 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
4922F96D22AAE53700967BB5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -151,7 +264,76 @@
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
4919EFE422AC27A200CD5A74 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 4922F97022AAE53700967BB5 /* CollapseTableView */;
targetProxy = 4919EFE322AC27A200CD5A74 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
4919EFD122AC25D400CD5A74 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
4919EFD222AC25D400CD5A74 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
4919EFD622AC25D500CD5A74 /* LaunchScreen.storyboard */ = {
isa = PBXVariantGroup;
children = (
4919EFD722AC25D500CD5A74 /* Base */,
);
name = LaunchScreen.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
4919EFDA22AC25D500CD5A74 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = CollapseTableViewDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = sk.CollapseTableViewDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
4919EFDB22AC25D500CD5A74 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Manual;
DEVELOPMENT_TEAM = "";
INFOPLIST_FILE = CollapseTableViewDemo/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = sk.CollapseTableViewDemo;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
4922F97722AAE53700967BB5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -280,7 +462,6 @@
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
Expand All @@ -307,7 +488,6 @@
CODE_SIGN_IDENTITY = "";
CODE_SIGN_STYLE = Manual;
DEFINES_MODULE = YES;
DEVELOPMENT_TEAM = "";
DYLIB_COMPATIBILITY_VERSION = 1;
DYLIB_CURRENT_VERSION = 1;
DYLIB_INSTALL_NAME_BASE = "@rpath";
Expand All @@ -331,6 +511,15 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
4919EFDC22AC25D500CD5A74 /* Build configuration list for PBXNativeTarget "CollapseTableViewDemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
4919EFDA22AC25D500CD5A74 /* Debug */,
4919EFDB22AC25D500CD5A74 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
4922F96B22AAE53700967BB5 /* Build configuration list for PBXProject "CollapseTableView" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>CollapseTableViewDemo.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</plist>
46 changes: 46 additions & 0 deletions CollapseTableViewDemo/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
//
// AppDelegate.swift
// CollapseTableViewDemo
//
// Created by Serhii Kharauzov on 6/8/19.
// Copyright © 2019 Serhii Kharauzov. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?


func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

func applicationWillResignActive(_ application: UIApplication) {
// 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.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}

func applicationDidEnterBackground(_ application: UIApplication) {
// 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.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

func applicationWillEnterForeground(_ application: UIApplication) {
// 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.
}

func applicationDidBecomeActive(_ application: UIApplication) {
// 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.
}

func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}


}

Loading

0 comments on commit 7d35e3a

Please sign in to comment.