├── README.md ├── playback.gif ├── testingTabBarView.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── nickypatson.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── nickypatson.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ └── xcschememanagement.plist └── testingTabBarView ├── AppDelegate.swift ├── Assets.xcassets ├── Animation.imageset │ ├── Contents.json │ └── icons8-escrima-sticks-50.png ├── AppIcon.appiconset │ └── Contents.json ├── Contents.json ├── More.imageset │ ├── Contents.json │ └── icons8-ski-simulator-50.png ├── Navigation.imageset │ ├── Contents.json │ └── icons8-archers-arrow-50.png ├── Profile.imageset │ ├── Contents.json │ └── icons8-stepper-50.png ├── Settings.imageset │ ├── Contents.json │ └── icons8-gym-50.png ├── account_highlight.imageset │ ├── Contents.json │ └── account_highlight@2x.png ├── account_normal.imageset │ ├── Contents.json │ └── account_normal@2x.png ├── fish_highlight.imageset │ ├── Contents.json │ └── fish_highlight@2x.png ├── fish_normal.imageset │ ├── Contents.json │ └── fish_normal@2x.png ├── home_highlight.imageset │ ├── Contents.json │ └── home_highlight@2x.png ├── home_normal.imageset │ ├── Contents.json │ └── home_normal@2x.png ├── message_highlight.imageset │ ├── Contents.json │ └── message_highlight@2x.png ├── message_normal.imageset │ ├── Contents.json │ └── message_normal@2x.png ├── mycity_highlight.imageset │ ├── Contents.json │ └── mycity_highlight@2x.png ├── mycity_normal.imageset │ ├── Contents.json │ └── mycity_normal@2x.png ├── post_normal.imageset │ ├── Contents.json │ └── post_normal@2x.png ├── selected.imageset │ ├── Contents.json │ └── icons8-black-panther-mask-filled-100.png └── tapbar_top_line.imageset │ ├── Contents.json │ └── tapbar_top_line@2x.png ├── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard ├── Circle3DView.swift ├── Info.plist ├── TabBarController.swift └── testingTabBarView.xcdatamodeld ├── .xccurrentversion └── testingTabBarView.xcdatamodel └── contents /README.md: -------------------------------------------------------------------------------- 1 | 2 | # TabBarCircle3DView 3 | 4 | Swipe view inspired by Tinder 5 | 6 | Run in phyical device for better clarity 7 | 8 | ## Screenshot 9 | 10 | ![Alt text](/playback.gif?raw=true "Optional Title") 11 | 12 | ```swift 13 | @objc func longPressAction(gesture : UILongPressGestureRecognizer){ 14 | 15 | switch gesture.state { 16 | case .began : 17 | new.show(in: view) 18 | case .changed: 19 | new.panGestureForCircle(pan: gesture) 20 | case .ended: 21 | new.panGestureForCircle(pan: gesture) 22 | new.dismiss() 23 | case .cancelled, 24 | .possible, 25 | .failed: break 26 | } 27 | } 28 | } 29 | ``` 30 | 31 | ## Requirements 32 | 33 | ``` 34 | * Swift 4 35 | * XCode 9 36 | * iOS 9.0 (Min SDK) 37 | ``` 38 | 39 | ## Author 40 | 41 | Nicky Patson 42 | 43 | [HomePage](http://about.me/nickypatson) 44 | 45 | 46 | 47 | 48 | ## License 49 | 50 | GradientSlider is available under the MIT license. See the LICENSE file for more info. 51 | 52 | -------------------------------------------------------------------------------- /playback.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/playback.gif -------------------------------------------------------------------------------- /testingTabBarView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 48; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | E15FFB10204C311E00084AEB /* TabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E15FFB0F204C311E00084AEB /* TabBarController.swift */; }; 11 | E1B036CA204BD86400CF4406 /* Circle3DView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1B036C9204BD86400CF4406 /* Circle3DView.swift */; }; 12 | E1D516F9204949DC006A4655 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E1D516F8204949DC006A4655 /* AppDelegate.swift */; }; 13 | E1D516FE204949DC006A4655 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E1D516FC204949DC006A4655 /* Main.storyboard */; }; 14 | E1D51701204949DC006A4655 /* testingTabBarView.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = E1D516FF204949DC006A4655 /* testingTabBarView.xcdatamodeld */; }; 15 | E1D51703204949DC006A4655 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = E1D51702204949DC006A4655 /* Assets.xcassets */; }; 16 | E1D51706204949DC006A4655 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E1D51704204949DC006A4655 /* LaunchScreen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | E15FFB0F204C311E00084AEB /* TabBarController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TabBarController.swift; sourceTree = ""; }; 21 | E1B036C9204BD86400CF4406 /* Circle3DView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Circle3DView.swift; sourceTree = ""; }; 22 | E1D516F5204949DC006A4655 /* testingTabBarView.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testingTabBarView.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | E1D516F8204949DC006A4655 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 24 | E1D516FD204949DC006A4655 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 25 | E1D51700204949DC006A4655 /* testingTabBarView.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = testingTabBarView.xcdatamodel; sourceTree = ""; }; 26 | E1D51702204949DC006A4655 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 27 | E1D51705204949DC006A4655 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 28 | E1D51707204949DC006A4655 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | E1D516F2204949DC006A4655 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | E1D516EC204949DC006A4655 = { 43 | isa = PBXGroup; 44 | children = ( 45 | E1D516F7204949DC006A4655 /* testingTabBarView */, 46 | E1D516F6204949DC006A4655 /* Products */, 47 | ); 48 | sourceTree = ""; 49 | }; 50 | E1D516F6204949DC006A4655 /* Products */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | E1D516F5204949DC006A4655 /* testingTabBarView.app */, 54 | ); 55 | name = Products; 56 | sourceTree = ""; 57 | }; 58 | E1D516F7204949DC006A4655 /* testingTabBarView */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | E1B036C9204BD86400CF4406 /* Circle3DView.swift */, 62 | E1D516F8204949DC006A4655 /* AppDelegate.swift */, 63 | E15FFB0F204C311E00084AEB /* TabBarController.swift */, 64 | E1D516FC204949DC006A4655 /* Main.storyboard */, 65 | E1D51702204949DC006A4655 /* Assets.xcassets */, 66 | E1D51704204949DC006A4655 /* LaunchScreen.storyboard */, 67 | E1D51707204949DC006A4655 /* Info.plist */, 68 | E1D516FF204949DC006A4655 /* testingTabBarView.xcdatamodeld */, 69 | ); 70 | path = testingTabBarView; 71 | sourceTree = ""; 72 | }; 73 | /* End PBXGroup section */ 74 | 75 | /* Begin PBXNativeTarget section */ 76 | E1D516F4204949DC006A4655 /* testingTabBarView */ = { 77 | isa = PBXNativeTarget; 78 | buildConfigurationList = E1D5170A204949DC006A4655 /* Build configuration list for PBXNativeTarget "testingTabBarView" */; 79 | buildPhases = ( 80 | E1D516F1204949DC006A4655 /* Sources */, 81 | E1D516F2204949DC006A4655 /* Frameworks */, 82 | E1D516F3204949DC006A4655 /* Resources */, 83 | ); 84 | buildRules = ( 85 | ); 86 | dependencies = ( 87 | ); 88 | name = testingTabBarView; 89 | productName = testingTabBarView; 90 | productReference = E1D516F5204949DC006A4655 /* testingTabBarView.app */; 91 | productType = "com.apple.product-type.application"; 92 | }; 93 | /* End PBXNativeTarget section */ 94 | 95 | /* Begin PBXProject section */ 96 | E1D516ED204949DC006A4655 /* Project object */ = { 97 | isa = PBXProject; 98 | attributes = { 99 | LastSwiftUpdateCheck = 0920; 100 | LastUpgradeCheck = 1020; 101 | ORGANIZATIONNAME = Nick; 102 | TargetAttributes = { 103 | E1D516F4204949DC006A4655 = { 104 | CreatedOnToolsVersion = 9.2; 105 | ProvisioningStyle = Automatic; 106 | }; 107 | }; 108 | }; 109 | buildConfigurationList = E1D516F0204949DC006A4655 /* Build configuration list for PBXProject "testingTabBarView" */; 110 | compatibilityVersion = "Xcode 8.0"; 111 | developmentRegion = en; 112 | hasScannedForEncodings = 0; 113 | knownRegions = ( 114 | en, 115 | Base, 116 | ); 117 | mainGroup = E1D516EC204949DC006A4655; 118 | productRefGroup = E1D516F6204949DC006A4655 /* Products */; 119 | projectDirPath = ""; 120 | projectRoot = ""; 121 | targets = ( 122 | E1D516F4204949DC006A4655 /* testingTabBarView */, 123 | ); 124 | }; 125 | /* End PBXProject section */ 126 | 127 | /* Begin PBXResourcesBuildPhase section */ 128 | E1D516F3204949DC006A4655 /* Resources */ = { 129 | isa = PBXResourcesBuildPhase; 130 | buildActionMask = 2147483647; 131 | files = ( 132 | E1D51706204949DC006A4655 /* LaunchScreen.storyboard in Resources */, 133 | E1D51703204949DC006A4655 /* Assets.xcassets in Resources */, 134 | E1D516FE204949DC006A4655 /* Main.storyboard in Resources */, 135 | ); 136 | runOnlyForDeploymentPostprocessing = 0; 137 | }; 138 | /* End PBXResourcesBuildPhase section */ 139 | 140 | /* Begin PBXSourcesBuildPhase section */ 141 | E1D516F1204949DC006A4655 /* Sources */ = { 142 | isa = PBXSourcesBuildPhase; 143 | buildActionMask = 2147483647; 144 | files = ( 145 | E1B036CA204BD86400CF4406 /* Circle3DView.swift in Sources */, 146 | E1D516F9204949DC006A4655 /* AppDelegate.swift in Sources */, 147 | E15FFB10204C311E00084AEB /* TabBarController.swift in Sources */, 148 | E1D51701204949DC006A4655 /* testingTabBarView.xcdatamodeld in Sources */, 149 | ); 150 | runOnlyForDeploymentPostprocessing = 0; 151 | }; 152 | /* End PBXSourcesBuildPhase section */ 153 | 154 | /* Begin PBXVariantGroup section */ 155 | E1D516FC204949DC006A4655 /* Main.storyboard */ = { 156 | isa = PBXVariantGroup; 157 | children = ( 158 | E1D516FD204949DC006A4655 /* Base */, 159 | ); 160 | name = Main.storyboard; 161 | sourceTree = ""; 162 | }; 163 | E1D51704204949DC006A4655 /* LaunchScreen.storyboard */ = { 164 | isa = PBXVariantGroup; 165 | children = ( 166 | E1D51705204949DC006A4655 /* Base */, 167 | ); 168 | name = LaunchScreen.storyboard; 169 | sourceTree = ""; 170 | }; 171 | /* End PBXVariantGroup section */ 172 | 173 | /* Begin XCBuildConfiguration section */ 174 | E1D51708204949DC006A4655 /* Debug */ = { 175 | isa = XCBuildConfiguration; 176 | buildSettings = { 177 | ALWAYS_SEARCH_USER_PATHS = NO; 178 | CLANG_ANALYZER_NONNULL = YES; 179 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 180 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 181 | CLANG_CXX_LIBRARY = "libc++"; 182 | CLANG_ENABLE_MODULES = YES; 183 | CLANG_ENABLE_OBJC_ARC = YES; 184 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 185 | CLANG_WARN_BOOL_CONVERSION = YES; 186 | CLANG_WARN_COMMA = YES; 187 | CLANG_WARN_CONSTANT_CONVERSION = YES; 188 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 189 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 190 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 191 | CLANG_WARN_EMPTY_BODY = YES; 192 | CLANG_WARN_ENUM_CONVERSION = YES; 193 | CLANG_WARN_INFINITE_RECURSION = YES; 194 | CLANG_WARN_INT_CONVERSION = YES; 195 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 196 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 197 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 198 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 199 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 200 | CLANG_WARN_STRICT_PROTOTYPES = YES; 201 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 202 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 203 | CLANG_WARN_UNREACHABLE_CODE = YES; 204 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 205 | CODE_SIGN_IDENTITY = "iPhone Developer"; 206 | COPY_PHASE_STRIP = NO; 207 | DEBUG_INFORMATION_FORMAT = dwarf; 208 | ENABLE_STRICT_OBJC_MSGSEND = YES; 209 | ENABLE_TESTABILITY = YES; 210 | GCC_C_LANGUAGE_STANDARD = gnu11; 211 | GCC_DYNAMIC_NO_PIC = NO; 212 | GCC_NO_COMMON_BLOCKS = YES; 213 | GCC_OPTIMIZATION_LEVEL = 0; 214 | GCC_PREPROCESSOR_DEFINITIONS = ( 215 | "DEBUG=1", 216 | "$(inherited)", 217 | ); 218 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 219 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 220 | GCC_WARN_UNDECLARED_SELECTOR = YES; 221 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 222 | GCC_WARN_UNUSED_FUNCTION = YES; 223 | GCC_WARN_UNUSED_VARIABLE = YES; 224 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 225 | MTL_ENABLE_DEBUG_INFO = YES; 226 | ONLY_ACTIVE_ARCH = YES; 227 | SDKROOT = iphoneos; 228 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 229 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 230 | }; 231 | name = Debug; 232 | }; 233 | E1D51709204949DC006A4655 /* Release */ = { 234 | isa = XCBuildConfiguration; 235 | buildSettings = { 236 | ALWAYS_SEARCH_USER_PATHS = NO; 237 | CLANG_ANALYZER_NONNULL = YES; 238 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 239 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 240 | CLANG_CXX_LIBRARY = "libc++"; 241 | CLANG_ENABLE_MODULES = YES; 242 | CLANG_ENABLE_OBJC_ARC = YES; 243 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 244 | CLANG_WARN_BOOL_CONVERSION = YES; 245 | CLANG_WARN_COMMA = YES; 246 | CLANG_WARN_CONSTANT_CONVERSION = YES; 247 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 248 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 249 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 250 | CLANG_WARN_EMPTY_BODY = YES; 251 | CLANG_WARN_ENUM_CONVERSION = YES; 252 | CLANG_WARN_INFINITE_RECURSION = YES; 253 | CLANG_WARN_INT_CONVERSION = YES; 254 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 255 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 256 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 257 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 258 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 259 | CLANG_WARN_STRICT_PROTOTYPES = YES; 260 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 261 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 262 | CLANG_WARN_UNREACHABLE_CODE = YES; 263 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 264 | CODE_SIGN_IDENTITY = "iPhone Developer"; 265 | COPY_PHASE_STRIP = NO; 266 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 267 | ENABLE_NS_ASSERTIONS = NO; 268 | ENABLE_STRICT_OBJC_MSGSEND = YES; 269 | GCC_C_LANGUAGE_STANDARD = gnu11; 270 | GCC_NO_COMMON_BLOCKS = YES; 271 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 272 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 273 | GCC_WARN_UNDECLARED_SELECTOR = YES; 274 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 275 | GCC_WARN_UNUSED_FUNCTION = YES; 276 | GCC_WARN_UNUSED_VARIABLE = YES; 277 | IPHONEOS_DEPLOYMENT_TARGET = 11.2; 278 | MTL_ENABLE_DEBUG_INFO = NO; 279 | SDKROOT = iphoneos; 280 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 281 | VALIDATE_PRODUCT = YES; 282 | }; 283 | name = Release; 284 | }; 285 | E1D5170B204949DC006A4655 /* Debug */ = { 286 | isa = XCBuildConfiguration; 287 | buildSettings = { 288 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 289 | CODE_SIGN_STYLE = Automatic; 290 | INFOPLIST_FILE = testingTabBarView/Info.plist; 291 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 292 | PRODUCT_BUNDLE_IDENTIFIER = com.nickypatson.testingTabBarView; 293 | PRODUCT_NAME = "$(TARGET_NAME)"; 294 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 295 | SWIFT_VERSION = 5.0; 296 | TARGETED_DEVICE_FAMILY = "1,2"; 297 | }; 298 | name = Debug; 299 | }; 300 | E1D5170C204949DC006A4655 /* Release */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 304 | CODE_SIGN_STYLE = Automatic; 305 | INFOPLIST_FILE = testingTabBarView/Info.plist; 306 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 307 | PRODUCT_BUNDLE_IDENTIFIER = com.nickypatson.testingTabBarView; 308 | PRODUCT_NAME = "$(TARGET_NAME)"; 309 | SWIFT_VERSION = 5.0; 310 | TARGETED_DEVICE_FAMILY = "1,2"; 311 | }; 312 | name = Release; 313 | }; 314 | /* End XCBuildConfiguration section */ 315 | 316 | /* Begin XCConfigurationList section */ 317 | E1D516F0204949DC006A4655 /* Build configuration list for PBXProject "testingTabBarView" */ = { 318 | isa = XCConfigurationList; 319 | buildConfigurations = ( 320 | E1D51708204949DC006A4655 /* Debug */, 321 | E1D51709204949DC006A4655 /* Release */, 322 | ); 323 | defaultConfigurationIsVisible = 0; 324 | defaultConfigurationName = Release; 325 | }; 326 | E1D5170A204949DC006A4655 /* Build configuration list for PBXNativeTarget "testingTabBarView" */ = { 327 | isa = XCConfigurationList; 328 | buildConfigurations = ( 329 | E1D5170B204949DC006A4655 /* Debug */, 330 | E1D5170C204949DC006A4655 /* Release */, 331 | ); 332 | defaultConfigurationIsVisible = 0; 333 | defaultConfigurationName = Release; 334 | }; 335 | /* End XCConfigurationList section */ 336 | 337 | /* Begin XCVersionGroup section */ 338 | E1D516FF204949DC006A4655 /* testingTabBarView.xcdatamodeld */ = { 339 | isa = XCVersionGroup; 340 | children = ( 341 | E1D51700204949DC006A4655 /* testingTabBarView.xcdatamodel */, 342 | ); 343 | currentVersion = E1D51700204949DC006A4655 /* testingTabBarView.xcdatamodel */; 344 | path = testingTabBarView.xcdatamodeld; 345 | sourceTree = ""; 346 | versionGroupType = wrapper.xcdatamodel; 347 | }; 348 | /* End XCVersionGroup section */ 349 | }; 350 | rootObject = E1D516ED204949DC006A4655 /* Project object */; 351 | } 352 | -------------------------------------------------------------------------------- /testingTabBarView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /testingTabBarView.xcodeproj/project.xcworkspace/xcuserdata/nickypatson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView.xcodeproj/project.xcworkspace/xcuserdata/nickypatson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /testingTabBarView.xcodeproj/xcuserdata/nickypatson.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /testingTabBarView.xcodeproj/xcuserdata/nickypatson.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | testingTabBarView.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /testingTabBarView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // testingTabBarView 4 | // 5 | // Created by Nick on 02/03/18. 6 | // Copyright © 2018 Nick. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import CoreData 11 | 12 | @UIApplicationMain 13 | class AppDelegate: UIResponder, UIApplicationDelegate { 14 | 15 | var window: UIWindow? 16 | 17 | 18 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 19 | 20 | let tabBarController = TabBarController() 21 | let navigationController = UINavigationController(rootViewController: tabBarController) 22 | window?.rootViewController = navigationController 23 | window?.makeKeyAndVisible() 24 | return true 25 | } 26 | 27 | func applicationWillResignActive(_ application: UIApplication) { 28 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 29 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 30 | } 31 | 32 | func applicationDidEnterBackground(_ application: UIApplication) { 33 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 34 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 35 | } 36 | 37 | func applicationWillEnterForeground(_ application: UIApplication) { 38 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 39 | } 40 | 41 | func applicationDidBecomeActive(_ application: UIApplication) { 42 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 43 | } 44 | 45 | func applicationWillTerminate(_ application: UIApplication) { 46 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 47 | // Saves changes in the application's managed object context before the application terminates. 48 | self.saveContext() 49 | } 50 | 51 | // MARK: - Core Data stack 52 | 53 | lazy var persistentContainer: NSPersistentContainer = { 54 | /* 55 | The persistent container for the application. This implementation 56 | creates and returns a container, having loaded the store for the 57 | application to it. This property is optional since there are legitimate 58 | error conditions that could cause the creation of the store to fail. 59 | */ 60 | let container = NSPersistentContainer(name: "testingTabBarView") 61 | container.loadPersistentStores(completionHandler: { (storeDescription, error) in 62 | if let error = error as NSError? { 63 | // Replace this implementation with code to handle the error appropriately. 64 | // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. 65 | 66 | /* 67 | Typical reasons for an error here include: 68 | * The parent directory does not exist, cannot be created, or disallows writing. 69 | * The persistent store is not accessible, due to permissions or data protection when the device is locked. 70 | * The device is out of space. 71 | * The store could not be migrated to the current model version. 72 | Check the error message to determine what the actual problem was. 73 | */ 74 | fatalError("Unresolved error \(error), \(error.userInfo)") 75 | } 76 | }) 77 | return container 78 | }() 79 | 80 | // MARK: - Core Data Saving support 81 | 82 | func saveContext () { 83 | let context = persistentContainer.viewContext 84 | if context.hasChanges { 85 | do { 86 | try context.save() 87 | } catch { 88 | // Replace this implementation with code to handle the error appropriately. 89 | // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. 90 | let nserror = error as NSError 91 | fatalError("Unresolved error \(nserror), \(nserror.userInfo)") 92 | } 93 | } 94 | } 95 | 96 | } 97 | 98 | -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Animation.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icons8-escrima-sticks-50.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Animation.imageset/icons8-escrima-sticks-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/Animation.imageset/icons8-escrima-sticks-50.png -------------------------------------------------------------------------------- /testingTabBarView/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 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/More.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icons8-ski-simulator-50.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/More.imageset/icons8-ski-simulator-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/More.imageset/icons8-ski-simulator-50.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Navigation.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icons8-archers-arrow-50.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Navigation.imageset/icons8-archers-arrow-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/Navigation.imageset/icons8-archers-arrow-50.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Profile.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icons8-stepper-50.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Profile.imageset/icons8-stepper-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/Profile.imageset/icons8-stepper-50.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Settings.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icons8-gym-50.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/Settings.imageset/icons8-gym-50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/Settings.imageset/icons8-gym-50.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/account_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "account_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/account_highlight.imageset/account_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/account_highlight.imageset/account_highlight@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/account_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "account_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/account_normal.imageset/account_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/account_normal.imageset/account_normal@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/fish_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "fish_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/fish_highlight.imageset/fish_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/fish_highlight.imageset/fish_highlight@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/fish_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "fish_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/fish_normal.imageset/fish_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/fish_normal.imageset/fish_normal@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/home_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "home_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/home_highlight.imageset/home_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/home_highlight.imageset/home_highlight@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/home_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "home_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/home_normal.imageset/home_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/home_normal.imageset/home_normal@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/message_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "message_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/message_highlight.imageset/message_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/message_highlight.imageset/message_highlight@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/message_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "message_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/message_normal.imageset/message_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/message_normal.imageset/message_normal@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/mycity_highlight.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "mycity_highlight@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/mycity_highlight.imageset/mycity_highlight@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/mycity_highlight.imageset/mycity_highlight@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/mycity_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "mycity_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/mycity_normal.imageset/mycity_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/mycity_normal.imageset/mycity_normal@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/post_normal.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "post_normal@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/post_normal.imageset/post_normal@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/post_normal.imageset/post_normal@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/selected.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "icons8-black-panther-mask-filled-100.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/selected.imageset/icons8-black-panther-mask-filled-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/selected.imageset/icons8-black-panther-mask-filled-100.png -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/tapbar_top_line.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "tapbar_top_line@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /testingTabBarView/Assets.xcassets/tapbar_top_line.imageset/tapbar_top_line@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nickypatson/3DCircleMenu/be3cece0f35057171dec56a59fd269530a87a7df/testingTabBarView/Assets.xcassets/tapbar_top_line.imageset/tapbar_top_line@2x.png -------------------------------------------------------------------------------- /testingTabBarView/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /testingTabBarView/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /testingTabBarView/Circle3DView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Circle3DView.swift 3 | // testingTabBarView 4 | // 5 | // Created by Nick on 04/03/18. 6 | // Copyright © 2018 Nick. All rights reserved. 7 | // 8 | 9 | let CIRCLE_RADIUS:CGFloat = 250 10 | 11 | import UIKit 12 | 13 | protocol Circle3DViewDelegate: NSObjectProtocol { 14 | func selectedValue(index:Int) 15 | } 16 | 17 | class Circle3DView: UIView { 18 | 19 | var menuTitleValues = [String]() 20 | var currentIndex = -1 21 | var itemPathArray = [UIBezierPath]() 22 | var menuImageArray = [UIImageView]() 23 | 24 | var titleLabel:UILabel = { 25 | let label = UILabel() 26 | label.text = "Menu" 27 | label.textColor = UIColor.white 28 | label.textAlignment = .center 29 | label.font = UIFont.systemFont(ofSize: 22) 30 | label.sizeToFit() 31 | return label 32 | }() 33 | 34 | let visualEffectView = UIVisualEffectView(effect: UIBlurEffect(style: .dark)) 35 | 36 | weak var delegate: Circle3DViewDelegate? 37 | 38 | public init(frame: CGRect, values:[String]) { 39 | super.init(frame: frame) 40 | let panGesture = UIPanGestureRecognizer(target: self, action: #selector(self.panGestureForCircle)) 41 | addGestureRecognizer(panGesture) 42 | backgroundColor = UIColor(red: 45/255, green: 62/255, blue: 79/255, alpha: 1.0) 43 | layer.cornerRadius = CIRCLE_RADIUS/2 44 | layer.shadowOpacity = 0.7 45 | layer.shadowOffset = CGSize(width: 0, height: -2) 46 | menuTitleValues = values 47 | } 48 | 49 | required init?(coder aDecoder: NSCoder) { 50 | fatalError("init(coder:) has not been implemented") 51 | } 52 | 53 | override func layoutSubviews() { 54 | super.layoutSubviews() 55 | 56 | let menuCount = Float(menuTitleValues.count) 57 | let initalTh = Float.pi / Float(((menuCount - 1) * 2 + 2)); 58 | let th = (.pi - 2 * initalTh) / Float((menuCount - 1)) 59 | 60 | for index in 0..= 0 && currentIndex < menuTitleValues.count) { 144 | titleLabel.text = menuTitleValues[currentIndex] 145 | _ = menuImageArray[currentIndex] 146 | } 147 | 148 | if (currentIndex < 0) { 149 | titleLabel.text = "Menu"; 150 | currentIndex = -1 151 | } 152 | 153 | case .ended, .failed, .cancelled: 154 | UIView.animate(withDuration: 0.3, animations: { 155 | self.layer.transform = self.transform3DView(withM34: 1.0 / -500, xf: 0, yf: 0) 156 | }) 157 | 158 | if(currentIndex > 0){ 159 | delegate?.selectedValue(index: currentIndex) 160 | } 161 | default: 162 | break 163 | } 164 | } 165 | 166 | func transform3DView(withM34 m34: CGFloat, xf: CGFloat, yf: CGFloat) -> CATransform3D { 167 | var t: CATransform3D = CATransform3DIdentity 168 | t.m34 = m34 169 | t = CATransform3DRotate(t, .pi / 9 * yf, -1, 0, 0) 170 | t = CATransform3DRotate(t, .pi / 9 * xf, 0, 1, 0) 171 | return t 172 | } 173 | } 174 | -------------------------------------------------------------------------------- /testingTabBarView/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 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /testingTabBarView/TabBarController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TabBarController.swift 3 | // testingTabBarView 4 | // 5 | // Created by Nick on 04/03/18. 6 | // Copyright © 2018 Nick. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class TabBarController: UITabBarController { 12 | 13 | let circleView = Circle3DView(frame: CGRect.zero, values: ["Navigation","Animation","Settings","Profile","More"]) 14 | 15 | override func viewDidLoad() { 16 | super.viewDidLoad() 17 | initilizeTabBar() 18 | addChildViewControllerToTabBar() 19 | setupMiddleButton() 20 | } 21 | 22 | override func viewWillAppear(_ animated: Bool) { 23 | super.viewWillAppear(true) 24 | self.navigationController?.navigationBar.isHidden = true 25 | } 26 | 27 | 28 | func setupMiddleButton() { 29 | 30 | let menuButton = UIButton(frame: CGRect(x: 0, y: 0, width: 64, height: 64)) 31 | var menuButtonFrame = menuButton.frame 32 | menuButtonFrame.origin.y = view.bounds.height - menuButtonFrame.height - 5 33 | menuButtonFrame.origin.x = view.bounds.width/2 - menuButtonFrame.size.width/2 34 | menuButton.frame = menuButtonFrame 35 | view.addSubview(menuButton) 36 | menuButton.setImage(UIImage(named: "selected"), for: .normal) 37 | menuButton.backgroundColor = UIColor(red: 45/255, green: 62/255, blue: 79/255, alpha: 1.0) 38 | menuButton.layer.cornerRadius = 32 39 | 40 | let longPressGesture = UILongPressGestureRecognizer(target: self, action: #selector(self.longPressAction)) 41 | longPressGesture.minimumPressDuration = 0.3 42 | menuButton.addGestureRecognizer(longPressGesture) 43 | circleView.delegate = self; 44 | 45 | view.layoutIfNeeded() 46 | } 47 | 48 | 49 | @objc func longPressAction(gesture : UILongPressGestureRecognizer){ 50 | 51 | switch gesture.state { 52 | case .began : 53 | circleView.show(in: view) 54 | case .changed: 55 | circleView.panGestureForCircle(pan: gesture) 56 | case .ended: 57 | circleView.panGestureForCircle(pan: gesture) 58 | circleView.dismiss() 59 | case .cancelled, 60 | .possible, 61 | .failed: break 62 | @unknown default: break 63 | 64 | } 65 | } 66 | 67 | 68 | func initilizeTabBar() { 69 | 70 | let tabBarItem = UITabBarItem.appearance(whenContainedInInstancesOf: [TabBarController.self]) 71 | var dictNormal = [NSAttributedString.Key : Any]() 72 | dictNormal[NSAttributedString.Key.foregroundColor] = UIColor.gray 73 | dictNormal[NSAttributedString.Key.font] = UIFont.systemFont(ofSize: 11) 74 | var dictSelected = [NSAttributedString.Key : Any]() 75 | dictSelected[NSAttributedString.Key.foregroundColor] = UIColor.darkGray 76 | dictSelected[NSAttributedString.Key.font] = UIFont.systemFont(ofSize: 11) 77 | tabBarItem.setTitleTextAttributes(dictNormal, for: .normal) 78 | tabBarItem.setTitleTextAttributes(dictSelected, for: .selected) 79 | } 80 | 81 | 82 | func addChildViewControllerToTabBar() { 83 | 84 | let HomeVC = UIViewController() 85 | setUpViewController(HomeVC, image: "home_normal", selectedImage: "home_highlight", title: "Home") 86 | 87 | let FishVC = UIViewController() 88 | setUpViewController(FishVC, image: "fish_normal", selectedImage: "fish_highlight", title: "Fishing") 89 | 90 | let middle = UIViewController() 91 | addChild(middle) 92 | 93 | let MessageVC = UIViewController() 94 | setUpViewController(MessageVC, image: "message_normal", selectedImage: "message_highlight", title: "Message") 95 | 96 | let MineVC = UIViewController() 97 | setUpViewController(MineVC, image: "account_normal", selectedImage: "account_highlight", title: "Account") 98 | 99 | } 100 | 101 | 102 | func setUpViewController(_ Vc: UIViewController, image: String, selectedImage: String, title: String) { 103 | 104 | let nav = UINavigationController(rootViewController: Vc) 105 | nav.setNavigationBarHidden(true, animated: true) 106 | Vc.view.backgroundColor = randomColor() 107 | var myImage = UIImage(named: image) 108 | myImage = myImage?.withRenderingMode(.alwaysOriginal) 109 | Vc.tabBarItem.image = myImage 110 | var mySelectedImage = UIImage(named: selectedImage) 111 | mySelectedImage = mySelectedImage?.withRenderingMode(.alwaysOriginal) 112 | Vc.tabBarItem.selectedImage = mySelectedImage 113 | Vc.tabBarItem.title = title 114 | Vc.navigationItem.title = title 115 | addChild(nav) 116 | } 117 | 118 | @objc func middleButtonPressed(){ 119 | 120 | } 121 | 122 | func randomColor() -> UIColor { 123 | 124 | let r: CGFloat = CGFloat(arc4random_uniform(256)) 125 | let g: CGFloat = CGFloat(arc4random_uniform(256)) 126 | let b: CGFloat = CGFloat(arc4random_uniform(256)) 127 | return UIColor(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: 1.0) 128 | } 129 | } 130 | 131 | extension TabBarController : Circle3DViewDelegate{ 132 | 133 | func selectedValue(index: Int) { 134 | let viewController = UIViewController() 135 | viewController.view.backgroundColor = randomColor() 136 | self.navigationController?.navigationBar.isHidden = false 137 | self.navigationController?.pushViewController(viewController, animated: true) 138 | print("selected \(index)") 139 | } 140 | } 141 | 142 | 143 | -------------------------------------------------------------------------------- /testingTabBarView/testingTabBarView.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | _XCCurrentVersionName 6 | testingTabBarView.xcdatamodel 7 | 8 | 9 | -------------------------------------------------------------------------------- /testingTabBarView/testingTabBarView.xcdatamodeld/testingTabBarView.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | --------------------------------------------------------------------------------