├── ViewControllerContainment.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata └── project.pbxproj ├── ViewControllerContainment ├── SummaryViewController.swift ├── SessionsViewController.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Info.plist ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard ├── AppDelegate.swift └── MasterViewController.swift ├── README.md └── .gitignore /ViewControllerContainment.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ViewControllerContainment/SummaryViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SummaryViewController.swift 3 | // ViewControllerContainment 4 | // 5 | // Created by Bart Jacobs on 01/05/16. 6 | // Copyright © 2016 Bart Jacobs. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | final class SummaryViewController: UIViewController { 12 | 13 | // MARK: - View Life Cycle 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | } 18 | 19 | override func viewWillAppear(_ animated: Bool) { 20 | super.viewWillAppear(animated) 21 | 22 | print("Summary View Controller Will Appear") 23 | } 24 | 25 | override func viewWillDisappear(_ animated: Bool) { 26 | super.viewWillDisappear(animated) 27 | 28 | print("Summary View Controller Will Disappear") 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /ViewControllerContainment/SessionsViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SessionsViewController.swift 3 | // ViewControllerContainment 4 | // 5 | // Created by Bart Jacobs on 01/05/16. 6 | // Copyright © 2016 Bart Jacobs. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | final class SessionsViewController: UIViewController { 12 | 13 | // MARK: - View Life Cycle 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | } 18 | 19 | override func viewWillAppear(_ animated: Bool) { 20 | super.viewWillAppear(animated) 21 | 22 | print("Sessions View Controller Will Appear") 23 | } 24 | 25 | override func viewWillDisappear(_ animated: Bool) { 26 | super.viewWillDisappear(animated) 27 | 28 | print("Sessions View Controller Will Disappear") 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Managing View Controllers With Container View Controllers 2 | 3 | #### Author: Bart Jacobs 4 | 5 | Have you ever wondered how tab bar controllers and navigation controllers do their work? Even though it may seem as if `UITabBarController` and `UINavigationController` are magical classes, they are nothing more than `UIViewController` subclasses. 6 | 7 | What have these classes in common? Both classes allow you to insert custom content in the form of one or more view controllers. A navigation controller, for example, manages a stack of view controllers. You can push and pop view controllers onto and from a navigation stack. The same is true for a tab bar controller. It manages an ordered list of view controllers accessible through a tab bar at the bottom. 8 | 9 | **Read this article on the [blog](http://bartjacobs.com/managing-view-controllers-with-container-view-controllers/)**. 10 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ############################################## 2 | # .gitignore for Xcode 5 Project # 3 | # https://gist.github.com/bartjacobs/8334797 # 4 | ############################################## 5 | 6 | # Temporary Files OS X 7 | 8 | .DS_Store 9 | *.swp 10 | *.lock 11 | profile 12 | 13 | 14 | # Temporary Files Xcode 15 | 16 | *~.nib 17 | 18 | 19 | # Xcode Build Files 20 | 21 | DerivedData/ 22 | build/ 23 | 24 | 25 | # Xcode Private Settings 26 | 27 | *.pbxuser 28 | *.mode1v3 29 | *.mode2v3 30 | *.perspectivev3 31 | 32 | 33 | # Whitelist Defaults 34 | 35 | !default.pbxuser 36 | !default.mode1v3 37 | !default.mode2v3 38 | !default.perspectivev3 39 | 40 | 41 | # Xcode 5 Personal Settings 42 | 43 | xcuserdata 44 | 45 | 46 | # Xcode 5 Deprecated Classes 47 | 48 | *.moved-aside 49 | 50 | 51 | # Xcode 5 Version Control 52 | 53 | *.xccheckout 54 | 55 | 56 | # Cocoapods 57 | 58 | Pods/ 59 | -------------------------------------------------------------------------------- /ViewControllerContainment/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /ViewControllerContainment/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 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 | -------------------------------------------------------------------------------- /ViewControllerContainment/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 | -------------------------------------------------------------------------------- /ViewControllerContainment/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ViewControllerContainment 4 | // 5 | // Created by Bart Jacobs on 01/05/16. 6 | // Copyright © 2016 Bart Jacobs. 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 throttle down OpenGL ES frame rates. 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 inactive 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 | -------------------------------------------------------------------------------- /ViewControllerContainment/MasterViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MasterViewController.swift 3 | // ViewControllerContainment 4 | // 5 | // Created by Bart Jacobs on 01/05/16. 6 | // Copyright © 2016 Bart Jacobs. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | final class MasterViewController: UIViewController { 12 | 13 | @IBOutlet var segmentedControl: UISegmentedControl! 14 | 15 | private lazy var summaryViewController: SummaryViewController = { 16 | // Load Storyboard 17 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle.main) 18 | 19 | // Instantiate View Controller 20 | var viewController = storyboard.instantiateViewController(withIdentifier: "SummaryViewController") as! SummaryViewController 21 | 22 | // Add View Controller as Child View Controller 23 | self.add(asChildViewController: viewController) 24 | 25 | return viewController 26 | }() 27 | 28 | private lazy var sessionsViewController: SessionsViewController = { 29 | // Load Storyboard 30 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle.main) 31 | 32 | // Instantiate View Controller 33 | var viewController = storyboard.instantiateViewController(withIdentifier: "SessionsViewController") as! SessionsViewController 34 | 35 | // Add View Controller as Child View Controller 36 | self.add(asChildViewController: viewController) 37 | 38 | return viewController 39 | }() 40 | 41 | // MARK: - View Life Cycle 42 | 43 | override func viewDidLoad() { 44 | super.viewDidLoad() 45 | 46 | setupView() 47 | } 48 | 49 | // MARK: - View Methods 50 | 51 | private func setupView() { 52 | setupSegmentedControl() 53 | 54 | updateView() 55 | } 56 | 57 | private func updateView() { 58 | if segmentedControl.selectedSegmentIndex == 0 { 59 | remove(asChildViewController: sessionsViewController) 60 | add(asChildViewController: summaryViewController) 61 | } else { 62 | remove(asChildViewController: summaryViewController) 63 | add(asChildViewController: sessionsViewController) 64 | } 65 | } 66 | 67 | private func setupSegmentedControl() { 68 | // Configure Segmented Control 69 | segmentedControl.removeAllSegments() 70 | segmentedControl.insertSegment(withTitle: "Summary", at: 0, animated: false) 71 | segmentedControl.insertSegment(withTitle: "Sessions", at: 1, animated: false) 72 | segmentedControl.addTarget(self, action: #selector(selectionDidChange(_:)), for: .valueChanged) 73 | 74 | // Select First Segment 75 | segmentedControl.selectedSegmentIndex = 0 76 | } 77 | 78 | // MARK: - Actions 79 | 80 | func selectionDidChange(_ sender: UISegmentedControl) { 81 | updateView() 82 | } 83 | 84 | // MARK: - Helper Methods 85 | 86 | private func add(asChildViewController viewController: UIViewController) { 87 | // Add Child View Controller 88 | addChildViewController(viewController) 89 | 90 | // Add Child View as Subview 91 | view.addSubview(viewController.view) 92 | 93 | // Configure Child View 94 | viewController.view.frame = view.bounds 95 | viewController.view.autoresizingMask = [.flexibleWidth, .flexibleHeight] 96 | 97 | // Notify Child View Controller 98 | viewController.didMove(toParentViewController: self) 99 | } 100 | 101 | private func remove(asChildViewController viewController: UIViewController) { 102 | // Notify Child View Controller 103 | viewController.willMove(toParentViewController: nil) 104 | 105 | // Remove Child View From Superview 106 | viewController.view.removeFromSuperview() 107 | 108 | // Notify Child View Controller 109 | viewController.removeFromParentViewController() 110 | } 111 | 112 | } 113 | -------------------------------------------------------------------------------- /ViewControllerContainment/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 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 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 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /ViewControllerContainment.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | CC878CA71CD5BD6B004BC685 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC878CA61CD5BD6B004BC685 /* AppDelegate.swift */; }; 11 | CC878CA91CD5BD6B004BC685 /* MasterViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC878CA81CD5BD6B004BC685 /* MasterViewController.swift */; }; 12 | CC878CAC1CD5BD6B004BC685 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CC878CAA1CD5BD6B004BC685 /* Main.storyboard */; }; 13 | CC878CAE1CD5BD6B004BC685 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = CC878CAD1CD5BD6B004BC685 /* Assets.xcassets */; }; 14 | CC878CB11CD5BD6B004BC685 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = CC878CAF1CD5BD6B004BC685 /* LaunchScreen.storyboard */; }; 15 | CC878CB91CD5C19A004BC685 /* SummaryViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC878CB81CD5C19A004BC685 /* SummaryViewController.swift */; }; 16 | CC878CBB1CD5C1A5004BC685 /* SessionsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC878CBA1CD5C1A5004BC685 /* SessionsViewController.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | CC878CA31CD5BD6B004BC685 /* ViewControllerContainment.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ViewControllerContainment.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | CC878CA61CD5BD6B004BC685 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 22 | CC878CA81CD5BD6B004BC685 /* MasterViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MasterViewController.swift; sourceTree = ""; }; 23 | CC878CAB1CD5BD6B004BC685 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 24 | CC878CAD1CD5BD6B004BC685 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 25 | CC878CB01CD5BD6B004BC685 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 26 | CC878CB21CD5BD6B004BC685 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | CC878CB81CD5C19A004BC685 /* SummaryViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SummaryViewController.swift; sourceTree = ""; }; 28 | CC878CBA1CD5C1A5004BC685 /* SessionsViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SessionsViewController.swift; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | CC878CA01CD5BD6B004BC685 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | CC878C9A1CD5BD6B004BC685 = { 43 | isa = PBXGroup; 44 | children = ( 45 | CC878CA51CD5BD6B004BC685 /* ViewControllerContainment */, 46 | CC878CA41CD5BD6B004BC685 /* Products */, 47 | ); 48 | sourceTree = ""; 49 | }; 50 | CC878CA41CD5BD6B004BC685 /* Products */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | CC878CA31CD5BD6B004BC685 /* ViewControllerContainment.app */, 54 | ); 55 | name = Products; 56 | sourceTree = ""; 57 | }; 58 | CC878CA51CD5BD6B004BC685 /* ViewControllerContainment */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | CC878CA61CD5BD6B004BC685 /* AppDelegate.swift */, 62 | CC878CA81CD5BD6B004BC685 /* MasterViewController.swift */, 63 | CC878CB81CD5C19A004BC685 /* SummaryViewController.swift */, 64 | CC878CBA1CD5C1A5004BC685 /* SessionsViewController.swift */, 65 | CC878CAA1CD5BD6B004BC685 /* Main.storyboard */, 66 | CC878CAD1CD5BD6B004BC685 /* Assets.xcassets */, 67 | CC878CAF1CD5BD6B004BC685 /* LaunchScreen.storyboard */, 68 | CC878CB21CD5BD6B004BC685 /* Info.plist */, 69 | ); 70 | path = ViewControllerContainment; 71 | sourceTree = ""; 72 | }; 73 | /* End PBXGroup section */ 74 | 75 | /* Begin PBXNativeTarget section */ 76 | CC878CA21CD5BD6B004BC685 /* ViewControllerContainment */ = { 77 | isa = PBXNativeTarget; 78 | buildConfigurationList = CC878CB51CD5BD6B004BC685 /* Build configuration list for PBXNativeTarget "ViewControllerContainment" */; 79 | buildPhases = ( 80 | CC878C9F1CD5BD6B004BC685 /* Sources */, 81 | CC878CA01CD5BD6B004BC685 /* Frameworks */, 82 | CC878CA11CD5BD6B004BC685 /* Resources */, 83 | ); 84 | buildRules = ( 85 | ); 86 | dependencies = ( 87 | ); 88 | name = ViewControllerContainment; 89 | productName = ViewControllerContainment; 90 | productReference = CC878CA31CD5BD6B004BC685 /* ViewControllerContainment.app */; 91 | productType = "com.apple.product-type.application"; 92 | }; 93 | /* End PBXNativeTarget section */ 94 | 95 | /* Begin PBXProject section */ 96 | CC878C9B1CD5BD6B004BC685 /* Project object */ = { 97 | isa = PBXProject; 98 | attributes = { 99 | LastSwiftUpdateCheck = 0730; 100 | LastUpgradeCheck = 0810; 101 | ORGANIZATIONNAME = "Bart Jacobs"; 102 | TargetAttributes = { 103 | CC878CA21CD5BD6B004BC685 = { 104 | CreatedOnToolsVersion = 7.3; 105 | LastSwiftMigration = 0810; 106 | }; 107 | }; 108 | }; 109 | buildConfigurationList = CC878C9E1CD5BD6B004BC685 /* Build configuration list for PBXProject "ViewControllerContainment" */; 110 | compatibilityVersion = "Xcode 3.2"; 111 | developmentRegion = English; 112 | hasScannedForEncodings = 0; 113 | knownRegions = ( 114 | en, 115 | Base, 116 | ); 117 | mainGroup = CC878C9A1CD5BD6B004BC685; 118 | productRefGroup = CC878CA41CD5BD6B004BC685 /* Products */; 119 | projectDirPath = ""; 120 | projectRoot = ""; 121 | targets = ( 122 | CC878CA21CD5BD6B004BC685 /* ViewControllerContainment */, 123 | ); 124 | }; 125 | /* End PBXProject section */ 126 | 127 | /* Begin PBXResourcesBuildPhase section */ 128 | CC878CA11CD5BD6B004BC685 /* Resources */ = { 129 | isa = PBXResourcesBuildPhase; 130 | buildActionMask = 2147483647; 131 | files = ( 132 | CC878CB11CD5BD6B004BC685 /* LaunchScreen.storyboard in Resources */, 133 | CC878CAE1CD5BD6B004BC685 /* Assets.xcassets in Resources */, 134 | CC878CAC1CD5BD6B004BC685 /* Main.storyboard in Resources */, 135 | ); 136 | runOnlyForDeploymentPostprocessing = 0; 137 | }; 138 | /* End PBXResourcesBuildPhase section */ 139 | 140 | /* Begin PBXSourcesBuildPhase section */ 141 | CC878C9F1CD5BD6B004BC685 /* Sources */ = { 142 | isa = PBXSourcesBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | CC878CA91CD5BD6B004BC685 /* MasterViewController.swift in Sources */, 146 | CC878CBB1CD5C1A5004BC685 /* SessionsViewController.swift in Sources */, 147 | CC878CA71CD5BD6B004BC685 /* AppDelegate.swift in Sources */, 148 | CC878CB91CD5C19A004BC685 /* SummaryViewController.swift in Sources */, 149 | ); 150 | runOnlyForDeploymentPostprocessing = 0; 151 | }; 152 | /* End PBXSourcesBuildPhase section */ 153 | 154 | /* Begin PBXVariantGroup section */ 155 | CC878CAA1CD5BD6B004BC685 /* Main.storyboard */ = { 156 | isa = PBXVariantGroup; 157 | children = ( 158 | CC878CAB1CD5BD6B004BC685 /* Base */, 159 | ); 160 | name = Main.storyboard; 161 | sourceTree = ""; 162 | }; 163 | CC878CAF1CD5BD6B004BC685 /* LaunchScreen.storyboard */ = { 164 | isa = PBXVariantGroup; 165 | children = ( 166 | CC878CB01CD5BD6B004BC685 /* Base */, 167 | ); 168 | name = LaunchScreen.storyboard; 169 | sourceTree = ""; 170 | }; 171 | /* End PBXVariantGroup section */ 172 | 173 | /* Begin XCBuildConfiguration section */ 174 | CC878CB31CD5BD6B004BC685 /* Debug */ = { 175 | isa = XCBuildConfiguration; 176 | buildSettings = { 177 | ALWAYS_SEARCH_USER_PATHS = NO; 178 | CLANG_ANALYZER_NONNULL = YES; 179 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 180 | CLANG_CXX_LIBRARY = "libc++"; 181 | CLANG_ENABLE_MODULES = YES; 182 | CLANG_ENABLE_OBJC_ARC = YES; 183 | CLANG_WARN_BOOL_CONVERSION = YES; 184 | CLANG_WARN_CONSTANT_CONVERSION = YES; 185 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 186 | CLANG_WARN_EMPTY_BODY = YES; 187 | CLANG_WARN_ENUM_CONVERSION = YES; 188 | CLANG_WARN_INFINITE_RECURSION = YES; 189 | CLANG_WARN_INT_CONVERSION = YES; 190 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 191 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 192 | CLANG_WARN_UNREACHABLE_CODE = YES; 193 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 194 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 195 | COPY_PHASE_STRIP = NO; 196 | DEBUG_INFORMATION_FORMAT = dwarf; 197 | ENABLE_STRICT_OBJC_MSGSEND = YES; 198 | ENABLE_TESTABILITY = YES; 199 | GCC_C_LANGUAGE_STANDARD = gnu99; 200 | GCC_DYNAMIC_NO_PIC = NO; 201 | GCC_NO_COMMON_BLOCKS = YES; 202 | GCC_OPTIMIZATION_LEVEL = 0; 203 | GCC_PREPROCESSOR_DEFINITIONS = ( 204 | "DEBUG=1", 205 | "$(inherited)", 206 | ); 207 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 208 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 209 | GCC_WARN_UNDECLARED_SELECTOR = YES; 210 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 211 | GCC_WARN_UNUSED_FUNCTION = YES; 212 | GCC_WARN_UNUSED_VARIABLE = YES; 213 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 214 | MTL_ENABLE_DEBUG_INFO = YES; 215 | ONLY_ACTIVE_ARCH = YES; 216 | SDKROOT = iphoneos; 217 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 218 | TARGETED_DEVICE_FAMILY = "1,2"; 219 | }; 220 | name = Debug; 221 | }; 222 | CC878CB41CD5BD6B004BC685 /* Release */ = { 223 | isa = XCBuildConfiguration; 224 | buildSettings = { 225 | ALWAYS_SEARCH_USER_PATHS = NO; 226 | CLANG_ANALYZER_NONNULL = YES; 227 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 228 | CLANG_CXX_LIBRARY = "libc++"; 229 | CLANG_ENABLE_MODULES = YES; 230 | CLANG_ENABLE_OBJC_ARC = YES; 231 | CLANG_WARN_BOOL_CONVERSION = YES; 232 | CLANG_WARN_CONSTANT_CONVERSION = YES; 233 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 234 | CLANG_WARN_EMPTY_BODY = YES; 235 | CLANG_WARN_ENUM_CONVERSION = YES; 236 | CLANG_WARN_INFINITE_RECURSION = YES; 237 | CLANG_WARN_INT_CONVERSION = YES; 238 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 239 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 240 | CLANG_WARN_UNREACHABLE_CODE = YES; 241 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 242 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 243 | COPY_PHASE_STRIP = NO; 244 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 245 | ENABLE_NS_ASSERTIONS = NO; 246 | ENABLE_STRICT_OBJC_MSGSEND = YES; 247 | GCC_C_LANGUAGE_STANDARD = gnu99; 248 | GCC_NO_COMMON_BLOCKS = YES; 249 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 250 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 251 | GCC_WARN_UNDECLARED_SELECTOR = YES; 252 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 253 | GCC_WARN_UNUSED_FUNCTION = YES; 254 | GCC_WARN_UNUSED_VARIABLE = YES; 255 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 256 | MTL_ENABLE_DEBUG_INFO = NO; 257 | SDKROOT = iphoneos; 258 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 259 | TARGETED_DEVICE_FAMILY = "1,2"; 260 | VALIDATE_PRODUCT = YES; 261 | }; 262 | name = Release; 263 | }; 264 | CC878CB61CD5BD6B004BC685 /* Debug */ = { 265 | isa = XCBuildConfiguration; 266 | buildSettings = { 267 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 268 | INFOPLIST_FILE = ViewControllerContainment/Info.plist; 269 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 270 | PRODUCT_BUNDLE_IDENTIFIER = com.bartjacobs.ViewControllerContainment; 271 | PRODUCT_NAME = "$(TARGET_NAME)"; 272 | SWIFT_VERSION = 3.0; 273 | }; 274 | name = Debug; 275 | }; 276 | CC878CB71CD5BD6B004BC685 /* Release */ = { 277 | isa = XCBuildConfiguration; 278 | buildSettings = { 279 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 280 | INFOPLIST_FILE = ViewControllerContainment/Info.plist; 281 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 282 | PRODUCT_BUNDLE_IDENTIFIER = com.bartjacobs.ViewControllerContainment; 283 | PRODUCT_NAME = "$(TARGET_NAME)"; 284 | SWIFT_VERSION = 3.0; 285 | }; 286 | name = Release; 287 | }; 288 | /* End XCBuildConfiguration section */ 289 | 290 | /* Begin XCConfigurationList section */ 291 | CC878C9E1CD5BD6B004BC685 /* Build configuration list for PBXProject "ViewControllerContainment" */ = { 292 | isa = XCConfigurationList; 293 | buildConfigurations = ( 294 | CC878CB31CD5BD6B004BC685 /* Debug */, 295 | CC878CB41CD5BD6B004BC685 /* Release */, 296 | ); 297 | defaultConfigurationIsVisible = 0; 298 | defaultConfigurationName = Release; 299 | }; 300 | CC878CB51CD5BD6B004BC685 /* Build configuration list for PBXNativeTarget "ViewControllerContainment" */ = { 301 | isa = XCConfigurationList; 302 | buildConfigurations = ( 303 | CC878CB61CD5BD6B004BC685 /* Debug */, 304 | CC878CB71CD5BD6B004BC685 /* Release */, 305 | ); 306 | defaultConfigurationIsVisible = 0; 307 | defaultConfigurationName = Release; 308 | }; 309 | /* End XCConfigurationList section */ 310 | }; 311 | rootObject = CC878C9B1CD5BD6B004BC685 /* Project object */; 312 | } 313 | --------------------------------------------------------------------------------