├── Simulator Screen Shot - iPhone X - 2020-04-08 at 21.17.08.png ├── Simulator Screen Shot - iPhone X - 2020-04-08 at 21.17.12.png ├── TabBarZoZ.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── IDEWorkspaceChecks.plist │ └── xcuserdata │ │ └── emadios.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── emadios.xcuserdatad │ └── xcschemes │ └── xcschememanagement.plist └── TabBarZoZ ├── AppDelegate.swift ├── Assets.xcassets ├── AppIcon.appiconset │ └── Contents.json └── Contents.json ├── Base.lproj └── LaunchScreen.storyboard ├── Info.plist ├── MStabBar.swift ├── MStabBarController.swift ├── Main.storyboard └── SceneDelegate.swift /Simulator Screen Shot - iPhone X - 2020-04-08 at 21.17.08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maherelsaied/NewTabBar/ca6b311fd73ac776d624081f86e268ca2ce1694a/Simulator Screen Shot - iPhone X - 2020-04-08 at 21.17.08.png -------------------------------------------------------------------------------- /Simulator Screen Shot - iPhone X - 2020-04-08 at 21.17.12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maherelsaied/NewTabBar/ca6b311fd73ac776d624081f86e268ca2ce1694a/Simulator Screen Shot - iPhone X - 2020-04-08 at 21.17.12.png -------------------------------------------------------------------------------- /TabBarZoZ.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 50; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1C1E6A2F243E777E0009DDBE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C1E6A2E243E777E0009DDBE /* AppDelegate.swift */; }; 11 | 1C1E6A31243E777E0009DDBE /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C1E6A30243E777E0009DDBE /* SceneDelegate.swift */; }; 12 | 1C1E6A38243E777E0009DDBE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1C1E6A37243E777E0009DDBE /* Assets.xcassets */; }; 13 | 1C1E6A3B243E777E0009DDBE /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1C1E6A39243E777E0009DDBE /* LaunchScreen.storyboard */; }; 14 | 1C1E6A43243E77960009DDBE /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1C1E6A42243E77960009DDBE /* Main.storyboard */; }; 15 | 1C1E6A46243E779E0009DDBE /* MStabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C1E6A44243E779E0009DDBE /* MStabBarController.swift */; }; 16 | 1C1E6A47243E779E0009DDBE /* MStabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1C1E6A45243E779E0009DDBE /* MStabBar.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 1C1E6A2B243E777E0009DDBE /* TabBarZoZ.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TabBarZoZ.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 1C1E6A2E243E777E0009DDBE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 22 | 1C1E6A30243E777E0009DDBE /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; 23 | 1C1E6A37243E777E0009DDBE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 24 | 1C1E6A3A243E777E0009DDBE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 25 | 1C1E6A3C243E777E0009DDBE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 26 | 1C1E6A42243E77960009DDBE /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 27 | 1C1E6A44243E779E0009DDBE /* MStabBarController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MStabBarController.swift; sourceTree = ""; }; 28 | 1C1E6A45243E779E0009DDBE /* MStabBar.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MStabBar.swift; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 1C1E6A28243E777E0009DDBE /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | 1C1E6A22243E777E0009DDBE = { 43 | isa = PBXGroup; 44 | children = ( 45 | 1C1E6A2D243E777E0009DDBE /* TabBarZoZ */, 46 | 1C1E6A2C243E777E0009DDBE /* Products */, 47 | ); 48 | sourceTree = ""; 49 | }; 50 | 1C1E6A2C243E777E0009DDBE /* Products */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | 1C1E6A2B243E777E0009DDBE /* TabBarZoZ.app */, 54 | ); 55 | name = Products; 56 | sourceTree = ""; 57 | }; 58 | 1C1E6A2D243E777E0009DDBE /* TabBarZoZ */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 1C1E6A2E243E777E0009DDBE /* AppDelegate.swift */, 62 | 1C1E6A30243E777E0009DDBE /* SceneDelegate.swift */, 63 | 1C1E6A42243E77960009DDBE /* Main.storyboard */, 64 | 1C1E6A37243E777E0009DDBE /* Assets.xcassets */, 65 | 1C1E6A44243E779E0009DDBE /* MStabBarController.swift */, 66 | 1C1E6A45243E779E0009DDBE /* MStabBar.swift */, 67 | 1C1E6A39243E777E0009DDBE /* LaunchScreen.storyboard */, 68 | 1C1E6A3C243E777E0009DDBE /* Info.plist */, 69 | ); 70 | path = TabBarZoZ; 71 | sourceTree = ""; 72 | }; 73 | /* End PBXGroup section */ 74 | 75 | /* Begin PBXNativeTarget section */ 76 | 1C1E6A2A243E777E0009DDBE /* TabBarZoZ */ = { 77 | isa = PBXNativeTarget; 78 | buildConfigurationList = 1C1E6A3F243E777E0009DDBE /* Build configuration list for PBXNativeTarget "TabBarZoZ" */; 79 | buildPhases = ( 80 | 1C1E6A27243E777E0009DDBE /* Sources */, 81 | 1C1E6A28243E777E0009DDBE /* Frameworks */, 82 | 1C1E6A29243E777E0009DDBE /* Resources */, 83 | ); 84 | buildRules = ( 85 | ); 86 | dependencies = ( 87 | ); 88 | name = TabBarZoZ; 89 | productName = TabBarZoZ; 90 | productReference = 1C1E6A2B243E777E0009DDBE /* TabBarZoZ.app */; 91 | productType = "com.apple.product-type.application"; 92 | }; 93 | /* End PBXNativeTarget section */ 94 | 95 | /* Begin PBXProject section */ 96 | 1C1E6A23243E777E0009DDBE /* Project object */ = { 97 | isa = PBXProject; 98 | attributes = { 99 | LastSwiftUpdateCheck = 1100; 100 | LastUpgradeCheck = 1100; 101 | ORGANIZATIONNAME = "emad ios"; 102 | TargetAttributes = { 103 | 1C1E6A2A243E777E0009DDBE = { 104 | CreatedOnToolsVersion = 11.0; 105 | }; 106 | }; 107 | }; 108 | buildConfigurationList = 1C1E6A26243E777E0009DDBE /* Build configuration list for PBXProject "TabBarZoZ" */; 109 | compatibilityVersion = "Xcode 9.3"; 110 | developmentRegion = en; 111 | hasScannedForEncodings = 0; 112 | knownRegions = ( 113 | en, 114 | Base, 115 | ); 116 | mainGroup = 1C1E6A22243E777E0009DDBE; 117 | productRefGroup = 1C1E6A2C243E777E0009DDBE /* Products */; 118 | projectDirPath = ""; 119 | projectRoot = ""; 120 | targets = ( 121 | 1C1E6A2A243E777E0009DDBE /* TabBarZoZ */, 122 | ); 123 | }; 124 | /* End PBXProject section */ 125 | 126 | /* Begin PBXResourcesBuildPhase section */ 127 | 1C1E6A29243E777E0009DDBE /* Resources */ = { 128 | isa = PBXResourcesBuildPhase; 129 | buildActionMask = 2147483647; 130 | files = ( 131 | 1C1E6A43243E77960009DDBE /* Main.storyboard in Resources */, 132 | 1C1E6A3B243E777E0009DDBE /* LaunchScreen.storyboard in Resources */, 133 | 1C1E6A38243E777E0009DDBE /* Assets.xcassets in Resources */, 134 | ); 135 | runOnlyForDeploymentPostprocessing = 0; 136 | }; 137 | /* End PBXResourcesBuildPhase section */ 138 | 139 | /* Begin PBXSourcesBuildPhase section */ 140 | 1C1E6A27243E777E0009DDBE /* Sources */ = { 141 | isa = PBXSourcesBuildPhase; 142 | buildActionMask = 2147483647; 143 | files = ( 144 | 1C1E6A2F243E777E0009DDBE /* AppDelegate.swift in Sources */, 145 | 1C1E6A47243E779E0009DDBE /* MStabBar.swift in Sources */, 146 | 1C1E6A31243E777E0009DDBE /* SceneDelegate.swift in Sources */, 147 | 1C1E6A46243E779E0009DDBE /* MStabBarController.swift in Sources */, 148 | ); 149 | runOnlyForDeploymentPostprocessing = 0; 150 | }; 151 | /* End PBXSourcesBuildPhase section */ 152 | 153 | /* Begin PBXVariantGroup section */ 154 | 1C1E6A39243E777E0009DDBE /* LaunchScreen.storyboard */ = { 155 | isa = PBXVariantGroup; 156 | children = ( 157 | 1C1E6A3A243E777E0009DDBE /* Base */, 158 | ); 159 | name = LaunchScreen.storyboard; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXVariantGroup section */ 163 | 164 | /* Begin XCBuildConfiguration section */ 165 | 1C1E6A3D243E777E0009DDBE /* Debug */ = { 166 | isa = XCBuildConfiguration; 167 | buildSettings = { 168 | ALWAYS_SEARCH_USER_PATHS = NO; 169 | CLANG_ANALYZER_NONNULL = YES; 170 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 171 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 172 | CLANG_CXX_LIBRARY = "libc++"; 173 | CLANG_ENABLE_MODULES = YES; 174 | CLANG_ENABLE_OBJC_ARC = YES; 175 | CLANG_ENABLE_OBJC_WEAK = YES; 176 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 177 | CLANG_WARN_BOOL_CONVERSION = YES; 178 | CLANG_WARN_COMMA = YES; 179 | CLANG_WARN_CONSTANT_CONVERSION = YES; 180 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 181 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 182 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 183 | CLANG_WARN_EMPTY_BODY = YES; 184 | CLANG_WARN_ENUM_CONVERSION = YES; 185 | CLANG_WARN_INFINITE_RECURSION = YES; 186 | CLANG_WARN_INT_CONVERSION = YES; 187 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 188 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 189 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 190 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 191 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 192 | CLANG_WARN_STRICT_PROTOTYPES = YES; 193 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 194 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 195 | CLANG_WARN_UNREACHABLE_CODE = YES; 196 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 197 | COPY_PHASE_STRIP = NO; 198 | DEBUG_INFORMATION_FORMAT = dwarf; 199 | ENABLE_STRICT_OBJC_MSGSEND = YES; 200 | ENABLE_TESTABILITY = YES; 201 | GCC_C_LANGUAGE_STANDARD = gnu11; 202 | GCC_DYNAMIC_NO_PIC = NO; 203 | GCC_NO_COMMON_BLOCKS = YES; 204 | GCC_OPTIMIZATION_LEVEL = 0; 205 | GCC_PREPROCESSOR_DEFINITIONS = ( 206 | "DEBUG=1", 207 | "$(inherited)", 208 | ); 209 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 210 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 211 | GCC_WARN_UNDECLARED_SELECTOR = YES; 212 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 213 | GCC_WARN_UNUSED_FUNCTION = YES; 214 | GCC_WARN_UNUSED_VARIABLE = YES; 215 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 216 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 217 | MTL_FAST_MATH = YES; 218 | ONLY_ACTIVE_ARCH = YES; 219 | SDKROOT = iphoneos; 220 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 221 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 222 | }; 223 | name = Debug; 224 | }; 225 | 1C1E6A3E243E777E0009DDBE /* Release */ = { 226 | isa = XCBuildConfiguration; 227 | buildSettings = { 228 | ALWAYS_SEARCH_USER_PATHS = NO; 229 | CLANG_ANALYZER_NONNULL = YES; 230 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 231 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 232 | CLANG_CXX_LIBRARY = "libc++"; 233 | CLANG_ENABLE_MODULES = YES; 234 | CLANG_ENABLE_OBJC_ARC = YES; 235 | CLANG_ENABLE_OBJC_WEAK = YES; 236 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 237 | CLANG_WARN_BOOL_CONVERSION = YES; 238 | CLANG_WARN_COMMA = YES; 239 | CLANG_WARN_CONSTANT_CONVERSION = YES; 240 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 241 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 242 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 243 | CLANG_WARN_EMPTY_BODY = YES; 244 | CLANG_WARN_ENUM_CONVERSION = YES; 245 | CLANG_WARN_INFINITE_RECURSION = YES; 246 | CLANG_WARN_INT_CONVERSION = YES; 247 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 248 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 249 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 250 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 251 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 252 | CLANG_WARN_STRICT_PROTOTYPES = YES; 253 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 254 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 255 | CLANG_WARN_UNREACHABLE_CODE = YES; 256 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 257 | COPY_PHASE_STRIP = NO; 258 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 259 | ENABLE_NS_ASSERTIONS = NO; 260 | ENABLE_STRICT_OBJC_MSGSEND = YES; 261 | GCC_C_LANGUAGE_STANDARD = gnu11; 262 | GCC_NO_COMMON_BLOCKS = YES; 263 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 264 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 265 | GCC_WARN_UNDECLARED_SELECTOR = YES; 266 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 267 | GCC_WARN_UNUSED_FUNCTION = YES; 268 | GCC_WARN_UNUSED_VARIABLE = YES; 269 | IPHONEOS_DEPLOYMENT_TARGET = 13.0; 270 | MTL_ENABLE_DEBUG_INFO = NO; 271 | MTL_FAST_MATH = YES; 272 | SDKROOT = iphoneos; 273 | SWIFT_COMPILATION_MODE = wholemodule; 274 | SWIFT_OPTIMIZATION_LEVEL = "-O"; 275 | VALIDATE_PRODUCT = YES; 276 | }; 277 | name = Release; 278 | }; 279 | 1C1E6A40243E777E0009DDBE /* Debug */ = { 280 | isa = XCBuildConfiguration; 281 | buildSettings = { 282 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 283 | CODE_SIGN_STYLE = Automatic; 284 | INFOPLIST_FILE = TabBarZoZ/Info.plist; 285 | LD_RUNPATH_SEARCH_PATHS = ( 286 | "$(inherited)", 287 | "@executable_path/Frameworks", 288 | ); 289 | PRODUCT_BUNDLE_IDENTIFIER = com.uniform.TabBarZoZ; 290 | PRODUCT_NAME = "$(TARGET_NAME)"; 291 | SWIFT_VERSION = 5.0; 292 | TARGETED_DEVICE_FAMILY = "1,2"; 293 | }; 294 | name = Debug; 295 | }; 296 | 1C1E6A41243E777E0009DDBE /* Release */ = { 297 | isa = XCBuildConfiguration; 298 | buildSettings = { 299 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 300 | CODE_SIGN_STYLE = Automatic; 301 | INFOPLIST_FILE = TabBarZoZ/Info.plist; 302 | LD_RUNPATH_SEARCH_PATHS = ( 303 | "$(inherited)", 304 | "@executable_path/Frameworks", 305 | ); 306 | PRODUCT_BUNDLE_IDENTIFIER = com.uniform.TabBarZoZ; 307 | PRODUCT_NAME = "$(TARGET_NAME)"; 308 | SWIFT_VERSION = 5.0; 309 | TARGETED_DEVICE_FAMILY = "1,2"; 310 | }; 311 | name = Release; 312 | }; 313 | /* End XCBuildConfiguration section */ 314 | 315 | /* Begin XCConfigurationList section */ 316 | 1C1E6A26243E777E0009DDBE /* Build configuration list for PBXProject "TabBarZoZ" */ = { 317 | isa = XCConfigurationList; 318 | buildConfigurations = ( 319 | 1C1E6A3D243E777E0009DDBE /* Debug */, 320 | 1C1E6A3E243E777E0009DDBE /* Release */, 321 | ); 322 | defaultConfigurationIsVisible = 0; 323 | defaultConfigurationName = Release; 324 | }; 325 | 1C1E6A3F243E777E0009DDBE /* Build configuration list for PBXNativeTarget "TabBarZoZ" */ = { 326 | isa = XCConfigurationList; 327 | buildConfigurations = ( 328 | 1C1E6A40243E777E0009DDBE /* Debug */, 329 | 1C1E6A41243E777E0009DDBE /* Release */, 330 | ); 331 | defaultConfigurationIsVisible = 0; 332 | defaultConfigurationName = Release; 333 | }; 334 | /* End XCConfigurationList section */ 335 | }; 336 | rootObject = 1C1E6A23243E777E0009DDBE /* Project object */; 337 | } 338 | -------------------------------------------------------------------------------- /TabBarZoZ.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TabBarZoZ.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /TabBarZoZ.xcodeproj/project.xcworkspace/xcuserdata/emadios.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/maherelsaied/NewTabBar/ca6b311fd73ac776d624081f86e268ca2ce1694a/TabBarZoZ.xcodeproj/project.xcworkspace/xcuserdata/emadios.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /TabBarZoZ.xcodeproj/xcuserdata/emadios.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | TabBarZoZ.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /TabBarZoZ/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // TabBarZoZ 4 | // 5 | // Created by Maher on 4/8/20. 6 | // Copyright © 2020 emad ios. 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 | -------------------------------------------------------------------------------- /TabBarZoZ/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 | } -------------------------------------------------------------------------------- /TabBarZoZ/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /TabBarZoZ/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 | -------------------------------------------------------------------------------- /TabBarZoZ/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 | UISceneStoryboardFile 37 | Main 38 | 39 | 40 | 41 | 42 | UILaunchStoryboardName 43 | LaunchScreen 44 | UIMainStoryboardFile 45 | Main 46 | UIRequiredDeviceCapabilities 47 | 48 | armv7 49 | 50 | UISupportedInterfaceOrientations 51 | 52 | UIInterfaceOrientationPortrait 53 | UIInterfaceOrientationLandscapeLeft 54 | UIInterfaceOrientationLandscapeRight 55 | 56 | UISupportedInterfaceOrientations~ipad 57 | 58 | UIInterfaceOrientationPortrait 59 | UIInterfaceOrientationPortraitUpsideDown 60 | UIInterfaceOrientationLandscapeLeft 61 | UIInterfaceOrientationLandscapeRight 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /TabBarZoZ/MStabBar.swift: -------------------------------------------------------------------------------- 1 | // 2 | // nay.swift 3 | // TestAnimation 4 | // 5 | // Created by Maher on 4/8/20. 6 | // Copyright © 2020 emad ios. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | class MStabBar : UITabBar { 13 | var tabWidth: CGFloat = 0 14 | var index: CGFloat = 0 { 15 | willSet{ 16 | self.previousIndex = index 17 | } 18 | } 19 | private var animated = false 20 | private var selectedImage: UIImage? 21 | private var previousIndex: CGFloat = 0 22 | override init(frame: CGRect) { 23 | super.init(frame: frame) 24 | 25 | } 26 | 27 | required init?(coder aDecoder: NSCoder) { 28 | super.init(coder: aDecoder) 29 | 30 | 31 | } 32 | override func draw(_ rect: CGRect) { 33 | let fillColor: UIColor = .white 34 | tabWidth = self.bounds.width / CGFloat(self.items!.count) 35 | let bezPath = drawPath(for: 2) 36 | 37 | bezPath.close() 38 | fillColor.setFill() 39 | bezPath.fill() 40 | let mask = CAShapeLayer() 41 | mask.fillRule = .evenOdd 42 | mask.fillColor = UIColor.white.cgColor 43 | mask.path = bezPath.cgPath 44 | if (self.animated) { 45 | let bezAnimation = CABasicAnimation(keyPath: "path") 46 | let bezPathFrom = drawPath(for: previousIndex) 47 | bezAnimation.toValue = bezPath.cgPath 48 | bezAnimation.fromValue = bezPathFrom.cgPath 49 | bezAnimation.duration = 0.3 50 | bezAnimation.timingFunction = CAMediaTimingFunction(name: .easeInEaseOut) 51 | mask.add(bezAnimation, forKey: nil) 52 | } 53 | self.layer.mask = mask 54 | 55 | } 56 | 57 | func select(itemAt: Int, animated: Bool) { 58 | self.index = CGFloat(itemAt) 59 | self.animated = animated 60 | self.selectedImage = self.selectedItem?.selectedImage 61 | self.selectedItem?.selectedImage = nil 62 | self.setNeedsDisplay() 63 | } 64 | 65 | 66 | private func drawPath(for index: CGFloat) -> UIBezierPath { 67 | let bezPath = UIBezierPath() 68 | 69 | let firstPoint = CGPoint(x: (2 * tabWidth) - 25, y: 0) 70 | 71 | 72 | let firstPointFirstCurve = CGPoint(x: ((tabWidth * index) + tabWidth / 4) - 10, y: 0) 73 | let firstPointSecondCurve = CGPoint(x: ((index * tabWidth) - 20) + tabWidth / 8, y: 45) 74 | 75 | let middlePoint = CGPoint(x: (tabWidth * index) + tabWidth / 2, y: 47) 76 | 77 | 78 | let middlePointFirstCurve = CGPoint(x: (((tabWidth * index) + tabWidth) - tabWidth / 8) + 20, y: 45) 79 | let middlePointSecondCurve = CGPoint(x: (((tabWidth * index) + tabWidth) - tabWidth / 4) + 10 , y: 0) 80 | 81 | let lastPoint = CGPoint(x: (tabWidth * index) + tabWidth + 25, y: 0) 82 | 83 | 84 | bezPath.move(to: firstPoint) 85 | bezPath.addCurve(to: middlePoint, controlPoint1: firstPointFirstCurve, controlPoint2: firstPointSecondCurve) 86 | bezPath.addCurve(to: lastPoint, controlPoint1: middlePointFirstCurve, controlPoint2: middlePointSecondCurve) 87 | bezPath.append(UIBezierPath(rect: self.bounds)) 88 | return bezPath 89 | } 90 | 91 | 92 | } 93 | -------------------------------------------------------------------------------- /TabBarZoZ/MStabBarController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MytabBar.swift 3 | // TestAnimation 4 | // 5 | // Created by Maher on 4/8/20. 6 | // Copyright © 2020 emad ios. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | class MStabBarController : UITabBarController , UITabBarControllerDelegate 13 | { 14 | private var circleView : UIView! 15 | private var circleImageView: UIImageView! 16 | 17 | 18 | override func viewDidLoad() { 19 | super.viewDidLoad() 20 | let tabBar = MStabBar() 21 | self.setValue(tabBar, forKey: "tabBar") 22 | self.circleView = UIView(frame: .zero) 23 | circleView.layer.cornerRadius = 30 24 | circleView.backgroundColor = .white 25 | circleView.isUserInteractionEnabled = false 26 | self.circleImageView = UIImageView(frame: .zero) 27 | circleImageView.layer.cornerRadius = 30 28 | circleImageView.isUserInteractionEnabled = false 29 | circleImageView.contentMode = .center 30 | circleView.addSubview(circleImageView) 31 | self.view.addSubview(circleView) 32 | self.tabBar.tintColor = .red 33 | self.tabBar.barTintColor = .white 34 | self.tabBar.backgroundColor = .white 35 | self.delegate = self 36 | } 37 | 38 | 39 | open override func viewWillLayoutSubviews() { 40 | super.viewWillLayoutSubviews() 41 | circleView.frame = CGRect(x: self.view.bounds.width / 2 - 30, y: self.tabBar.frame.origin.y - 20 , width: 60, height: 60) 42 | 43 | circleImageView.frame = self.circleView.bounds 44 | circleImageView.image = image(with: self.tabBar.items?[2].image, scaledTo: CGSize(width: 30, height: 30)) 45 | 46 | 47 | 48 | } 49 | 50 | open override func viewSafeAreaInsetsDidChange() { 51 | if #available(iOS 11.0, *) { 52 | super.viewSafeAreaInsetsDidChange() 53 | } 54 | updateTabBarFrame() 55 | } 56 | 57 | 58 | private func updateTabBarFrame() { 59 | var tabFrame = self.tabBar.frame 60 | tabFrame.size.height = 60 61 | tabFrame.origin.y = self.view.frame.size.height - 60 62 | self.tabBar.frame = tabFrame 63 | tabBar.setNeedsLayout() 64 | } 65 | 66 | 67 | func tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController) { 68 | let selectedIndex = tabBarController.viewControllers?.firstIndex(of: viewController)! 69 | if selectedIndex == 2 { 70 | // circleImageView.image = image(with: UIImage(named: "ImageName"), scaledTo: CGSize(width: 30, height: 30)) 71 | }else{ 72 | // circleImageView.image = image(with: self.tabBar.items?[2].image, scaledTo: CGSize(width: 30, height: 30)) 73 | 74 | } 75 | } 76 | 77 | 78 | 79 | 80 | private func image(with image: UIImage?, scaledTo newSize: CGSize) -> UIImage? { 81 | UIGraphicsBeginImageContextWithOptions(newSize, _: false, _: 0.0) 82 | image?.draw(in: CGRect(x: 0, y: 0, width: newSize.width, height: newSize.height)) 83 | let newImage: UIImage? = UIGraphicsGetImageFromCurrentImageContext() 84 | UIGraphicsEndImageContext() 85 | return newImage 86 | } 87 | 88 | 89 | } 90 | 91 | 92 | 93 | -------------------------------------------------------------------------------- /TabBarZoZ/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 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | -------------------------------------------------------------------------------- /TabBarZoZ/SceneDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SceneDelegate.swift 3 | // TabBarZoZ 4 | // 5 | // Created by Maher on 4/8/20. 6 | // Copyright © 2020 emad ios. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class SceneDelegate: UIResponder, UIWindowSceneDelegate { 12 | 13 | var window: UIWindow? 14 | 15 | 16 | func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { 17 | // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. 18 | // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. 19 | // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). 20 | guard let _ = (scene as? UIWindowScene) else { return } 21 | } 22 | 23 | func sceneDidDisconnect(_ scene: UIScene) { 24 | // Called as the scene is being released by the system. 25 | // This occurs shortly after the scene enters the background, or when its session is discarded. 26 | // Release any resources associated with this scene that can be re-created the next time the scene connects. 27 | // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). 28 | } 29 | 30 | func sceneDidBecomeActive(_ scene: UIScene) { 31 | // Called when the scene has moved from an inactive state to an active state. 32 | // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. 33 | } 34 | 35 | func sceneWillResignActive(_ scene: UIScene) { 36 | // Called when the scene will move from an active state to an inactive state. 37 | // This may occur due to temporary interruptions (ex. an incoming phone call). 38 | } 39 | 40 | func sceneWillEnterForeground(_ scene: UIScene) { 41 | // Called as the scene transitions from the background to the foreground. 42 | // Use this method to undo the changes made on entering the background. 43 | } 44 | 45 | func sceneDidEnterBackground(_ scene: UIScene) { 46 | // Called as the scene transitions from the foreground to the background. 47 | // Use this method to save data, release shared resources, and store enough scene-specific state information 48 | // to restore the scene back to its current state. 49 | } 50 | 51 | 52 | } 53 | 54 | --------------------------------------------------------------------------------