├── .gitmodules
├── CustomSegueDemo.gif
├── CustomSegueDemo
├── Assets.xcassets
│ ├── Contents.json
│ ├── LaunchImage.imageset
│ │ ├── LaunchImage.pdf
│ │ └── Contents.json
│ └── AppIcon.appiconset
│ │ ├── Icon-App-60x60@2x.png
│ │ ├── Icon-App-60x60@3x.png
│ │ └── Contents.json
├── ViewController.swift
├── Info.plist
├── AppDelegate.swift
├── Base.lproj
│ ├── LaunchScreen.storyboard
│ └── Main.storyboard
└── BottomCardSegue.swift
├── .gitignore
├── README.md
├── CustomSegueDemoTests
├── Info.plist
└── CustomSegueDemoTests.swift
└── CustomSegueDemo.xcodeproj
└── project.pbxproj
/.gitmodules:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/CustomSegueDemo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SwiftKickMobile/CustomSegueDemo/HEAD/CustomSegueDemo.gif
--------------------------------------------------------------------------------
/CustomSegueDemo/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/CustomSegueDemo/Assets.xcassets/LaunchImage.imageset/LaunchImage.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SwiftKickMobile/CustomSegueDemo/HEAD/CustomSegueDemo/Assets.xcassets/LaunchImage.imageset/LaunchImage.pdf
--------------------------------------------------------------------------------
/CustomSegueDemo/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SwiftKickMobile/CustomSegueDemo/HEAD/CustomSegueDemo/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png
--------------------------------------------------------------------------------
/CustomSegueDemo/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SwiftKickMobile/CustomSegueDemo/HEAD/CustomSegueDemo/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png
--------------------------------------------------------------------------------
/CustomSegueDemo/Assets.xcassets/LaunchImage.imageset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "universal",
5 | "filename" : "LaunchImage.pdf"
6 | }
7 | ],
8 | "info" : {
9 | "version" : 1,
10 | "author" : "xcode"
11 | },
12 | "properties" : {
13 | "preserves-vector-representation" : true
14 | }
15 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Xcode
2 | .DS_Store
3 | build/
4 | *.pbxuser
5 | !default.pbxuser
6 | *.mode1v3
7 | !default.mode1v3
8 | *.mode2v3
9 | !default.mode2v3
10 | *.perspectivev3
11 | !default.perspectivev3
12 | *.xcworkspace
13 | !default.xcworkspace
14 | xcuserdata
15 | profile
16 | *.moved-aside
17 | DerivedData
18 | .idea/
19 | Local
20 |
21 | # Pods
22 | Pods
23 |
24 | # vim
25 | *~
26 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Custom Segue Demo
2 |
3 | This is the sample project that goes along with the [Elegant Custom UIViewController Transitioning](http://www.swiftkickmobile.com/elegant-custom-uiviewcontroller-transitioning-uiviewcontrollertransitioningdelegate-uiviewcontrolleranimatedtransitioning/) tutorial. Take a look and learn how to create elegant custom view controller transitions by encapsulating them in `UIStoryboardSegue` subclasses that work with Interface Builder's drag-and-drop interface.
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/CustomSegueDemoTests/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleExecutable
8 | $(EXECUTABLE_NAME)
9 | CFBundleIdentifier
10 | $(PRODUCT_BUNDLE_IDENTIFIER)
11 | CFBundleInfoDictionaryVersion
12 | 6.0
13 | CFBundleName
14 | $(PRODUCT_NAME)
15 | CFBundlePackageType
16 | BNDL
17 | CFBundleShortVersionString
18 | 1.0
19 | CFBundleVersion
20 | 1
21 |
22 |
23 |
--------------------------------------------------------------------------------
/CustomSegueDemo/ViewController.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ViewController.swift
3 | // CustomSegueDemo
4 | //
5 | // Created by Timothy Moose on 6/13/18.
6 | // Copyright © 2018 it.swiftkick. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class ViewController: UIViewController {
12 |
13 | override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
14 | let navigationVC = segue.destination as! UINavigationController
15 | let rootVC = navigationVC.viewControllers.first!
16 | let doneButton = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(hide))
17 | rootVC.navigationItem.rightBarButtonItem = doneButton
18 | }
19 |
20 | @objc private func hide() {
21 | dismiss(animated: true, completion: nil)
22 | }
23 |
24 | @IBAction func showProgrammatically(_ sender: Any) {
25 | let childVC = storyboard!.instantiateViewController(withIdentifier: "Child")
26 | let segue = BottomCardSegue(identifier: nil, source: self, destination: childVC)
27 | prepare(for: segue, sender: nil)
28 | segue.perform()
29 | }
30 | }
31 |
32 |
--------------------------------------------------------------------------------
/CustomSegueDemoTests/CustomSegueDemoTests.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CustomSegueDemoTests.swift
3 | // CustomSegueDemoTests
4 | //
5 | // Created by Timothy Moose on 6/13/18.
6 | // Copyright © 2018 it.swiftkick. All rights reserved.
7 | //
8 |
9 | import XCTest
10 | @testable import CustomSegueDemo
11 |
12 | class CustomSegueDemoTests: XCTestCase {
13 |
14 | override func setUp() {
15 | super.setUp()
16 | // Put setup code here. This method is called before the invocation of each test method in the class.
17 | }
18 |
19 | override func tearDown() {
20 | // Put teardown code here. This method is called after the invocation of each test method in the class.
21 | super.tearDown()
22 | }
23 |
24 | func testExample() {
25 | // This is an example of a functional test case.
26 | // Use XCTAssert and related functions to verify your tests produce the correct results.
27 | }
28 |
29 | func testPerformanceExample() {
30 | // This is an example of a performance test case.
31 | self.measure {
32 | // Put the code you want to measure the time of here.
33 | }
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/CustomSegueDemo/Assets.xcassets/AppIcon.appiconset/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "images" : [
3 | {
4 | "idiom" : "iphone",
5 | "size" : "20x20",
6 | "scale" : "2x"
7 | },
8 | {
9 | "idiom" : "iphone",
10 | "size" : "20x20",
11 | "scale" : "3x"
12 | },
13 | {
14 | "idiom" : "iphone",
15 | "size" : "29x29",
16 | "scale" : "2x"
17 | },
18 | {
19 | "idiom" : "iphone",
20 | "size" : "29x29",
21 | "scale" : "3x"
22 | },
23 | {
24 | "idiom" : "iphone",
25 | "size" : "40x40",
26 | "scale" : "2x"
27 | },
28 | {
29 | "idiom" : "iphone",
30 | "size" : "40x40",
31 | "scale" : "3x"
32 | },
33 | {
34 | "size" : "60x60",
35 | "idiom" : "iphone",
36 | "filename" : "Icon-App-60x60@2x.png",
37 | "scale" : "2x"
38 | },
39 | {
40 | "size" : "60x60",
41 | "idiom" : "iphone",
42 | "filename" : "Icon-App-60x60@3x.png",
43 | "scale" : "3x"
44 | },
45 | {
46 | "idiom" : "ios-marketing",
47 | "size" : "1024x1024",
48 | "scale" : "1x"
49 | }
50 | ],
51 | "info" : {
52 | "version" : 1,
53 | "author" : "xcode"
54 | }
55 | }
--------------------------------------------------------------------------------
/CustomSegueDemo/Info.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | CFBundleDevelopmentRegion
6 | $(DEVELOPMENT_LANGUAGE)
7 | CFBundleDisplayName
8 | Segue
9 | CFBundleExecutable
10 | $(EXECUTABLE_NAME)
11 | CFBundleIdentifier
12 | $(PRODUCT_BUNDLE_IDENTIFIER)
13 | CFBundleInfoDictionaryVersion
14 | 6.0
15 | CFBundleName
16 | $(PRODUCT_NAME)
17 | CFBundlePackageType
18 | APPL
19 | CFBundleShortVersionString
20 | 1.0
21 | CFBundleVersion
22 | 1
23 | LSRequiresIPhoneOS
24 |
25 | UILaunchStoryboardName
26 | LaunchScreen
27 | UIMainStoryboardFile
28 | Main
29 | UIRequiredDeviceCapabilities
30 |
31 | armv7
32 |
33 | UISupportedInterfaceOrientations
34 |
35 | UIInterfaceOrientationPortrait
36 | UIInterfaceOrientationLandscapeLeft
37 | UIInterfaceOrientationLandscapeRight
38 |
39 | UISupportedInterfaceOrientations~ipad
40 |
41 | UIInterfaceOrientationPortrait
42 | UIInterfaceOrientationPortraitUpsideDown
43 | UIInterfaceOrientationLandscapeLeft
44 | UIInterfaceOrientationLandscapeRight
45 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/CustomSegueDemo/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // CustomSegueDemo
4 | //
5 | // Created by Timothy Moose on 6/13/18.
6 | // Copyright © 2018 it.swiftkick. 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: [UIApplicationLaunchOptionsKey: 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 |
47 |
--------------------------------------------------------------------------------
/CustomSegueDemo/Base.lproj/LaunchScreen.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/CustomSegueDemo/BottomCardSegue.swift:
--------------------------------------------------------------------------------
1 | //
2 | // BottomCardSegue.swift
3 | // CustomSegueDemo
4 | //
5 | // Created by Timothy Moose on 6/13/18.
6 | // Copyright © 2018 it.swiftkick. All rights reserved.
7 | //
8 |
9 | import UIKit
10 |
11 | class BottomCardSegue: UIStoryboardSegue {
12 |
13 | // Need to retain self until dismissal because UIKit won't.
14 | private var selfRetainer: BottomCardSegue? = nil
15 |
16 | override func perform() {
17 | selfRetainer = self
18 | destination.modalPresentationStyle = .overCurrentContext
19 | destination.transitioningDelegate = self
20 | source.present(destination, animated: true, completion: nil)
21 | }
22 | }
23 |
24 | extension BottomCardSegue: UIViewControllerTransitioningDelegate {
25 | public func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
26 | return Presenter()
27 | }
28 |
29 | public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
30 | selfRetainer = nil
31 | return Dismisser()
32 | }
33 |
34 | private class Presenter: NSObject, UIViewControllerAnimatedTransitioning {
35 |
36 | func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {
37 | return 0.5
38 | }
39 |
40 | func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {
41 | let container = transitionContext.containerView
42 | let toView = transitionContext.view(forKey: .to)!
43 | let toViewController = transitionContext.viewController(forKey: .to)!
44 | // Configure the layout
45 | do {
46 | toView.translatesAutoresizingMaskIntoConstraints = false
47 | container.addSubview(toView)
48 | // Specify a minimum 20pt bottom margin
49 | let bottom = max(20 - toView.safeAreaInsets.bottom, 0)
50 | container.safeAreaLayoutGuide.bottomAnchor.constraint(equalTo: toView.bottomAnchor, constant: bottom).isActive = true
51 | container.safeAreaLayoutGuide.leadingAnchor.constraint(equalTo: toView.leadingAnchor, constant: -20).isActive = true
52 | container.safeAreaLayoutGuide.trailingAnchor.constraint(equalTo: toView.trailingAnchor, constant: 20).isActive = true
53 | // Respect `toViewController.preferredContentSize.height` if non-zero.
54 | if toViewController.preferredContentSize.height > 0 {
55 | toView.heightAnchor.constraint(equalToConstant: toViewController.preferredContentSize.height).isActive = true
56 | }
57 | }
58 | // Apply some styling
59 | do {
60 | toView.layer.masksToBounds = true
61 | toView.layer.cornerRadius = 20
62 | }
63 | // Perform the animation
64 | do {
65 | container.layoutIfNeeded()
66 | let originalOriginY = toView.frame.origin.y
67 | toView.frame.origin.y += container.frame.height - toView.frame.minY
68 | UIView.animate(withDuration: 0.5, delay: 0, usingSpringWithDamping: 0.8, initialSpringVelocity: 0, options: [], animations: {
69 | toView.frame.origin.y = originalOriginY
70 | }) { (completed) in
71 | transitionContext.completeTransition(completed)
72 | }
73 | }
74 | }
75 | }
76 |
77 | private class Dismisser: NSObject, UIViewControllerAnimatedTransitioning {
78 |
79 | func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {
80 | return 0.2
81 | }
82 |
83 | func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {
84 | let container = transitionContext.containerView
85 | let fromView = transitionContext.view(forKey: .from)!
86 | UIView.animate(withDuration: 0.2, animations: {
87 | fromView.frame.origin.y += container.frame.height - fromView.frame.minY
88 | }) { (completed) in
89 | transitionContext.completeTransition(completed)
90 | }
91 | }
92 | }
93 | }
94 |
95 |
96 |
97 |
--------------------------------------------------------------------------------
/CustomSegueDemo/Base.lproj/Main.storyboard:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
31 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
--------------------------------------------------------------------------------
/CustomSegueDemo.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 22B0ABD920D1CC8B00E290EC /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22B0ABD820D1CC8B00E290EC /* AppDelegate.swift */; };
11 | 22B0ABDB20D1CC8B00E290EC /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22B0ABDA20D1CC8B00E290EC /* ViewController.swift */; };
12 | 22B0ABDE20D1CC8B00E290EC /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 22B0ABDC20D1CC8B00E290EC /* Main.storyboard */; };
13 | 22B0ABE020D1CC8E00E290EC /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 22B0ABDF20D1CC8E00E290EC /* Assets.xcassets */; };
14 | 22B0ABE320D1CC8E00E290EC /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 22B0ABE120D1CC8E00E290EC /* LaunchScreen.storyboard */; };
15 | 22B0ABEE20D1CC8E00E290EC /* CustomSegueDemoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22B0ABED20D1CC8E00E290EC /* CustomSegueDemoTests.swift */; };
16 | 22B0ABF920D1CCA200E290EC /* BottomCardSegue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22B0ABF820D1CCA200E290EC /* BottomCardSegue.swift */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXContainerItemProxy section */
20 | 22B0ABEA20D1CC8E00E290EC /* PBXContainerItemProxy */ = {
21 | isa = PBXContainerItemProxy;
22 | containerPortal = 22B0ABCD20D1CC8B00E290EC /* Project object */;
23 | proxyType = 1;
24 | remoteGlobalIDString = 22B0ABD420D1CC8B00E290EC;
25 | remoteInfo = CustomSegueDemo;
26 | };
27 | /* End PBXContainerItemProxy section */
28 |
29 | /* Begin PBXFileReference section */
30 | 22B0ABD520D1CC8B00E290EC /* CustomSegueDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomSegueDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
31 | 22B0ABD820D1CC8B00E290EC /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
32 | 22B0ABDA20D1CC8B00E290EC /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; };
33 | 22B0ABDD20D1CC8B00E290EC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; };
34 | 22B0ABDF20D1CC8E00E290EC /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
35 | 22B0ABE220D1CC8E00E290EC /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
36 | 22B0ABE420D1CC8E00E290EC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
37 | 22B0ABE920D1CC8E00E290EC /* CustomSegueDemoTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CustomSegueDemoTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
38 | 22B0ABED20D1CC8E00E290EC /* CustomSegueDemoTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomSegueDemoTests.swift; sourceTree = ""; };
39 | 22B0ABEF20D1CC8E00E290EC /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
40 | 22B0ABF820D1CCA200E290EC /* BottomCardSegue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BottomCardSegue.swift; sourceTree = ""; };
41 | /* End PBXFileReference section */
42 |
43 | /* Begin PBXFrameworksBuildPhase section */
44 | 22B0ABD220D1CC8B00E290EC /* Frameworks */ = {
45 | isa = PBXFrameworksBuildPhase;
46 | buildActionMask = 2147483647;
47 | files = (
48 | );
49 | runOnlyForDeploymentPostprocessing = 0;
50 | };
51 | 22B0ABE620D1CC8E00E290EC /* Frameworks */ = {
52 | isa = PBXFrameworksBuildPhase;
53 | buildActionMask = 2147483647;
54 | files = (
55 | );
56 | runOnlyForDeploymentPostprocessing = 0;
57 | };
58 | /* End PBXFrameworksBuildPhase section */
59 |
60 | /* Begin PBXGroup section */
61 | 22B0ABCC20D1CC8B00E290EC = {
62 | isa = PBXGroup;
63 | children = (
64 | 22B0ABD720D1CC8B00E290EC /* CustomSegueDemo */,
65 | 22B0ABEC20D1CC8E00E290EC /* CustomSegueDemoTests */,
66 | 22B0ABD620D1CC8B00E290EC /* Products */,
67 | );
68 | sourceTree = "";
69 | };
70 | 22B0ABD620D1CC8B00E290EC /* Products */ = {
71 | isa = PBXGroup;
72 | children = (
73 | 22B0ABD520D1CC8B00E290EC /* CustomSegueDemo.app */,
74 | 22B0ABE920D1CC8E00E290EC /* CustomSegueDemoTests.xctest */,
75 | );
76 | name = Products;
77 | sourceTree = "";
78 | };
79 | 22B0ABD720D1CC8B00E290EC /* CustomSegueDemo */ = {
80 | isa = PBXGroup;
81 | children = (
82 | 22B0ABDC20D1CC8B00E290EC /* Main.storyboard */,
83 | 22B0ABDA20D1CC8B00E290EC /* ViewController.swift */,
84 | 22B0ABF820D1CCA200E290EC /* BottomCardSegue.swift */,
85 | 22B0ABD820D1CC8B00E290EC /* AppDelegate.swift */,
86 | 22B0ABDF20D1CC8E00E290EC /* Assets.xcassets */,
87 | 22B0ABE120D1CC8E00E290EC /* LaunchScreen.storyboard */,
88 | 22B0ABE420D1CC8E00E290EC /* Info.plist */,
89 | );
90 | path = CustomSegueDemo;
91 | sourceTree = "";
92 | };
93 | 22B0ABEC20D1CC8E00E290EC /* CustomSegueDemoTests */ = {
94 | isa = PBXGroup;
95 | children = (
96 | 22B0ABED20D1CC8E00E290EC /* CustomSegueDemoTests.swift */,
97 | 22B0ABEF20D1CC8E00E290EC /* Info.plist */,
98 | );
99 | path = CustomSegueDemoTests;
100 | sourceTree = "";
101 | };
102 | /* End PBXGroup section */
103 |
104 | /* Begin PBXNativeTarget section */
105 | 22B0ABD420D1CC8B00E290EC /* CustomSegueDemo */ = {
106 | isa = PBXNativeTarget;
107 | buildConfigurationList = 22B0ABF220D1CC8E00E290EC /* Build configuration list for PBXNativeTarget "CustomSegueDemo" */;
108 | buildPhases = (
109 | 22B0ABD120D1CC8B00E290EC /* Sources */,
110 | 22B0ABD220D1CC8B00E290EC /* Frameworks */,
111 | 22B0ABD320D1CC8B00E290EC /* Resources */,
112 | );
113 | buildRules = (
114 | );
115 | dependencies = (
116 | );
117 | name = CustomSegueDemo;
118 | productName = CustomSegueDemo;
119 | productReference = 22B0ABD520D1CC8B00E290EC /* CustomSegueDemo.app */;
120 | productType = "com.apple.product-type.application";
121 | };
122 | 22B0ABE820D1CC8E00E290EC /* CustomSegueDemoTests */ = {
123 | isa = PBXNativeTarget;
124 | buildConfigurationList = 22B0ABF520D1CC8E00E290EC /* Build configuration list for PBXNativeTarget "CustomSegueDemoTests" */;
125 | buildPhases = (
126 | 22B0ABE520D1CC8E00E290EC /* Sources */,
127 | 22B0ABE620D1CC8E00E290EC /* Frameworks */,
128 | 22B0ABE720D1CC8E00E290EC /* Resources */,
129 | );
130 | buildRules = (
131 | );
132 | dependencies = (
133 | 22B0ABEB20D1CC8E00E290EC /* PBXTargetDependency */,
134 | );
135 | name = CustomSegueDemoTests;
136 | productName = CustomSegueDemoTests;
137 | productReference = 22B0ABE920D1CC8E00E290EC /* CustomSegueDemoTests.xctest */;
138 | productType = "com.apple.product-type.bundle.unit-test";
139 | };
140 | /* End PBXNativeTarget section */
141 |
142 | /* Begin PBXProject section */
143 | 22B0ABCD20D1CC8B00E290EC /* Project object */ = {
144 | isa = PBXProject;
145 | attributes = {
146 | LastSwiftUpdateCheck = 0940;
147 | LastUpgradeCheck = 0940;
148 | ORGANIZATIONNAME = it.swiftkick;
149 | TargetAttributes = {
150 | 22B0ABD420D1CC8B00E290EC = {
151 | CreatedOnToolsVersion = 9.4;
152 | };
153 | 22B0ABE820D1CC8E00E290EC = {
154 | CreatedOnToolsVersion = 9.4;
155 | TestTargetID = 22B0ABD420D1CC8B00E290EC;
156 | };
157 | };
158 | };
159 | buildConfigurationList = 22B0ABD020D1CC8B00E290EC /* Build configuration list for PBXProject "CustomSegueDemo" */;
160 | compatibilityVersion = "Xcode 9.3";
161 | developmentRegion = en;
162 | hasScannedForEncodings = 0;
163 | knownRegions = (
164 | en,
165 | Base,
166 | );
167 | mainGroup = 22B0ABCC20D1CC8B00E290EC;
168 | productRefGroup = 22B0ABD620D1CC8B00E290EC /* Products */;
169 | projectDirPath = "";
170 | projectRoot = "";
171 | targets = (
172 | 22B0ABD420D1CC8B00E290EC /* CustomSegueDemo */,
173 | 22B0ABE820D1CC8E00E290EC /* CustomSegueDemoTests */,
174 | );
175 | };
176 | /* End PBXProject section */
177 |
178 | /* Begin PBXResourcesBuildPhase section */
179 | 22B0ABD320D1CC8B00E290EC /* Resources */ = {
180 | isa = PBXResourcesBuildPhase;
181 | buildActionMask = 2147483647;
182 | files = (
183 | 22B0ABE320D1CC8E00E290EC /* LaunchScreen.storyboard in Resources */,
184 | 22B0ABE020D1CC8E00E290EC /* Assets.xcassets in Resources */,
185 | 22B0ABDE20D1CC8B00E290EC /* Main.storyboard in Resources */,
186 | );
187 | runOnlyForDeploymentPostprocessing = 0;
188 | };
189 | 22B0ABE720D1CC8E00E290EC /* Resources */ = {
190 | isa = PBXResourcesBuildPhase;
191 | buildActionMask = 2147483647;
192 | files = (
193 | );
194 | runOnlyForDeploymentPostprocessing = 0;
195 | };
196 | /* End PBXResourcesBuildPhase section */
197 |
198 | /* Begin PBXSourcesBuildPhase section */
199 | 22B0ABD120D1CC8B00E290EC /* Sources */ = {
200 | isa = PBXSourcesBuildPhase;
201 | buildActionMask = 2147483647;
202 | files = (
203 | 22B0ABDB20D1CC8B00E290EC /* ViewController.swift in Sources */,
204 | 22B0ABF920D1CCA200E290EC /* BottomCardSegue.swift in Sources */,
205 | 22B0ABD920D1CC8B00E290EC /* AppDelegate.swift in Sources */,
206 | );
207 | runOnlyForDeploymentPostprocessing = 0;
208 | };
209 | 22B0ABE520D1CC8E00E290EC /* Sources */ = {
210 | isa = PBXSourcesBuildPhase;
211 | buildActionMask = 2147483647;
212 | files = (
213 | 22B0ABEE20D1CC8E00E290EC /* CustomSegueDemoTests.swift in Sources */,
214 | );
215 | runOnlyForDeploymentPostprocessing = 0;
216 | };
217 | /* End PBXSourcesBuildPhase section */
218 |
219 | /* Begin PBXTargetDependency section */
220 | 22B0ABEB20D1CC8E00E290EC /* PBXTargetDependency */ = {
221 | isa = PBXTargetDependency;
222 | target = 22B0ABD420D1CC8B00E290EC /* CustomSegueDemo */;
223 | targetProxy = 22B0ABEA20D1CC8E00E290EC /* PBXContainerItemProxy */;
224 | };
225 | /* End PBXTargetDependency section */
226 |
227 | /* Begin PBXVariantGroup section */
228 | 22B0ABDC20D1CC8B00E290EC /* Main.storyboard */ = {
229 | isa = PBXVariantGroup;
230 | children = (
231 | 22B0ABDD20D1CC8B00E290EC /* Base */,
232 | );
233 | name = Main.storyboard;
234 | sourceTree = "";
235 | };
236 | 22B0ABE120D1CC8E00E290EC /* LaunchScreen.storyboard */ = {
237 | isa = PBXVariantGroup;
238 | children = (
239 | 22B0ABE220D1CC8E00E290EC /* Base */,
240 | );
241 | name = LaunchScreen.storyboard;
242 | sourceTree = "";
243 | };
244 | /* End PBXVariantGroup section */
245 |
246 | /* Begin XCBuildConfiguration section */
247 | 22B0ABF020D1CC8E00E290EC /* Debug */ = {
248 | isa = XCBuildConfiguration;
249 | buildSettings = {
250 | ALWAYS_SEARCH_USER_PATHS = NO;
251 | CLANG_ANALYZER_NONNULL = YES;
252 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
253 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
254 | CLANG_CXX_LIBRARY = "libc++";
255 | CLANG_ENABLE_MODULES = YES;
256 | CLANG_ENABLE_OBJC_ARC = YES;
257 | CLANG_ENABLE_OBJC_WEAK = YES;
258 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
259 | CLANG_WARN_BOOL_CONVERSION = YES;
260 | CLANG_WARN_COMMA = YES;
261 | CLANG_WARN_CONSTANT_CONVERSION = YES;
262 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
263 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
264 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
265 | CLANG_WARN_EMPTY_BODY = YES;
266 | CLANG_WARN_ENUM_CONVERSION = YES;
267 | CLANG_WARN_INFINITE_RECURSION = YES;
268 | CLANG_WARN_INT_CONVERSION = YES;
269 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
270 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
271 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
272 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
273 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
274 | CLANG_WARN_STRICT_PROTOTYPES = YES;
275 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
276 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
277 | CLANG_WARN_UNREACHABLE_CODE = YES;
278 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
279 | CODE_SIGN_IDENTITY = "iPhone Developer";
280 | COPY_PHASE_STRIP = NO;
281 | DEBUG_INFORMATION_FORMAT = dwarf;
282 | ENABLE_STRICT_OBJC_MSGSEND = YES;
283 | ENABLE_TESTABILITY = YES;
284 | GCC_C_LANGUAGE_STANDARD = gnu11;
285 | GCC_DYNAMIC_NO_PIC = NO;
286 | GCC_NO_COMMON_BLOCKS = YES;
287 | GCC_OPTIMIZATION_LEVEL = 0;
288 | GCC_PREPROCESSOR_DEFINITIONS = (
289 | "DEBUG=1",
290 | "$(inherited)",
291 | );
292 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
293 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
294 | GCC_WARN_UNDECLARED_SELECTOR = YES;
295 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
296 | GCC_WARN_UNUSED_FUNCTION = YES;
297 | GCC_WARN_UNUSED_VARIABLE = YES;
298 | IPHONEOS_DEPLOYMENT_TARGET = 11.4;
299 | MTL_ENABLE_DEBUG_INFO = YES;
300 | ONLY_ACTIVE_ARCH = YES;
301 | SDKROOT = iphoneos;
302 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
303 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
304 | };
305 | name = Debug;
306 | };
307 | 22B0ABF120D1CC8E00E290EC /* Release */ = {
308 | isa = XCBuildConfiguration;
309 | buildSettings = {
310 | ALWAYS_SEARCH_USER_PATHS = NO;
311 | CLANG_ANALYZER_NONNULL = YES;
312 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
313 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
314 | CLANG_CXX_LIBRARY = "libc++";
315 | CLANG_ENABLE_MODULES = YES;
316 | CLANG_ENABLE_OBJC_ARC = YES;
317 | CLANG_ENABLE_OBJC_WEAK = YES;
318 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
319 | CLANG_WARN_BOOL_CONVERSION = YES;
320 | CLANG_WARN_COMMA = YES;
321 | CLANG_WARN_CONSTANT_CONVERSION = YES;
322 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
323 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
324 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
325 | CLANG_WARN_EMPTY_BODY = YES;
326 | CLANG_WARN_ENUM_CONVERSION = YES;
327 | CLANG_WARN_INFINITE_RECURSION = YES;
328 | CLANG_WARN_INT_CONVERSION = YES;
329 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
330 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
331 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
332 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
333 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
334 | CLANG_WARN_STRICT_PROTOTYPES = YES;
335 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
336 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
337 | CLANG_WARN_UNREACHABLE_CODE = YES;
338 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
339 | CODE_SIGN_IDENTITY = "iPhone Developer";
340 | COPY_PHASE_STRIP = NO;
341 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
342 | ENABLE_NS_ASSERTIONS = NO;
343 | ENABLE_STRICT_OBJC_MSGSEND = YES;
344 | GCC_C_LANGUAGE_STANDARD = gnu11;
345 | GCC_NO_COMMON_BLOCKS = YES;
346 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
347 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
348 | GCC_WARN_UNDECLARED_SELECTOR = YES;
349 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
350 | GCC_WARN_UNUSED_FUNCTION = YES;
351 | GCC_WARN_UNUSED_VARIABLE = YES;
352 | IPHONEOS_DEPLOYMENT_TARGET = 11.4;
353 | MTL_ENABLE_DEBUG_INFO = NO;
354 | SDKROOT = iphoneos;
355 | SWIFT_COMPILATION_MODE = wholemodule;
356 | SWIFT_OPTIMIZATION_LEVEL = "-O";
357 | VALIDATE_PRODUCT = YES;
358 | };
359 | name = Release;
360 | };
361 | 22B0ABF320D1CC8E00E290EC /* Debug */ = {
362 | isa = XCBuildConfiguration;
363 | buildSettings = {
364 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
365 | CODE_SIGN_STYLE = Automatic;
366 | DEVELOPMENT_TEAM = 38R82CD868;
367 | INFOPLIST_FILE = CustomSegueDemo/Info.plist;
368 | LD_RUNPATH_SEARCH_PATHS = (
369 | "$(inherited)",
370 | "@executable_path/Frameworks",
371 | );
372 | PRODUCT_BUNDLE_IDENTIFIER = it.swiftkick.CustomSegueDemo;
373 | PRODUCT_NAME = "$(TARGET_NAME)";
374 | SWIFT_VERSION = 4.0;
375 | TARGETED_DEVICE_FAMILY = "1,2";
376 | };
377 | name = Debug;
378 | };
379 | 22B0ABF420D1CC8E00E290EC /* Release */ = {
380 | isa = XCBuildConfiguration;
381 | buildSettings = {
382 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
383 | CODE_SIGN_STYLE = Automatic;
384 | DEVELOPMENT_TEAM = 38R82CD868;
385 | INFOPLIST_FILE = CustomSegueDemo/Info.plist;
386 | LD_RUNPATH_SEARCH_PATHS = (
387 | "$(inherited)",
388 | "@executable_path/Frameworks",
389 | );
390 | PRODUCT_BUNDLE_IDENTIFIER = it.swiftkick.CustomSegueDemo;
391 | PRODUCT_NAME = "$(TARGET_NAME)";
392 | SWIFT_VERSION = 4.0;
393 | TARGETED_DEVICE_FAMILY = "1,2";
394 | };
395 | name = Release;
396 | };
397 | 22B0ABF620D1CC8E00E290EC /* Debug */ = {
398 | isa = XCBuildConfiguration;
399 | buildSettings = {
400 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
401 | BUNDLE_LOADER = "$(TEST_HOST)";
402 | CODE_SIGN_STYLE = Automatic;
403 | DEVELOPMENT_TEAM = 38R82CD868;
404 | INFOPLIST_FILE = CustomSegueDemoTests/Info.plist;
405 | LD_RUNPATH_SEARCH_PATHS = (
406 | "$(inherited)",
407 | "@executable_path/Frameworks",
408 | "@loader_path/Frameworks",
409 | );
410 | PRODUCT_BUNDLE_IDENTIFIER = it.swiftkick.CustomSegueDemoTests;
411 | PRODUCT_NAME = "$(TARGET_NAME)";
412 | SWIFT_VERSION = 4.0;
413 | TARGETED_DEVICE_FAMILY = "1,2";
414 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CustomSegueDemo.app/CustomSegueDemo";
415 | };
416 | name = Debug;
417 | };
418 | 22B0ABF720D1CC8E00E290EC /* Release */ = {
419 | isa = XCBuildConfiguration;
420 | buildSettings = {
421 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
422 | BUNDLE_LOADER = "$(TEST_HOST)";
423 | CODE_SIGN_STYLE = Automatic;
424 | DEVELOPMENT_TEAM = 38R82CD868;
425 | INFOPLIST_FILE = CustomSegueDemoTests/Info.plist;
426 | LD_RUNPATH_SEARCH_PATHS = (
427 | "$(inherited)",
428 | "@executable_path/Frameworks",
429 | "@loader_path/Frameworks",
430 | );
431 | PRODUCT_BUNDLE_IDENTIFIER = it.swiftkick.CustomSegueDemoTests;
432 | PRODUCT_NAME = "$(TARGET_NAME)";
433 | SWIFT_VERSION = 4.0;
434 | TARGETED_DEVICE_FAMILY = "1,2";
435 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CustomSegueDemo.app/CustomSegueDemo";
436 | };
437 | name = Release;
438 | };
439 | /* End XCBuildConfiguration section */
440 |
441 | /* Begin XCConfigurationList section */
442 | 22B0ABD020D1CC8B00E290EC /* Build configuration list for PBXProject "CustomSegueDemo" */ = {
443 | isa = XCConfigurationList;
444 | buildConfigurations = (
445 | 22B0ABF020D1CC8E00E290EC /* Debug */,
446 | 22B0ABF120D1CC8E00E290EC /* Release */,
447 | );
448 | defaultConfigurationIsVisible = 0;
449 | defaultConfigurationName = Release;
450 | };
451 | 22B0ABF220D1CC8E00E290EC /* Build configuration list for PBXNativeTarget "CustomSegueDemo" */ = {
452 | isa = XCConfigurationList;
453 | buildConfigurations = (
454 | 22B0ABF320D1CC8E00E290EC /* Debug */,
455 | 22B0ABF420D1CC8E00E290EC /* Release */,
456 | );
457 | defaultConfigurationIsVisible = 0;
458 | defaultConfigurationName = Release;
459 | };
460 | 22B0ABF520D1CC8E00E290EC /* Build configuration list for PBXNativeTarget "CustomSegueDemoTests" */ = {
461 | isa = XCConfigurationList;
462 | buildConfigurations = (
463 | 22B0ABF620D1CC8E00E290EC /* Debug */,
464 | 22B0ABF720D1CC8E00E290EC /* Release */,
465 | );
466 | defaultConfigurationIsVisible = 0;
467 | defaultConfigurationName = Release;
468 | };
469 | /* End XCConfigurationList section */
470 | };
471 | rootObject = 22B0ABCD20D1CC8B00E290EC /* Project object */;
472 | }
473 |
--------------------------------------------------------------------------------