diff --git a/Example-iOS/AppDelegate.swift b/Example-iOS/AppDelegate.swift
new file mode 100644
index 0000000..fa17ea3
--- /dev/null
+++ b/Example-iOS/AppDelegate.swift
@@ -0,0 +1,56 @@
+//
+// AppDelegate.swift
+// Example-iOS
+//
+// Created by Spiros Gerokostas on 01/03/16.
+// Copyright © 2016 SnapKit Team. All rights reserved.
+//
+
+import UIKit
+
+@UIApplicationMain
+class AppDelegate: UIResponder, UIApplicationDelegate {
+
+ var window: UIWindow?
+
+
+ func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
+
+ self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
+
+ let listViewController:ListViewController = ListViewController()
+ let navigationController:UINavigationController = UINavigationController(rootViewController: listViewController);
+
+ self.window!.rootViewController = navigationController;
+
+ self.window!.backgroundColor = UIColor.whiteColor()
+ self.window!.makeKeyAndVisible()
+
+ 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 throttle down OpenGL ES frame rates. 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 inactive 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:.
+ }
+
+
+}
+
diff --git a/Example-iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example-iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..118c98f
--- /dev/null
+++ b/Example-iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,38 @@
+{
+ "images" : [
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "29x29",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "40x40",
+ "scale" : "3x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "2x"
+ },
+ {
+ "idiom" : "iphone",
+ "size" : "60x60",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/Example-iOS/Base.lproj/LaunchScreen.storyboard b/Example-iOS/Base.lproj/LaunchScreen.storyboard
new file mode 100644
index 0000000..2e721e1
--- /dev/null
+++ b/Example-iOS/Base.lproj/LaunchScreen.storyboard
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Example-iOS/Info.plist b/Example-iOS/Info.plist
new file mode 100644
index 0000000..d39a4da
--- /dev/null
+++ b/Example-iOS/Info.plist
@@ -0,0 +1,38 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ $(PRODUCT_NAME)
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 1.0
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ 1
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIRequiredDeviceCapabilities
+
+ armv7
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
+
diff --git a/Example-iOS/ListViewController.swift b/Example-iOS/ListViewController.swift
new file mode 100644
index 0000000..5fccd7a
--- /dev/null
+++ b/Example-iOS/ListViewController.swift
@@ -0,0 +1,47 @@
+//
+// ViewController.swift
+// Example-iOS
+//
+// Created by Spiros Gerokostas on 01/03/16.
+// Copyright © 2016 SnapKit Team. All rights reserved.
+//
+
+import UIKit
+import SnapKit
+
+class ListViewController: UITableViewController {
+
+ let kCellIdentifier = "CellIdentifier"
+ let demos = ["Simple Layout", "Basic UIScrollView"]
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ self.title = "SnapKit iOS Demos"
+
+ self.tableView?.registerClass(UITableViewCell.self, forCellReuseIdentifier: kCellIdentifier)
+ }
+
+ override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
+ let cell = tableView.dequeueReusableCellWithIdentifier(kCellIdentifier)! as UITableViewCell
+
+ cell.textLabel?.text = demos[indexPath.row]
+
+ return cell
+ }
+
+ override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
+ return demos.count
+ }
+
+ override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
+ if indexPath.row == 0 {
+ let viewController = SimpleLayoutViewController()
+ navigationController?.pushViewController(viewController, animated: true)
+ } else if indexPath.row == 1 {
+ let viewController = BasicUIScrollViewController()
+ navigationController?.pushViewController(viewController, animated: true)
+ }
+ }
+}
+
diff --git a/Example-iOS/demos/BasicUIScrollViewController.swift b/Example-iOS/demos/BasicUIScrollViewController.swift
new file mode 100644
index 0000000..09fa0ae
--- /dev/null
+++ b/Example-iOS/demos/BasicUIScrollViewController.swift
@@ -0,0 +1,67 @@
+//
+// BasicUIScrollViewController.swift
+// SnapKit
+//
+// Created by Spiros Gerokostas on 01/03/16.
+// Copyright © 2016 SnapKit Team. All rights reserved.
+//
+
+import UIKit
+
+class BasicUIScrollViewController: UIViewController {
+
+ var didSetupConstraints = false
+
+ let scrollView = UIScrollView()
+ let contentView = UIView()
+
+ let label: UILabel = {
+ let label = UILabel()
+ label.backgroundColor = .blueColor()
+ label.numberOfLines = 0
+ label.lineBreakMode = .ByClipping
+ label.textColor = .whiteColor()
+ label.text = NSLocalizedString("Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.", comment: "")
+ return label
+ }()
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ view.backgroundColor = UIColor.whiteColor()
+
+ view.addSubview(scrollView)
+
+ contentView.backgroundColor = UIColor.lightGrayColor()
+ scrollView.addSubview(contentView)
+ contentView.addSubview(label)
+
+ view.setNeedsUpdateConstraints()
+ }
+
+ override func updateViewConstraints() {
+
+ if (!didSetupConstraints) {
+
+ scrollView.snp_makeConstraints { (make) -> Void in
+ make.edges.equalTo(view).inset(UIEdgeInsetsZero)
+ }
+
+ contentView.snp_makeConstraints { (make) -> Void in
+ make.edges.equalTo(scrollView).inset(UIEdgeInsetsZero)
+ make.width.equalTo(scrollView)
+ }
+
+ label.snp_makeConstraints { (make) -> Void in
+ make.top.equalTo(contentView).inset(20)
+ make.leading.equalTo(contentView).inset(20)
+ make.trailing.equalTo(contentView).inset(20)
+ make.bottom.equalTo(contentView).inset(20)
+ }
+
+ didSetupConstraints = true
+ }
+
+ super.updateViewConstraints()
+ }
+}
diff --git a/Example-iOS/demos/SimpleLayoutViewController.swift b/Example-iOS/demos/SimpleLayoutViewController.swift
new file mode 100644
index 0000000..414d0d6
--- /dev/null
+++ b/Example-iOS/demos/SimpleLayoutViewController.swift
@@ -0,0 +1,98 @@
+//
+// SimpleLayoutViewController.swift
+// SnapKit
+//
+// Created by Spiros Gerokostas on 01/03/16.
+// Copyright © 2016 SnapKit Team. All rights reserved.
+//
+
+import UIKit
+
+class SimpleLayoutViewController: UIViewController {
+
+ var didSetupConstraints = false
+
+ let blackView: UIView = {
+ let view = UIView()
+ view.backgroundColor = .blackColor()
+ return view
+ }()
+
+ let redView: UIView = {
+ let view = UIView()
+ view.backgroundColor = .redColor()
+ return view
+ }()
+
+ let yellowView: UIView = {
+ let view = UIView()
+ view.backgroundColor = .yellowColor()
+ return view
+ }()
+
+ let blueView: UIView = {
+ let view = UIView()
+ view.backgroundColor = .blueColor()
+ return view
+ }()
+
+ let greenView: UIView = {
+ let view = UIView()
+ view.backgroundColor = .greenColor()
+ return view
+ }()
+
+ override func viewDidLoad() {
+ super.viewDidLoad()
+
+ view.backgroundColor = UIColor.whiteColor()
+
+ view.addSubview(blackView)
+ view.addSubview(redView)
+ view.addSubview(yellowView)
+ view.addSubview(blueView)
+ view.addSubview(greenView)
+
+ view.setNeedsUpdateConstraints()
+ }
+
+ override func updateViewConstraints() {
+
+ if (!didSetupConstraints) {
+
+ blackView.snp_makeConstraints(closure: { (make) -> Void in
+ make.center.equalTo(view)
+ make.size.equalTo(CGSizeMake(100.0, 100.0))
+ })
+
+ redView.snp_makeConstraints(closure: { (make) -> Void in
+ make.top.equalTo(blackView.snp_bottom).offset(20.0)
+ make.left.equalTo(20.0)
+ make.size.equalTo(CGSizeMake(100.0, 100.0))
+ })
+
+ yellowView.snp_makeConstraints(closure: { (make) -> Void in
+ make.top.equalTo(blackView.snp_bottom).offset(20.0)
+ make.left.equalTo(blackView.snp_right).offset(20.0)
+ make.size.equalTo(CGSizeMake(100.0, 100.0))
+ })
+
+ blueView.snp_makeConstraints(closure: { (make) -> Void in
+ make.bottom.equalTo(blackView.snp_top).offset(-20.0)
+ make.left.equalTo(blackView.snp_right).offset(20.0)
+ make.size.equalTo(CGSizeMake(100.0, 100.0))
+ })
+
+ greenView.snp_makeConstraints(closure: { (make) -> Void in
+ make.bottom.equalTo(blackView.snp_top).offset(-20.0)
+ make.right.equalTo(blackView.snp_left).offset(-20.0)
+ make.size.equalTo(CGSizeMake(100.0, 100.0))
+ })
+
+ didSetupConstraints = true
+ }
+
+ super.updateViewConstraints()
+ }
+
+}
diff --git a/SnapKit.xcodeproj/project.pbxproj b/SnapKit.xcodeproj/project.pbxproj
index 7bdc1f9..4213671 100644
--- a/SnapKit.xcodeproj/project.pbxproj
+++ b/SnapKit.xcodeproj/project.pbxproj
@@ -23,6 +23,14 @@
537DCEA91C35CE3E00B5B899 /* ConstraintAttributes.swift in Sources */ = {isa = PBXBuildFile; fileRef = EECDB35F1AC0C95C006BBC11 /* ConstraintAttributes.swift */; };
537DCEB41C35D90A00B5B899 /* SnapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 537DCE921C35CC8800B5B899 /* SnapKit.framework */; };
537DCEBA1C35DA9700B5B899 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EECDB36A1AC0C95C006BBC11 /* Tests.swift */; };
+ 56A0DC0E1C859E30005973AB /* ListViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A0DC0D1C859E30005973AB /* ListViewController.swift */; };
+ 56A0DC131C859E30005973AB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 56A0DC121C859E30005973AB /* Assets.xcassets */; };
+ 56A0DC161C859E30005973AB /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 56A0DC141C859E30005973AB /* LaunchScreen.storyboard */; };
+ 56A0DC1C1C859E9A005973AB /* SnapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EEBCC9D819CC627D0083B827 /* SnapKit.framework */; };
+ 56A0DC1D1C859E9A005973AB /* SnapKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = EEBCC9D819CC627D0083B827 /* SnapKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
+ 56A0DC221C859F15005973AB /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A0DC211C859F15005973AB /* AppDelegate.swift */; };
+ 56A0DC321C85A2C1005973AB /* BasicUIScrollViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A0DC311C85A2C1005973AB /* BasicUIScrollViewController.swift */; };
+ 56A0DC341C85AFBF005973AB /* SimpleLayoutViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 56A0DC331C85AFBF005973AB /* SimpleLayoutViewController.swift */; };
EE4910981B19A26000A54F1F /* ViewController+SnapKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = EE4910971B19A26000A54F1F /* ViewController+SnapKit.swift */; };
EE4910991B19A40200A54F1F /* SnapKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EEBCC9D819CC627D0083B827 /* SnapKit.framework */; };
EE94F6091AC0F10A008767FF /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EE94F6081AC0F10A008767FF /* UIKit.framework */; };
@@ -57,6 +65,13 @@
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
+ 56A0DC1E1C859E9A005973AB /* PBXContainerItemProxy */ = {
+ isa = PBXContainerItemProxy;
+ containerPortal = DDC9FD8D1981B4DD009612C7 /* Project object */;
+ proxyType = 1;
+ remoteGlobalIDString = EEBCC9D719CC627D0083B827;
+ remoteInfo = "SnapKit iOS";
+ };
EECDB3861AC0C9D4006BBC11 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = DDC9FD8D1981B4DD009612C7 /* Project object */;
@@ -66,10 +81,32 @@
};
/* End PBXContainerItemProxy section */
+/* Begin PBXCopyFilesBuildPhase section */
+ 56A0DC201C859E9A005973AB /* Embed Frameworks */ = {
+ isa = PBXCopyFilesBuildPhase;
+ buildActionMask = 2147483647;
+ dstPath = "";
+ dstSubfolderSpec = 10;
+ files = (
+ 56A0DC1D1C859E9A005973AB /* SnapKit.framework in Embed Frameworks */,
+ );
+ name = "Embed Frameworks";
+ runOnlyForDeploymentPostprocessing = 0;
+ };
+/* End PBXCopyFilesBuildPhase section */
+
/* Begin PBXFileReference section */
537DCE921C35CC8800B5B899 /* SnapKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SnapKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
537DCE9A1C35CD4100B5B899 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.1.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; };
537DCEAF1C35D90A00B5B899 /* SnapKit tvOS Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "SnapKit tvOS Tests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 56A0DC091C859E30005973AB /* Example-iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Example-iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
+ 56A0DC0D1C859E30005973AB /* ListViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ListViewController.swift; sourceTree = ""; };
+ 56A0DC121C859E30005973AB /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
+ 56A0DC151C859E30005973AB /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
+ 56A0DC171C859E30005973AB /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
+ 56A0DC211C859F15005973AB /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
+ 56A0DC311C85A2C1005973AB /* BasicUIScrollViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BasicUIScrollViewController.swift; sourceTree = ""; };
+ 56A0DC331C85AFBF005973AB /* SimpleLayoutViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SimpleLayoutViewController.swift; sourceTree = ""; };
EE4910971B19A26000A54F1F /* ViewController+SnapKit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "ViewController+SnapKit.swift"; sourceTree = ""; };
EE94F6081AC0F10A008767FF /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
EE94F60A1AC0F10F008767FF /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AppKit.framework; sourceTree = DEVELOPER_DIR; };
@@ -111,6 +148,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 56A0DC061C859E30005973AB /* Frameworks */ = {
+ isa = PBXFrameworksBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 56A0DC1C1C859E9A005973AB /* SnapKit.framework in Frameworks */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
EE94F60D1AC0F132008767FF /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
@@ -146,10 +191,33 @@
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
+ 56A0DC0A1C859E30005973AB /* Example-iOS */ = {
+ isa = PBXGroup;
+ children = (
+ 56A0DC301C85A20E005973AB /* demos */,
+ 56A0DC211C859F15005973AB /* AppDelegate.swift */,
+ 56A0DC0D1C859E30005973AB /* ListViewController.swift */,
+ 56A0DC121C859E30005973AB /* Assets.xcassets */,
+ 56A0DC141C859E30005973AB /* LaunchScreen.storyboard */,
+ 56A0DC171C859E30005973AB /* Info.plist */,
+ );
+ path = "Example-iOS";
+ sourceTree = "";
+ };
+ 56A0DC301C85A20E005973AB /* demos */ = {
+ isa = PBXGroup;
+ children = (
+ 56A0DC311C85A2C1005973AB /* BasicUIScrollViewController.swift */,
+ 56A0DC331C85AFBF005973AB /* SimpleLayoutViewController.swift */,
+ );
+ path = demos;
+ sourceTree = "";
+ };
DDC9FD8C1981B4DD009612C7 = {
isa = PBXGroup;
children = (
EECDB35D1AC0C95C006BBC11 /* Source */,
+ 56A0DC0A1C859E30005973AB /* Example-iOS */,
EE94F60C1AC0F113008767FF /* Frameworks */,
DDC9FD961981B4DD009612C7 /* Products */,
);
@@ -164,6 +232,7 @@
EECDB3841AC0C9D4006BBC11 /* SnapKit OSX Tests.xctest */,
537DCE921C35CC8800B5B899 /* SnapKit.framework */,
537DCEAF1C35D90A00B5B899 /* SnapKit tvOS Tests.xctest */,
+ 56A0DC091C859E30005973AB /* Example-iOS.app */,
);
name = Products;
sourceTree = "";
@@ -283,6 +352,25 @@
productReference = 537DCEAF1C35D90A00B5B899 /* SnapKit tvOS Tests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
+ 56A0DC081C859E30005973AB /* Example-iOS */ = {
+ isa = PBXNativeTarget;
+ buildConfigurationList = 56A0DC1A1C859E30005973AB /* Build configuration list for PBXNativeTarget "Example-iOS" */;
+ buildPhases = (
+ 56A0DC051C859E30005973AB /* Sources */,
+ 56A0DC061C859E30005973AB /* Frameworks */,
+ 56A0DC071C859E30005973AB /* Resources */,
+ 56A0DC201C859E9A005973AB /* Embed Frameworks */,
+ );
+ buildRules = (
+ );
+ dependencies = (
+ 56A0DC1F1C859E9A005973AB /* PBXTargetDependency */,
+ );
+ name = "Example-iOS";
+ productName = "Example-iOS";
+ productReference = 56A0DC091C859E30005973AB /* Example-iOS.app */;
+ productType = "com.apple.product-type.application";
+ };
EEBCC9D719CC627D0083B827 /* SnapKit iOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = EEBCC9E819CC627E0083B827 /* Build configuration list for PBXNativeTarget "SnapKit iOS" */;
@@ -370,6 +458,9 @@
537DCEAE1C35D90A00B5B899 = {
CreatedOnToolsVersion = 7.2;
};
+ 56A0DC081C859E30005973AB = {
+ CreatedOnToolsVersion = 7.2.1;
+ };
EEBCC9D719CC627D0083B827 = {
CreatedOnToolsVersion = 6.0;
};
@@ -403,6 +494,7 @@
EEBCC9E119CC627D0083B827 /* SnapKit iOS Tests */,
537DCEAE1C35D90A00B5B899 /* SnapKit tvOS Tests */,
EECDB3831AC0C9D4006BBC11 /* SnapKit OSX Tests */,
+ 56A0DC081C859E30005973AB /* Example-iOS */,
);
};
/* End PBXProject section */
@@ -422,6 +514,15 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 56A0DC071C859E30005973AB /* Resources */ = {
+ isa = PBXResourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 56A0DC161C859E30005973AB /* LaunchScreen.storyboard in Resources */,
+ 56A0DC131C859E30005973AB /* Assets.xcassets in Resources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
EEBCC9D619CC627D0083B827 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
@@ -480,6 +581,17 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
+ 56A0DC051C859E30005973AB /* Sources */ = {
+ isa = PBXSourcesBuildPhase;
+ buildActionMask = 2147483647;
+ files = (
+ 56A0DC341C85AFBF005973AB /* SimpleLayoutViewController.swift in Sources */,
+ 56A0DC221C859F15005973AB /* AppDelegate.swift in Sources */,
+ 56A0DC321C85A2C1005973AB /* BasicUIScrollViewController.swift in Sources */,
+ 56A0DC0E1C859E30005973AB /* ListViewController.swift in Sources */,
+ );
+ runOnlyForDeploymentPostprocessing = 0;
+ };
EEBCC9D319CC627D0083B827 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
@@ -536,6 +648,11 @@
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
+ 56A0DC1F1C859E9A005973AB /* PBXTargetDependency */ = {
+ isa = PBXTargetDependency;
+ target = EEBCC9D719CC627D0083B827 /* SnapKit iOS */;
+ targetProxy = 56A0DC1E1C859E9A005973AB /* PBXContainerItemProxy */;
+ };
EECDB3871AC0C9D4006BBC11 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = EECDB3791AC0C9D4006BBC11 /* SnapKit OSX */;
@@ -543,6 +660,17 @@
};
/* End PBXTargetDependency section */
+/* Begin PBXVariantGroup section */
+ 56A0DC141C859E30005973AB /* LaunchScreen.storyboard */ = {
+ isa = PBXVariantGroup;
+ children = (
+ 56A0DC151C859E30005973AB /* Base */,
+ );
+ name = LaunchScreen.storyboard;
+ sourceTree = "";
+ };
+/* End PBXVariantGroup section */
+
/* Begin XCBuildConfiguration section */
537DCE971C35CC8800B5B899 /* Debug */ = {
isa = XCBuildConfiguration;
@@ -622,6 +750,38 @@
};
name = Release;
};
+ 56A0DC181C859E30005973AB /* Debug */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ DEBUG_INFORMATION_FORMAT = dwarf;
+ EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
+ GCC_NO_COMMON_BLOCKS = YES;
+ INFOPLIST_FILE = "Example-iOS/Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = "io.snapkit.Example-iOS";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Debug;
+ };
+ 56A0DC191C859E30005973AB /* Release */ = {
+ isa = XCBuildConfiguration;
+ buildSettings = {
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
+ COPY_PHASE_STRIP = NO;
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
+ EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
+ GCC_NO_COMMON_BLOCKS = YES;
+ INFOPLIST_FILE = "Example-iOS/Info.plist";
+ IPHONEOS_DEPLOYMENT_TARGET = 8.0;
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
+ PRODUCT_BUNDLE_IDENTIFIER = "io.snapkit.Example-iOS";
+ PRODUCT_NAME = "$(TARGET_NAME)";
+ };
+ name = Release;
+ };
DDC9FDAF1981B4DD009612C7 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
@@ -872,6 +1032,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
+ 56A0DC1A1C859E30005973AB /* Build configuration list for PBXNativeTarget "Example-iOS" */ = {
+ isa = XCConfigurationList;
+ buildConfigurations = (
+ 56A0DC181C859E30005973AB /* Debug */,
+ 56A0DC191C859E30005973AB /* Release */,
+ );
+ defaultConfigurationIsVisible = 0;
+ defaultConfigurationName = Release;
+ };
DDC9FD901981B4DD009612C7 /* Build configuration list for PBXProject "SnapKit" */ = {
isa = XCConfigurationList;
buildConfigurations = (