├── .gitignore
├── SwiftUICustomTabBar
├── Assets.xcassets
│ ├── Contents.json
│ └── AppIcon.appiconset
│ │ └── Contents.json
├── Preview Content
│ └── Preview Assets.xcassets
│ │ └── Contents.json
├── AppDelegate.swift
├── Base.lproj
│ └── LaunchScreen.storyboard
├── Info.plist
├── CustomTabBarItem.swift
├── SceneDelegate.swift
└── ContentView.swift
└── SwiftUICustomTabBar.xcodeproj
├── project.xcworkspace
├── contents.xcworkspacedata
└── xcshareddata
│ └── IDEWorkspaceChecks.plist
├── xcuserdata
└── ardatugay.xcuserdatad
│ └── xcschemes
│ └── xcschememanagement.plist
├── xcshareddata
└── xcschemes
│ └── SwiftUICustomTabBar.xcscheme
└── project.pbxproj
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | xcuserdata/
3 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/Preview Content/Preview Assets.xcassets/Contents.json:
--------------------------------------------------------------------------------
1 | {
2 | "info" : {
3 | "version" : 1,
4 | "author" : "xcode"
5 | }
6 | }
--------------------------------------------------------------------------------
/SwiftUICustomTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata:
--------------------------------------------------------------------------------
1 |
2 |
4 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | IDEDidComputeMac32BitWarning
6 |
7 |
8 |
9 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar.xcodeproj/xcuserdata/ardatugay.xcuserdatad/xcschemes/xcschememanagement.plist:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | SchemeUserState
6 |
7 | SwiftUICustomTabBar.xcscheme_^#shared#^_
8 |
9 | orderHint
10 | 0
11 |
12 |
13 | SuppressBuildableAutocreation
14 |
15 | AE17C95623A303EB00C15EB6
16 |
17 | primary
18 |
19 |
20 |
21 |
22 |
23 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/AppDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // AppDelegate.swift
3 | // SwiftUICustomTabBar
4 | //
5 | // Created by Arda Tugay on 12/12/19.
6 | // Copyright © 2019 ardatugay. 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 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/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 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/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 | "idiom" : "iphone",
35 | "size" : "60x60",
36 | "scale" : "2x"
37 | },
38 | {
39 | "idiom" : "iphone",
40 | "size" : "60x60",
41 | "scale" : "3x"
42 | },
43 | {
44 | "idiom" : "ipad",
45 | "size" : "20x20",
46 | "scale" : "1x"
47 | },
48 | {
49 | "idiom" : "ipad",
50 | "size" : "20x20",
51 | "scale" : "2x"
52 | },
53 | {
54 | "idiom" : "ipad",
55 | "size" : "29x29",
56 | "scale" : "1x"
57 | },
58 | {
59 | "idiom" : "ipad",
60 | "size" : "29x29",
61 | "scale" : "2x"
62 | },
63 | {
64 | "idiom" : "ipad",
65 | "size" : "40x40",
66 | "scale" : "1x"
67 | },
68 | {
69 | "idiom" : "ipad",
70 | "size" : "40x40",
71 | "scale" : "2x"
72 | },
73 | {
74 | "idiom" : "ipad",
75 | "size" : "76x76",
76 | "scale" : "1x"
77 | },
78 | {
79 | "idiom" : "ipad",
80 | "size" : "76x76",
81 | "scale" : "2x"
82 | },
83 | {
84 | "idiom" : "ipad",
85 | "size" : "83.5x83.5",
86 | "scale" : "2x"
87 | },
88 | {
89 | "idiom" : "ios-marketing",
90 | "size" : "1024x1024",
91 | "scale" : "1x"
92 | }
93 | ],
94 | "info" : {
95 | "version" : 1,
96 | "author" : "xcode"
97 | }
98 | }
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/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 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/CustomTabBarItem.swift:
--------------------------------------------------------------------------------
1 | //
2 | // CustomTabBarItem.swift
3 | // SwiftUICustomTabBar
4 | //
5 | // Created by Arda Tugay on 12/13/19.
6 | // Copyright © 2019 ardatugay. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct CustomTabBarItem: View {
12 | let iconName: String
13 | let label: String
14 | let selection: Binding
15 | let tag: Int
16 | let content: () -> Content
17 |
18 | init(iconName: String,
19 | label: String,
20 | selection: Binding,
21 | tag: Int,
22 | @ViewBuilder _ content: @escaping () -> Content) {
23 | self.iconName = iconName
24 | self.label = label
25 | self.selection = selection
26 | self.tag = tag
27 | self.content = content
28 | }
29 |
30 | var body: some View {
31 | VStack(alignment: .center) {
32 | Image(systemName: iconName)
33 | .frame(minWidth: 25, minHeight: 25)
34 | Text(label)
35 | .font(.caption)
36 | }
37 | .padding([.top, .bottom], 5)
38 | .foregroundColor(fgColor())
39 | .frame(maxWidth: .infinity)
40 | .contentShape(Rectangle())
41 | .onTapGesture { self.selection.wrappedValue = self.tag }
42 | .preference(key: TabBarPreferenceKey.self,
43 | value: TabBarPreferenceData(
44 | tabBarItemData: [TabBarItemData(tag: tag,
45 | content: AnyView(self.content()) // 3
46 | )]
47 | )
48 | )
49 | }
50 |
51 | private func fgColor() -> Color {
52 | return selection.wrappedValue == tag ? Color(UIColor.systemBlue) : Color(UIColor.systemGray)
53 | }
54 | }
55 |
56 | struct CustomTabBarItem_Previews: PreviewProvider {
57 | static var selection: Int = 0
58 | static var selectionBinding = Binding(get: { selection }, set: { selection = $0 })
59 |
60 | static var previews: some View {
61 | CustomTabBarItem(iconName: "clock.fill", label: "Recents", selection: selectionBinding, tag: 0) {
62 | Text("Empty View")
63 | }
64 | .previewLayout(.fixed(width: 80, height: 80))
65 | }
66 | }
67 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/SceneDelegate.swift:
--------------------------------------------------------------------------------
1 | //
2 | // SceneDelegate.swift
3 | // SwiftUICustomTabBar
4 | //
5 | // Created by Arda Tugay on 12/12/19.
6 | // Copyright © 2019 ardatugay. 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 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar.xcodeproj/xcshareddata/xcschemes/SwiftUICustomTabBar.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
33 |
39 |
40 |
41 |
43 |
49 |
50 |
51 |
52 |
53 |
63 |
65 |
71 |
72 |
73 |
74 |
80 |
82 |
88 |
89 |
90 |
91 |
93 |
94 |
97 |
98 |
99 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar/ContentView.swift:
--------------------------------------------------------------------------------
1 | //
2 | // ContentView.swift
3 | // SwiftUICustomTabBar
4 | //
5 | // Created by Arda Tugay on 12/12/19.
6 | // Copyright © 2019 ardatugay. All rights reserved.
7 | //
8 |
9 | import SwiftUI
10 |
11 | struct TabBarItemData {
12 | var tag: Int
13 | var content: AnyView
14 | }
15 |
16 | struct TabBarPreferenceData {
17 | var tabBarBounds: Anchor? = nil // 1
18 | var tabBarItemData: [TabBarItemData] = []
19 | }
20 |
21 | struct TabBarPreferenceKey: PreferenceKey {
22 | typealias Value = TabBarPreferenceData
23 |
24 | static var defaultValue: TabBarPreferenceData = TabBarPreferenceData()
25 |
26 | static func reduce(value: inout TabBarPreferenceData, nextValue: () -> TabBarPreferenceData) {
27 | if let tabBarBounds = nextValue().tabBarBounds {
28 | value.tabBarBounds = tabBarBounds
29 | }
30 | value.tabBarItemData.append(contentsOf: nextValue().tabBarItemData)
31 | }
32 | }
33 |
34 | struct ContentView: View {
35 | @State private var selection: Int = 0
36 |
37 | var body: some View {
38 | VStack(alignment: .center, spacing: 0) {
39 | HStack(alignment: .lastTextBaseline) {
40 | CustomTabBarItem(iconName: "star.fill",
41 | label: "Favorites",
42 | selection: $selection,
43 | tag: 0)
44 | {
45 | Text("Favorites Content")
46 | }
47 | CustomTabBarItem(iconName: "clock.fill",
48 | label: "Recents",
49 | selection: $selection,
50 | tag: 1)
51 | {
52 | Text("Recents Content")
53 | }
54 | CustomTabBarItem(iconName: "person.crop.circle",
55 | label: "Contacts",
56 | selection: $selection,
57 | tag: 2)
58 | {
59 | Text("Contacts Content")
60 | }
61 | CustomTabBarItem(iconName: "circle.grid.3x3.fill",
62 | label: "Keypad",
63 | selection: $selection,
64 | tag: 3)
65 | {
66 | Text("Keypad Content")
67 | }
68 | CustomTabBarItem(iconName: "recordingtape",
69 | label: "Voicemail",
70 | selection: $selection,
71 | tag: 4)
72 | {
73 | Text("Voicemail Content")
74 | }
75 | }
76 | .background(
77 | GeometryReader { parentGeometry in
78 | Rectangle()
79 | .fill(Color(UIColor.systemGray2))
80 | .frame(width: parentGeometry.size.width, height: 0.5)
81 | .position(x: parentGeometry.size.width / 2, y: 0)
82 | }
83 | )
84 | .background(Color(UIColor.systemGray6))
85 | .transformAnchorPreference(key: TabBarPreferenceKey.self,
86 | value: .bounds,
87 | transform: { (value: inout TabBarPreferenceData, anchor: Anchor) in
88 | value.tabBarBounds = anchor
89 | }) // 2
90 | }
91 | .frame(maxHeight: .infinity, alignment: .bottom)
92 | .overlayPreferenceValue(TabBarPreferenceKey.self) { (preferences: TabBarPreferenceData) in
93 | return GeometryReader { geometry in
94 | self.createTabBarContentOverlay(geometry, preferences)
95 | }
96 | }
97 | }
98 |
99 | private func createTabBarContentOverlay(_ geometry: GeometryProxy,
100 | _ preferences: TabBarPreferenceData) -> some View {
101 | let tabBarBounds = preferences.tabBarBounds != nil ? geometry[preferences.tabBarBounds!] : .zero // 3
102 | let contentToDisplay = preferences.tabBarItemData.first(where: { $0.tag == self.selection })
103 |
104 | return ZStack {
105 | if contentToDisplay == nil {
106 | Text("Empty View")
107 | } else {
108 | contentToDisplay!.content
109 | }
110 | }
111 | .frame(width: geometry.size.width,
112 | height: geometry.size.height - tabBarBounds.size.height,
113 | alignment: .center)
114 | .position(x: geometry.size.width / 2,
115 | y: (geometry.size.height - tabBarBounds.size.height) / 2) // 6
116 | }
117 | }
118 |
119 | struct ContentView_Previews: PreviewProvider {
120 | static var previews: some View {
121 | ContentView()
122 | }
123 | }
124 |
--------------------------------------------------------------------------------
/SwiftUICustomTabBar.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 50;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | AE17C95B23A303EB00C15EB6 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE17C95A23A303EB00C15EB6 /* AppDelegate.swift */; };
11 | AE17C95D23A303EB00C15EB6 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE17C95C23A303EB00C15EB6 /* SceneDelegate.swift */; };
12 | AE17C95F23A303EB00C15EB6 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE17C95E23A303EB00C15EB6 /* ContentView.swift */; };
13 | AE17C96123A303EE00C15EB6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AE17C96023A303EE00C15EB6 /* Assets.xcassets */; };
14 | AE17C96423A303EE00C15EB6 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = AE17C96323A303EE00C15EB6 /* Preview Assets.xcassets */; };
15 | AE17C96723A303EE00C15EB6 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AE17C96523A303EE00C15EB6 /* LaunchScreen.storyboard */; };
16 | AE17C96F23A4277200C15EB6 /* CustomTabBarItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE17C96E23A4277200C15EB6 /* CustomTabBarItem.swift */; };
17 | /* End PBXBuildFile section */
18 |
19 | /* Begin PBXFileReference section */
20 | AE17C95723A303EB00C15EB6 /* SwiftUICustomTabBar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SwiftUICustomTabBar.app; sourceTree = BUILT_PRODUCTS_DIR; };
21 | AE17C95A23A303EB00C15EB6 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; };
22 | AE17C95C23A303EB00C15EB6 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; };
23 | AE17C95E23A303EB00C15EB6 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; };
24 | AE17C96023A303EE00C15EB6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; };
25 | AE17C96323A303EE00C15EB6 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; };
26 | AE17C96623A303EE00C15EB6 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; };
27 | AE17C96823A303EE00C15EB6 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; };
28 | AE17C96E23A4277200C15EB6 /* CustomTabBarItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CustomTabBarItem.swift; sourceTree = ""; };
29 | /* End PBXFileReference section */
30 |
31 | /* Begin PBXFrameworksBuildPhase section */
32 | AE17C95423A303EB00C15EB6 /* Frameworks */ = {
33 | isa = PBXFrameworksBuildPhase;
34 | buildActionMask = 2147483647;
35 | files = (
36 | );
37 | runOnlyForDeploymentPostprocessing = 0;
38 | };
39 | /* End PBXFrameworksBuildPhase section */
40 |
41 | /* Begin PBXGroup section */
42 | AE17C94E23A303EB00C15EB6 = {
43 | isa = PBXGroup;
44 | children = (
45 | AE17C95923A303EB00C15EB6 /* SwiftUICustomTabBar */,
46 | AE17C95823A303EB00C15EB6 /* Products */,
47 | AE5CA6BB23A441CB001AEBC1 /* Frameworks */,
48 | );
49 | sourceTree = "";
50 | };
51 | AE17C95823A303EB00C15EB6 /* Products */ = {
52 | isa = PBXGroup;
53 | children = (
54 | AE17C95723A303EB00C15EB6 /* SwiftUICustomTabBar.app */,
55 | );
56 | name = Products;
57 | sourceTree = "";
58 | };
59 | AE17C95923A303EB00C15EB6 /* SwiftUICustomTabBar */ = {
60 | isa = PBXGroup;
61 | children = (
62 | AE17C95A23A303EB00C15EB6 /* AppDelegate.swift */,
63 | AE17C95C23A303EB00C15EB6 /* SceneDelegate.swift */,
64 | AE17C96E23A4277200C15EB6 /* CustomTabBarItem.swift */,
65 | AE17C95E23A303EB00C15EB6 /* ContentView.swift */,
66 | AE17C96023A303EE00C15EB6 /* Assets.xcassets */,
67 | AE17C96523A303EE00C15EB6 /* LaunchScreen.storyboard */,
68 | AE17C96823A303EE00C15EB6 /* Info.plist */,
69 | AE17C96223A303EE00C15EB6 /* Preview Content */,
70 | );
71 | path = SwiftUICustomTabBar;
72 | sourceTree = "";
73 | };
74 | AE17C96223A303EE00C15EB6 /* Preview Content */ = {
75 | isa = PBXGroup;
76 | children = (
77 | AE17C96323A303EE00C15EB6 /* Preview Assets.xcassets */,
78 | );
79 | path = "Preview Content";
80 | sourceTree = "";
81 | };
82 | AE5CA6BB23A441CB001AEBC1 /* Frameworks */ = {
83 | isa = PBXGroup;
84 | children = (
85 | );
86 | name = Frameworks;
87 | sourceTree = "";
88 | };
89 | /* End PBXGroup section */
90 |
91 | /* Begin PBXNativeTarget section */
92 | AE17C95623A303EB00C15EB6 /* SwiftUICustomTabBar */ = {
93 | isa = PBXNativeTarget;
94 | buildConfigurationList = AE17C96B23A303EE00C15EB6 /* Build configuration list for PBXNativeTarget "SwiftUICustomTabBar" */;
95 | buildPhases = (
96 | AE17C95323A303EB00C15EB6 /* Sources */,
97 | AE17C95423A303EB00C15EB6 /* Frameworks */,
98 | AE17C95523A303EB00C15EB6 /* Resources */,
99 | );
100 | buildRules = (
101 | );
102 | dependencies = (
103 | );
104 | name = SwiftUICustomTabBar;
105 | packageProductDependencies = (
106 | );
107 | productName = SwiftUICustomTabBar;
108 | productReference = AE17C95723A303EB00C15EB6 /* SwiftUICustomTabBar.app */;
109 | productType = "com.apple.product-type.application";
110 | };
111 | /* End PBXNativeTarget section */
112 |
113 | /* Begin PBXProject section */
114 | AE17C94F23A303EB00C15EB6 /* Project object */ = {
115 | isa = PBXProject;
116 | attributes = {
117 | LastSwiftUpdateCheck = 1130;
118 | LastUpgradeCheck = 1130;
119 | ORGANIZATIONNAME = ardatugay;
120 | TargetAttributes = {
121 | AE17C95623A303EB00C15EB6 = {
122 | CreatedOnToolsVersion = 11.3;
123 | };
124 | };
125 | };
126 | buildConfigurationList = AE17C95223A303EB00C15EB6 /* Build configuration list for PBXProject "SwiftUICustomTabBar" */;
127 | compatibilityVersion = "Xcode 9.3";
128 | developmentRegion = en;
129 | hasScannedForEncodings = 0;
130 | knownRegions = (
131 | en,
132 | Base,
133 | );
134 | mainGroup = AE17C94E23A303EB00C15EB6;
135 | packageReferences = (
136 | );
137 | productRefGroup = AE17C95823A303EB00C15EB6 /* Products */;
138 | projectDirPath = "";
139 | projectRoot = "";
140 | targets = (
141 | AE17C95623A303EB00C15EB6 /* SwiftUICustomTabBar */,
142 | );
143 | };
144 | /* End PBXProject section */
145 |
146 | /* Begin PBXResourcesBuildPhase section */
147 | AE17C95523A303EB00C15EB6 /* Resources */ = {
148 | isa = PBXResourcesBuildPhase;
149 | buildActionMask = 2147483647;
150 | files = (
151 | AE17C96723A303EE00C15EB6 /* LaunchScreen.storyboard in Resources */,
152 | AE17C96423A303EE00C15EB6 /* Preview Assets.xcassets in Resources */,
153 | AE17C96123A303EE00C15EB6 /* Assets.xcassets in Resources */,
154 | );
155 | runOnlyForDeploymentPostprocessing = 0;
156 | };
157 | /* End PBXResourcesBuildPhase section */
158 |
159 | /* Begin PBXSourcesBuildPhase section */
160 | AE17C95323A303EB00C15EB6 /* Sources */ = {
161 | isa = PBXSourcesBuildPhase;
162 | buildActionMask = 2147483647;
163 | files = (
164 | AE17C95B23A303EB00C15EB6 /* AppDelegate.swift in Sources */,
165 | AE17C95D23A303EB00C15EB6 /* SceneDelegate.swift in Sources */,
166 | AE17C95F23A303EB00C15EB6 /* ContentView.swift in Sources */,
167 | AE17C96F23A4277200C15EB6 /* CustomTabBarItem.swift in Sources */,
168 | );
169 | runOnlyForDeploymentPostprocessing = 0;
170 | };
171 | /* End PBXSourcesBuildPhase section */
172 |
173 | /* Begin PBXVariantGroup section */
174 | AE17C96523A303EE00C15EB6 /* LaunchScreen.storyboard */ = {
175 | isa = PBXVariantGroup;
176 | children = (
177 | AE17C96623A303EE00C15EB6 /* Base */,
178 | );
179 | name = LaunchScreen.storyboard;
180 | sourceTree = "";
181 | };
182 | /* End PBXVariantGroup section */
183 |
184 | /* Begin XCBuildConfiguration section */
185 | AE17C96923A303EE00C15EB6 /* Debug */ = {
186 | isa = XCBuildConfiguration;
187 | buildSettings = {
188 | ALWAYS_SEARCH_USER_PATHS = NO;
189 | CLANG_ANALYZER_NONNULL = YES;
190 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
191 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
192 | CLANG_CXX_LIBRARY = "libc++";
193 | CLANG_ENABLE_MODULES = YES;
194 | CLANG_ENABLE_OBJC_ARC = YES;
195 | CLANG_ENABLE_OBJC_WEAK = YES;
196 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
197 | CLANG_WARN_BOOL_CONVERSION = YES;
198 | CLANG_WARN_COMMA = YES;
199 | CLANG_WARN_CONSTANT_CONVERSION = YES;
200 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
201 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
202 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
203 | CLANG_WARN_EMPTY_BODY = YES;
204 | CLANG_WARN_ENUM_CONVERSION = YES;
205 | CLANG_WARN_INFINITE_RECURSION = YES;
206 | CLANG_WARN_INT_CONVERSION = YES;
207 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
208 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
209 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
210 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
211 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
212 | CLANG_WARN_STRICT_PROTOTYPES = YES;
213 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
214 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
215 | CLANG_WARN_UNREACHABLE_CODE = YES;
216 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
217 | COPY_PHASE_STRIP = NO;
218 | DEBUG_INFORMATION_FORMAT = dwarf;
219 | ENABLE_STRICT_OBJC_MSGSEND = YES;
220 | ENABLE_TESTABILITY = YES;
221 | GCC_C_LANGUAGE_STANDARD = gnu11;
222 | GCC_DYNAMIC_NO_PIC = NO;
223 | GCC_NO_COMMON_BLOCKS = YES;
224 | GCC_OPTIMIZATION_LEVEL = 0;
225 | GCC_PREPROCESSOR_DEFINITIONS = (
226 | "DEBUG=1",
227 | "$(inherited)",
228 | );
229 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
230 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
231 | GCC_WARN_UNDECLARED_SELECTOR = YES;
232 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
233 | GCC_WARN_UNUSED_FUNCTION = YES;
234 | GCC_WARN_UNUSED_VARIABLE = YES;
235 | IPHONEOS_DEPLOYMENT_TARGET = 13.2;
236 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
237 | MTL_FAST_MATH = YES;
238 | ONLY_ACTIVE_ARCH = YES;
239 | SDKROOT = iphoneos;
240 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
241 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
242 | };
243 | name = Debug;
244 | };
245 | AE17C96A23A303EE00C15EB6 /* Release */ = {
246 | isa = XCBuildConfiguration;
247 | buildSettings = {
248 | ALWAYS_SEARCH_USER_PATHS = NO;
249 | CLANG_ANALYZER_NONNULL = YES;
250 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
251 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
252 | CLANG_CXX_LIBRARY = "libc++";
253 | CLANG_ENABLE_MODULES = YES;
254 | CLANG_ENABLE_OBJC_ARC = YES;
255 | CLANG_ENABLE_OBJC_WEAK = YES;
256 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
257 | CLANG_WARN_BOOL_CONVERSION = YES;
258 | CLANG_WARN_COMMA = YES;
259 | CLANG_WARN_CONSTANT_CONVERSION = YES;
260 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
261 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
262 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
263 | CLANG_WARN_EMPTY_BODY = YES;
264 | CLANG_WARN_ENUM_CONVERSION = YES;
265 | CLANG_WARN_INFINITE_RECURSION = YES;
266 | CLANG_WARN_INT_CONVERSION = YES;
267 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
268 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
269 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
270 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
271 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
272 | CLANG_WARN_STRICT_PROTOTYPES = YES;
273 | CLANG_WARN_SUSPICIOUS_MOVE = YES;
274 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
275 | CLANG_WARN_UNREACHABLE_CODE = YES;
276 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
277 | COPY_PHASE_STRIP = NO;
278 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
279 | ENABLE_NS_ASSERTIONS = NO;
280 | ENABLE_STRICT_OBJC_MSGSEND = YES;
281 | GCC_C_LANGUAGE_STANDARD = gnu11;
282 | GCC_NO_COMMON_BLOCKS = YES;
283 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
284 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
285 | GCC_WARN_UNDECLARED_SELECTOR = YES;
286 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
287 | GCC_WARN_UNUSED_FUNCTION = YES;
288 | GCC_WARN_UNUSED_VARIABLE = YES;
289 | IPHONEOS_DEPLOYMENT_TARGET = 13.2;
290 | MTL_ENABLE_DEBUG_INFO = NO;
291 | MTL_FAST_MATH = YES;
292 | SDKROOT = iphoneos;
293 | SWIFT_COMPILATION_MODE = wholemodule;
294 | SWIFT_OPTIMIZATION_LEVEL = "-O";
295 | VALIDATE_PRODUCT = YES;
296 | };
297 | name = Release;
298 | };
299 | AE17C96C23A303EE00C15EB6 /* Debug */ = {
300 | isa = XCBuildConfiguration;
301 | buildSettings = {
302 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
303 | CODE_SIGN_STYLE = Automatic;
304 | DEVELOPMENT_ASSET_PATHS = "\"SwiftUICustomTabBar/Preview Content\"";
305 | DEVELOPMENT_TEAM = 9GL9K3B7KM;
306 | ENABLE_PREVIEWS = YES;
307 | INFOPLIST_FILE = SwiftUICustomTabBar/Info.plist;
308 | IPHONEOS_DEPLOYMENT_TARGET = 13.1;
309 | LD_RUNPATH_SEARCH_PATHS = (
310 | "$(inherited)",
311 | "@executable_path/Frameworks",
312 | );
313 | PRODUCT_BUNDLE_IDENTIFIER = com.ardatugay.SwiftUICustomTabBar;
314 | PRODUCT_NAME = "$(TARGET_NAME)";
315 | SWIFT_VERSION = 5.0;
316 | TARGETED_DEVICE_FAMILY = "1,2";
317 | };
318 | name = Debug;
319 | };
320 | AE17C96D23A303EE00C15EB6 /* Release */ = {
321 | isa = XCBuildConfiguration;
322 | buildSettings = {
323 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
324 | CODE_SIGN_STYLE = Automatic;
325 | DEVELOPMENT_ASSET_PATHS = "\"SwiftUICustomTabBar/Preview Content\"";
326 | DEVELOPMENT_TEAM = 9GL9K3B7KM;
327 | ENABLE_PREVIEWS = YES;
328 | INFOPLIST_FILE = SwiftUICustomTabBar/Info.plist;
329 | IPHONEOS_DEPLOYMENT_TARGET = 13.1;
330 | LD_RUNPATH_SEARCH_PATHS = (
331 | "$(inherited)",
332 | "@executable_path/Frameworks",
333 | );
334 | PRODUCT_BUNDLE_IDENTIFIER = com.ardatugay.SwiftUICustomTabBar;
335 | PRODUCT_NAME = "$(TARGET_NAME)";
336 | SWIFT_VERSION = 5.0;
337 | TARGETED_DEVICE_FAMILY = "1,2";
338 | };
339 | name = Release;
340 | };
341 | /* End XCBuildConfiguration section */
342 |
343 | /* Begin XCConfigurationList section */
344 | AE17C95223A303EB00C15EB6 /* Build configuration list for PBXProject "SwiftUICustomTabBar" */ = {
345 | isa = XCConfigurationList;
346 | buildConfigurations = (
347 | AE17C96923A303EE00C15EB6 /* Debug */,
348 | AE17C96A23A303EE00C15EB6 /* Release */,
349 | );
350 | defaultConfigurationIsVisible = 0;
351 | defaultConfigurationName = Release;
352 | };
353 | AE17C96B23A303EE00C15EB6 /* Build configuration list for PBXNativeTarget "SwiftUICustomTabBar" */ = {
354 | isa = XCConfigurationList;
355 | buildConfigurations = (
356 | AE17C96C23A303EE00C15EB6 /* Debug */,
357 | AE17C96D23A303EE00C15EB6 /* Release */,
358 | );
359 | defaultConfigurationIsVisible = 0;
360 | defaultConfigurationName = Release;
361 | };
362 | /* End XCConfigurationList section */
363 | };
364 | rootObject = AE17C94F23A303EB00C15EB6 /* Project object */;
365 | }
366 |
--------------------------------------------------------------------------------