├── CustomNavigationView ├── Assets.xcassets │ ├── Contents.json │ └── AppIcon.appiconset │ │ └── Contents.json ├── Preview Content │ └── Preview Assets.xcassets │ │ └── Contents.json ├── AppDelegate.swift ├── Base.lproj │ └── LaunchScreen.storyboard ├── Info.plist ├── SceneDelegate.swift └── ContentView.swift └── CustomNavigationView.xcodeproj ├── project.xcworkspace ├── contents.xcworkspacedata ├── xcuserdata │ ├── home.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ └── brucewade.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcshareddata │ └── IDEWorkspaceChecks.plist ├── xcuserdata ├── home.xcuserdatad │ └── xcschemes │ │ └── xcschememanagement.plist └── brucewade.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist └── project.pbxproj /CustomNavigationView/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /CustomNavigationView/Preview Content/Preview Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : 1 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /CustomNavigationView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CustomNavigationView.xcodeproj/project.xcworkspace/xcuserdata/home.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SarahAlsharif/CustomNavigationView/HEAD/CustomNavigationView.xcodeproj/project.xcworkspace/xcuserdata/home.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CustomNavigationView.xcodeproj/project.xcworkspace/xcuserdata/brucewade.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SarahAlsharif/CustomNavigationView/HEAD/CustomNavigationView.xcodeproj/project.xcworkspace/xcuserdata/brucewade.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /CustomNavigationView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /CustomNavigationView.xcodeproj/xcuserdata/home.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CustomNavigationView.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /CustomNavigationView.xcodeproj/xcuserdata/brucewade.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | CustomNavigationView.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /CustomNavigationView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // CustomNavigationView 4 | // 5 | // Created by Sarah Alsharif on 9/12/20. 6 | // Copyright © 2020 Sarah Alsharif. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | 15 | 16 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 17 | // Override point for customization after application launch. 18 | return true 19 | } 20 | 21 | // MARK: UISceneSession Lifecycle 22 | 23 | func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { 24 | // Called when a new scene session is being created. 25 | // Use this method to select a configuration to create the new scene with. 26 | return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) 27 | } 28 | 29 | func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { 30 | // Called when the user discards a scene session. 31 | // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. 32 | // Use this method to release any resources that were specific to the discarded scenes, as they will not return. 33 | } 34 | 35 | 36 | } 37 | 38 | -------------------------------------------------------------------------------- /CustomNavigationView/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 | -------------------------------------------------------------------------------- /CustomNavigationView/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "scale" : "2x", 6 | "size" : "20x20" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "scale" : "3x", 11 | "size" : "20x20" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "scale" : "2x", 16 | "size" : "29x29" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "scale" : "3x", 21 | "size" : "29x29" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "scale" : "2x", 26 | "size" : "40x40" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "scale" : "3x", 31 | "size" : "40x40" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "scale" : "2x", 36 | "size" : "60x60" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "scale" : "3x", 41 | "size" : "60x60" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "scale" : "1x", 46 | "size" : "20x20" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "scale" : "2x", 51 | "size" : "20x20" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "scale" : "1x", 56 | "size" : "29x29" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "scale" : "2x", 61 | "size" : "29x29" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "scale" : "1x", 66 | "size" : "40x40" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "scale" : "2x", 71 | "size" : "40x40" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "scale" : "1x", 76 | "size" : "76x76" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "scale" : "2x", 81 | "size" : "76x76" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "scale" : "2x", 86 | "size" : "83.5x83.5" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "scale" : "1x", 91 | "size" : "1024x1024" 92 | } 93 | ], 94 | "info" : { 95 | "author" : "xcode", 96 | "version" : 1 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /CustomNavigationView/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 | $(PRODUCT_BUNDLE_PACKAGE_TYPE) 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UIApplicationSceneManifest 24 | 25 | UIApplicationSupportsMultipleScenes 26 | 27 | UISceneConfigurations 28 | 29 | UIWindowSceneSessionRoleApplication 30 | 31 | 32 | UISceneConfigurationName 33 | Default Configuration 34 | UISceneDelegateClassName 35 | $(PRODUCT_MODULE_NAME).SceneDelegate 36 | 37 | 38 | 39 | 40 | UILaunchStoryboardName 41 | LaunchScreen 42 | UIRequiredDeviceCapabilities 43 | 44 | armv7 45 | 46 | UISupportedInterfaceOrientations 47 | 48 | UIInterfaceOrientationPortrait 49 | UIInterfaceOrientationLandscapeLeft 50 | UIInterfaceOrientationLandscapeRight 51 | 52 | UISupportedInterfaceOrientations~ipad 53 | 54 | UIInterfaceOrientationPortrait 55 | UIInterfaceOrientationPortraitUpsideDown 56 | UIInterfaceOrientationLandscapeLeft 57 | UIInterfaceOrientationLandscapeRight 58 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /CustomNavigationView/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // CustomNavigationView 4 | // 5 | // Created by Sarah Alsharif on 9/12/20. 6 | // Copyright © 2020 Sarah Alsharif. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SwiftUI 11 | 12 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 18 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 19 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 20 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 21 | 22 | // Create the SwiftUI view that provides the window contents. 23 | let contentView = ContentView() 24 | 25 | // Use a UIHostingController as window root view controller. 26 | if let windowScene = scene as? UIWindowScene { 27 | let window = UIWindow(windowScene: windowScene) 28 | window.rootViewController = UIHostingController(rootView: contentView) 29 | self.window = window 30 | window.makeKeyAndVisible() 31 | } 32 | } 33 | 34 | func sceneDidDisconnect(_ scene: UIScene) { 35 | // Called as the scene is being released by the system. 36 | // This occurs shortly after the scene enters the background, or when its session is discarded. 37 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 38 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 39 | } 40 | 41 | func sceneDidBecomeActive(_ scene: UIScene) { 42 | // Called when the scene has moved from an inactive state to an active state. 43 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 44 | } 45 | 46 | func sceneWillResignActive(_ scene: UIScene) { 47 | // Called when the scene will move from an active state to an inactive state. 48 | // This may occur due to temporary interruptions (ex. an incoming phone call). 49 | } 50 | 51 | func sceneWillEnterForeground(_ scene: UIScene) { 52 | // Called as the scene transitions from the background to the foreground. 53 | // Use this method to undo the changes made on entering the background. 54 | } 55 | 56 | func sceneDidEnterBackground(_ scene: UIScene) { 57 | // Called as the scene transitions from the foreground to the background. 58 | // Use this method to save data, release shared resources, and store enough scene-specific state information 59 | // to restore the scene back to its current state. 60 | } 61 | 62 | 63 | } 64 | 65 | -------------------------------------------------------------------------------- /CustomNavigationView/ContentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ContentView.swift 3 | // CustomNavigationView 4 | // 5 | // Created by Sarah Alsharif on 9/12/20. 6 | // Copyright © 2020 Sarah Alsharif. All rights reserved. 7 | // 8 | 9 | import SwiftUI 10 | 11 | struct ContentView: View { 12 | var body: some View { 13 | CustomNavigationView(destination: FirstView(), isRoot: true, isLast: false, color: .blue){ 14 | Text("This is the Root View") 15 | } 16 | } 17 | } 18 | 19 | struct FirstView : View { 20 | var body: some View { 21 | CustomNavigationView(destination: SecondView(), isRoot: false, isLast: false, color: .red){ 22 | Text("This is the First View") 23 | } 24 | } 25 | } 26 | 27 | struct SecondView : View { 28 | var body: some View { 29 | CustomNavigationView(destination: LastView(), isRoot: false, isLast: false, color: .green){ 30 | Text("This is the Second View") 31 | } 32 | } 33 | } 34 | 35 | struct LastView : View { 36 | var body: some View { 37 | CustomNavigationView(destination: EmptyView(), isRoot: false, isLast: true, color: .yellow){ 38 | Text("This is the Last View") 39 | } 40 | } 41 | } 42 | 43 | struct CustomNavigationView: View { 44 | let destination : Destination 45 | let isRoot : Bool 46 | let isLast : Bool 47 | let color : Color 48 | let content: Content 49 | @State var active = false 50 | @Environment(\.presentationMode) var mode: Binding 51 | 52 | init(destination: Destination, isRoot : Bool, isLast : Bool,color : Color, @ViewBuilder content: () -> Content) { 53 | self.destination = destination 54 | self.isRoot = isRoot 55 | self.isLast = isLast 56 | self.color = color 57 | self.content = content() 58 | } 59 | 60 | var body: some View { 61 | NavigationView { 62 | GeometryReader { geometry in 63 | Color.white 64 | VStack { 65 | ZStack(alignment: .top) { 66 | WaveShape() 67 | .fill(color.opacity(0.3)) 68 | HStack { 69 | Image(systemName: "arrow.left") 70 | .frame(width: 30) 71 | .onTapGesture(count: 1, perform: { 72 | self.mode.wrappedValue.dismiss() 73 | }).opacity(isRoot ? 0 : 1) 74 | Spacer() 75 | Image(systemName: "command") 76 | .frame(width: 30) 77 | Spacer() 78 | Image(systemName: "arrow.right") 79 | .frame(width: 30) 80 | .onTapGesture(count: 1, perform: { 81 | self.active.toggle() 82 | }) 83 | .opacity(isLast ? 0 : 1) 84 | NavigationLink( 85 | destination: destination.navigationBarHidden(true) 86 | .navigationBarHidden(true), 87 | isActive: self.$active, 88 | label: { 89 | //no label 90 | }) 91 | } 92 | .padding([.leading,.trailing], 8) 93 | .padding(.top, geometry.safeAreaInsets.top + 8) 94 | .frame(width: geometry.size.width) 95 | .font(.system(size: 22)) 96 | 97 | } 98 | .frame(width: geometry.size.width, height: 60 + geometry.safeAreaInsets.top) 99 | .edgesIgnoringSafeArea(.top) 100 | 101 | Spacer() 102 | self.content 103 | .padding() 104 | .background(color.opacity(0.3)) 105 | .cornerRadius(20) 106 | Spacer() 107 | } 108 | }.navigationBarHidden(true) 109 | } 110 | } 111 | } 112 | 113 | struct ContentView_Previews: PreviewProvider { 114 | static var previews: some View { 115 | ContentView() 116 | } 117 | } 118 | 119 | 120 | 121 | struct WaveShape : Shape { 122 | func path(in rect: CGRect) -> Path { 123 | var path = Path() 124 | path.move(to: .zero) 125 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.minY)) 126 | path.addLine(to: CGPoint(x: rect.maxX, y: rect.maxY)) 127 | path.addCurve(to: CGPoint(x: rect.minX, y: rect.maxY), 128 | control1: CGPoint(x: rect.maxX * 0.75, y: rect.maxY * 0.5), 129 | control2: CGPoint(x: rect.maxX * 0.35, y: rect.maxY * 2)) 130 | return path 131 | } 132 | } 133 | 134 | 135 | extension UINavigationController: UIGestureRecognizerDelegate { 136 | override open func viewDidLoad() { 137 | super.viewDidLoad() 138 | interactivePopGestureRecognizer?.delegate = self 139 | } 140 | 141 | public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool { 142 | return viewControllers.count > 1 143 | } 144 | } 145 | 146 | 147 | -------------------------------------------------------------------------------- /CustomNavigationView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | F4737A0C250C6E79008A5EC9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4737A0B250C6E79008A5EC9 /* AppDelegate.swift */; }; 11 | F4737A0E250C6E79008A5EC9 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4737A0D250C6E79008A5EC9 /* SceneDelegate.swift */; }; 12 | F4737A10250C6E79008A5EC9 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4737A0F250C6E79008A5EC9 /* ContentView.swift */; }; 13 | F4737A12250C6E81008A5EC9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F4737A11250C6E81008A5EC9 /* Assets.xcassets */; }; 14 | F4737A15250C6E81008A5EC9 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = F4737A14250C6E81008A5EC9 /* Preview Assets.xcassets */; }; 15 | F4737A18250C6E82008A5EC9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = F4737A16250C6E82008A5EC9 /* LaunchScreen.storyboard */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | F4737A08250C6E78008A5EC9 /* CustomNavigationView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CustomNavigationView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | F4737A0B250C6E79008A5EC9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 21 | F4737A0D250C6E79008A5EC9 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 22 | F4737A0F250C6E79008A5EC9 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; 23 | F4737A11250C6E81008A5EC9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 24 | F4737A14250C6E81008A5EC9 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; 25 | F4737A17250C6E82008A5EC9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 26 | F4737A19250C6E82008A5EC9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | /* End PBXFileReference section */ 28 | 29 | /* Begin PBXFrameworksBuildPhase section */ 30 | F4737A05250C6E78008A5EC9 /* Frameworks */ = { 31 | isa = PBXFrameworksBuildPhase; 32 | buildActionMask = 2147483647; 33 | files = ( 34 | ); 35 | runOnlyForDeploymentPostprocessing = 0; 36 | }; 37 | /* End PBXFrameworksBuildPhase section */ 38 | 39 | /* Begin PBXGroup section */ 40 | F47379FF250C6E78008A5EC9 = { 41 | isa = PBXGroup; 42 | children = ( 43 | F4737A0A250C6E78008A5EC9 /* CustomNavigationView */, 44 | F4737A09250C6E78008A5EC9 /* Products */, 45 | ); 46 | sourceTree = ""; 47 | }; 48 | F4737A09250C6E78008A5EC9 /* Products */ = { 49 | isa = PBXGroup; 50 | children = ( 51 | F4737A08250C6E78008A5EC9 /* CustomNavigationView.app */, 52 | ); 53 | name = Products; 54 | sourceTree = ""; 55 | }; 56 | F4737A0A250C6E78008A5EC9 /* CustomNavigationView */ = { 57 | isa = PBXGroup; 58 | children = ( 59 | F4737A0B250C6E79008A5EC9 /* AppDelegate.swift */, 60 | F4737A0D250C6E79008A5EC9 /* SceneDelegate.swift */, 61 | F4737A0F250C6E79008A5EC9 /* ContentView.swift */, 62 | F4737A11250C6E81008A5EC9 /* Assets.xcassets */, 63 | F4737A16250C6E82008A5EC9 /* LaunchScreen.storyboard */, 64 | F4737A19250C6E82008A5EC9 /* Info.plist */, 65 | F4737A13250C6E81008A5EC9 /* Preview Content */, 66 | ); 67 | path = CustomNavigationView; 68 | sourceTree = ""; 69 | }; 70 | F4737A13250C6E81008A5EC9 /* Preview Content */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | F4737A14250C6E81008A5EC9 /* Preview Assets.xcassets */, 74 | ); 75 | path = "Preview Content"; 76 | sourceTree = ""; 77 | }; 78 | /* End PBXGroup section */ 79 | 80 | /* Begin PBXNativeTarget section */ 81 | F4737A07250C6E78008A5EC9 /* CustomNavigationView */ = { 82 | isa = PBXNativeTarget; 83 | buildConfigurationList = F4737A1C250C6E82008A5EC9 /* Build configuration list for PBXNativeTarget "CustomNavigationView" */; 84 | buildPhases = ( 85 | F4737A04250C6E78008A5EC9 /* Sources */, 86 | F4737A05250C6E78008A5EC9 /* Frameworks */, 87 | F4737A06250C6E78008A5EC9 /* Resources */, 88 | ); 89 | buildRules = ( 90 | ); 91 | dependencies = ( 92 | ); 93 | name = CustomNavigationView; 94 | productName = CustomNavigationView; 95 | productReference = F4737A08250C6E78008A5EC9 /* CustomNavigationView.app */; 96 | productType = "com.apple.product-type.application"; 97 | }; 98 | /* End PBXNativeTarget section */ 99 | 100 | /* Begin PBXProject section */ 101 | F4737A00250C6E78008A5EC9 /* Project object */ = { 102 | isa = PBXProject; 103 | attributes = { 104 | LastSwiftUpdateCheck = 1160; 105 | LastUpgradeCheck = 1200; 106 | ORGANIZATIONNAME = "Sarah Alsharif"; 107 | TargetAttributes = { 108 | F4737A07250C6E78008A5EC9 = { 109 | CreatedOnToolsVersion = 11.6; 110 | }; 111 | }; 112 | }; 113 | buildConfigurationList = F4737A03250C6E78008A5EC9 /* Build configuration list for PBXProject "CustomNavigationView" */; 114 | compatibilityVersion = "Xcode 9.3"; 115 | developmentRegion = en; 116 | hasScannedForEncodings = 0; 117 | knownRegions = ( 118 | en, 119 | Base, 120 | ); 121 | mainGroup = F47379FF250C6E78008A5EC9; 122 | productRefGroup = F4737A09250C6E78008A5EC9 /* Products */; 123 | projectDirPath = ""; 124 | projectRoot = ""; 125 | targets = ( 126 | F4737A07250C6E78008A5EC9 /* CustomNavigationView */, 127 | ); 128 | }; 129 | /* End PBXProject section */ 130 | 131 | /* Begin PBXResourcesBuildPhase section */ 132 | F4737A06250C6E78008A5EC9 /* Resources */ = { 133 | isa = PBXResourcesBuildPhase; 134 | buildActionMask = 2147483647; 135 | files = ( 136 | F4737A18250C6E82008A5EC9 /* LaunchScreen.storyboard in Resources */, 137 | F4737A15250C6E81008A5EC9 /* Preview Assets.xcassets in Resources */, 138 | F4737A12250C6E81008A5EC9 /* Assets.xcassets in Resources */, 139 | ); 140 | runOnlyForDeploymentPostprocessing = 0; 141 | }; 142 | /* End PBXResourcesBuildPhase section */ 143 | 144 | /* Begin PBXSourcesBuildPhase section */ 145 | F4737A04250C6E78008A5EC9 /* Sources */ = { 146 | isa = PBXSourcesBuildPhase; 147 | buildActionMask = 2147483647; 148 | files = ( 149 | F4737A0C250C6E79008A5EC9 /* AppDelegate.swift in Sources */, 150 | F4737A0E250C6E79008A5EC9 /* SceneDelegate.swift in Sources */, 151 | F4737A10250C6E79008A5EC9 /* ContentView.swift in Sources */, 152 | ); 153 | runOnlyForDeploymentPostprocessing = 0; 154 | }; 155 | /* End PBXSourcesBuildPhase section */ 156 | 157 | /* Begin PBXVariantGroup section */ 158 | F4737A16250C6E82008A5EC9 /* LaunchScreen.storyboard */ = { 159 | isa = PBXVariantGroup; 160 | children = ( 161 | F4737A17250C6E82008A5EC9 /* Base */, 162 | ); 163 | name = LaunchScreen.storyboard; 164 | sourceTree = ""; 165 | }; 166 | /* End PBXVariantGroup section */ 167 | 168 | /* Begin XCBuildConfiguration section */ 169 | F4737A1A250C6E82008A5EC9 /* Debug */ = { 170 | isa = XCBuildConfiguration; 171 | buildSettings = { 172 | ALWAYS_SEARCH_USER_PATHS = NO; 173 | CLANG_ANALYZER_NONNULL = YES; 174 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 175 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 176 | CLANG_CXX_LIBRARY = "libc++"; 177 | CLANG_ENABLE_MODULES = YES; 178 | CLANG_ENABLE_OBJC_ARC = YES; 179 | CLANG_ENABLE_OBJC_WEAK = YES; 180 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 181 | CLANG_WARN_BOOL_CONVERSION = YES; 182 | CLANG_WARN_COMMA = YES; 183 | CLANG_WARN_CONSTANT_CONVERSION = YES; 184 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 185 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 186 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 187 | CLANG_WARN_EMPTY_BODY = YES; 188 | CLANG_WARN_ENUM_CONVERSION = YES; 189 | CLANG_WARN_INFINITE_RECURSION = YES; 190 | CLANG_WARN_INT_CONVERSION = YES; 191 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 192 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 193 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 194 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 195 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 196 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 197 | CLANG_WARN_STRICT_PROTOTYPES = YES; 198 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 199 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 200 | CLANG_WARN_UNREACHABLE_CODE = YES; 201 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 202 | COPY_PHASE_STRIP = NO; 203 | DEBUG_INFORMATION_FORMAT = dwarf; 204 | ENABLE_STRICT_OBJC_MSGSEND = YES; 205 | ENABLE_TESTABILITY = YES; 206 | GCC_C_LANGUAGE_STANDARD = gnu11; 207 | GCC_DYNAMIC_NO_PIC = NO; 208 | GCC_NO_COMMON_BLOCKS = YES; 209 | GCC_OPTIMIZATION_LEVEL = 0; 210 | GCC_PREPROCESSOR_DEFINITIONS = ( 211 | "DEBUG=1", 212 | "$(inherited)", 213 | ); 214 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 215 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 216 | GCC_WARN_UNDECLARED_SELECTOR = YES; 217 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 218 | GCC_WARN_UNUSED_FUNCTION = YES; 219 | GCC_WARN_UNUSED_VARIABLE = YES; 220 | IPHONEOS_DEPLOYMENT_TARGET = 13.6; 221 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 222 | MTL_FAST_MATH = YES; 223 | ONLY_ACTIVE_ARCH = YES; 224 | SDKROOT = iphoneos; 225 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 226 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 227 | }; 228 | name = Debug; 229 | }; 230 | F4737A1B250C6E82008A5EC9 /* Release */ = { 231 | isa = XCBuildConfiguration; 232 | buildSettings = { 233 | ALWAYS_SEARCH_USER_PATHS = NO; 234 | CLANG_ANALYZER_NONNULL = YES; 235 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 236 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 237 | CLANG_CXX_LIBRARY = "libc++"; 238 | CLANG_ENABLE_MODULES = YES; 239 | CLANG_ENABLE_OBJC_ARC = YES; 240 | CLANG_ENABLE_OBJC_WEAK = YES; 241 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 242 | CLANG_WARN_BOOL_CONVERSION = YES; 243 | CLANG_WARN_COMMA = YES; 244 | CLANG_WARN_CONSTANT_CONVERSION = YES; 245 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 246 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 247 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 248 | CLANG_WARN_EMPTY_BODY = YES; 249 | CLANG_WARN_ENUM_CONVERSION = YES; 250 | CLANG_WARN_INFINITE_RECURSION = YES; 251 | CLANG_WARN_INT_CONVERSION = YES; 252 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 253 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 254 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 255 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 256 | CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; 257 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 258 | CLANG_WARN_STRICT_PROTOTYPES = YES; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 261 | CLANG_WARN_UNREACHABLE_CODE = YES; 262 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 265 | ENABLE_NS_ASSERTIONS = NO; 266 | ENABLE_STRICT_OBJC_MSGSEND = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu11; 268 | GCC_NO_COMMON_BLOCKS = YES; 269 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 270 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 271 | GCC_WARN_UNDECLARED_SELECTOR = YES; 272 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 273 | GCC_WARN_UNUSED_FUNCTION = YES; 274 | GCC_WARN_UNUSED_VARIABLE = YES; 275 | IPHONEOS_DEPLOYMENT_TARGET = 13.6; 276 | MTL_ENABLE_DEBUG_INFO = NO; 277 | MTL_FAST_MATH = YES; 278 | SDKROOT = iphoneos; 279 | SWIFT_COMPILATION_MODE = wholemodule; 280 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 281 | VALIDATE_PRODUCT = YES; 282 | }; 283 | name = Release; 284 | }; 285 | F4737A1D250C6E82008A5EC9 /* Debug */ = { 286 | isa = XCBuildConfiguration; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CODE_SIGN_STYLE = Automatic; 290 | DEVELOPMENT_ASSET_PATHS = "\"CustomNavigationView/Preview Content\""; 291 | DEVELOPMENT_TEAM = BJJMJ76N54; 292 | ENABLE_PREVIEWS = YES; 293 | INFOPLIST_FILE = CustomNavigationView/Info.plist; 294 | LD_RUNPATH_SEARCH_PATHS = ( 295 | "$(inherited)", 296 | "@executable_path/Frameworks", 297 | ); 298 | PRODUCT_BUNDLE_IDENTIFIER = "Sarah-Alsharif.CustomNavigationView"; 299 | PRODUCT_NAME = "$(TARGET_NAME)"; 300 | SWIFT_VERSION = 5.0; 301 | TARGETED_DEVICE_FAMILY = "1,2"; 302 | }; 303 | name = Debug; 304 | }; 305 | F4737A1E250C6E82008A5EC9 /* Release */ = { 306 | isa = XCBuildConfiguration; 307 | buildSettings = { 308 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 309 | CODE_SIGN_STYLE = Automatic; 310 | DEVELOPMENT_ASSET_PATHS = "\"CustomNavigationView/Preview Content\""; 311 | DEVELOPMENT_TEAM = BJJMJ76N54; 312 | ENABLE_PREVIEWS = YES; 313 | INFOPLIST_FILE = CustomNavigationView/Info.plist; 314 | LD_RUNPATH_SEARCH_PATHS = ( 315 | "$(inherited)", 316 | "@executable_path/Frameworks", 317 | ); 318 | PRODUCT_BUNDLE_IDENTIFIER = "Sarah-Alsharif.CustomNavigationView"; 319 | PRODUCT_NAME = "$(TARGET_NAME)"; 320 | SWIFT_VERSION = 5.0; 321 | TARGETED_DEVICE_FAMILY = "1,2"; 322 | }; 323 | name = Release; 324 | }; 325 | /* End XCBuildConfiguration section */ 326 | 327 | /* Begin XCConfigurationList section */ 328 | F4737A03250C6E78008A5EC9 /* Build configuration list for PBXProject "CustomNavigationView" */ = { 329 | isa = XCConfigurationList; 330 | buildConfigurations = ( 331 | F4737A1A250C6E82008A5EC9 /* Debug */, 332 | F4737A1B250C6E82008A5EC9 /* Release */, 333 | ); 334 | defaultConfigurationIsVisible = 0; 335 | defaultConfigurationName = Release; 336 | }; 337 | F4737A1C250C6E82008A5EC9 /* Build configuration list for PBXNativeTarget "CustomNavigationView" */ = { 338 | isa = XCConfigurationList; 339 | buildConfigurations = ( 340 | F4737A1D250C6E82008A5EC9 /* Debug */, 341 | F4737A1E250C6E82008A5EC9 /* Release */, 342 | ); 343 | defaultConfigurationIsVisible = 0; 344 | defaultConfigurationName = Release; 345 | }; 346 | /* End XCConfigurationList section */ 347 | }; 348 | rootObject = F4737A00250C6E78008A5EC9 /* Project object */; 349 | } 350 | --------------------------------------------------------------------------------