├── .gitignore ├── .travis.yml ├── Example ├── PTCardTabBar.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── PTCardTabBar-Example.xcscheme ├── PTCardTabBar.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── PTCardTabBar │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── calendar.imageset │ │ │ ├── Contents.json │ │ │ └── calendar.pdf │ │ ├── home.imageset │ │ │ ├── Contents.json │ │ │ └── home2.pdf │ │ └── more.imageset │ │ │ ├── Contents.json │ │ │ └── menu.pdf │ ├── Info.plist │ ├── LabelViewController.swift │ ├── PTTabBarViewController.swift │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── PTCardTabBar.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ └── PTCardTabBar.xcscheme │ └── Target Support Files │ │ ├── PTCardTabBar │ │ ├── PTCardTabBar-Info.plist │ │ ├── PTCardTabBar-dummy.m │ │ ├── PTCardTabBar-prefix.pch │ │ ├── PTCardTabBar-umbrella.h │ │ ├── PTCardTabBar.modulemap │ │ └── PTCardTabBar.xcconfig │ │ ├── Pods-PTCardTabBar_Example │ │ ├── Pods-PTCardTabBar_Example-Info.plist │ │ ├── Pods-PTCardTabBar_Example-acknowledgements.markdown │ │ ├── Pods-PTCardTabBar_Example-acknowledgements.plist │ │ ├── Pods-PTCardTabBar_Example-dummy.m │ │ ├── Pods-PTCardTabBar_Example-frameworks.sh │ │ ├── Pods-PTCardTabBar_Example-umbrella.h │ │ ├── Pods-PTCardTabBar_Example.debug.xcconfig │ │ ├── Pods-PTCardTabBar_Example.modulemap │ │ └── Pods-PTCardTabBar_Example.release.xcconfig │ │ └── Pods-PTCardTabBar_Tests │ │ ├── Pods-PTCardTabBar_Tests-Info.plist │ │ ├── Pods-PTCardTabBar_Tests-acknowledgements.markdown │ │ ├── Pods-PTCardTabBar_Tests-acknowledgements.plist │ │ ├── Pods-PTCardTabBar_Tests-dummy.m │ │ ├── Pods-PTCardTabBar_Tests-umbrella.h │ │ ├── Pods-PTCardTabBar_Tests.debug.xcconfig │ │ ├── Pods-PTCardTabBar_Tests.modulemap │ │ └── Pods-PTCardTabBar_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── PTCardTabBar.podspec ├── PTCardTabBar ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── Extensions │ ├── CGPoint+Distance.swift │ ├── UIColor+Additions.swift │ └── UIView+AutoLayout.swift │ ├── PTBarButton.swift │ ├── PTCardTabBar.swift │ ├── PTCardTabBarController.swift │ └── PTIndicatorView.swift ├── README.md ├── Screenshots ├── PTCardTabBar-1.png └── PTCardTabBar-2.png └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 26 | # Carthage/Checkouts 27 | 28 | Carthage/Build 29 | 30 | # We recommend against adding the Pods directory to your .gitignore. However 31 | # you should judge for yourself, the pros and cons are mentioned at: 32 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 33 | # 34 | # Note: if you ignore the Pods directory, make sure to uncomment 35 | # `pod install` in .travis.yml 36 | # 37 | # Pods/ 38 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * https://www.objc.io/issues/6-build-tools/travis-ci/ 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode10.2 6 | language: objective-c 7 | xcode_workspace: Example/PTCardTabBar.xcworkspace #3 8 | xcode_scheme: PTCardTabBar-Example #4 9 | xcode_sdk: iphonesimulator12.2 -------------------------------------------------------------------------------- /Example/PTCardTabBar.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1843CF7BCAD67C27C3E40361 /* Pods_PTCardTabBar_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3AB4BAF49DBFD06E90022F1F /* Pods_PTCardTabBar_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 17 | 9BA6F796206F6E12D5EC22C8 /* Pods_PTCardTabBar_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8E3F79FF6A2E8390CA6D7C56 /* Pods_PTCardTabBar_Tests.framework */; }; 18 | CFAE33742328F94000947F2D /* PTTabBarViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CFAE33732328F94000947F2D /* PTTabBarViewController.swift */; }; 19 | CFAE33762328F97400947F2D /* LabelViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = CFAE33752328F97400947F2D /* LabelViewController.swift */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 28 | remoteInfo = PTCardTabBar; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 1E571FB7D160D56AC20C8BD1 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 34 | 266630BCF85E91D05F4F5CB4 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 35 | 2EDEA0FBD37C6D27D356BFE6 /* PTCardTabBar.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = PTCardTabBar.podspec; path = ../PTCardTabBar.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 36 | 3AB4BAF49DBFD06E90022F1F /* Pods_PTCardTabBar_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PTCardTabBar_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 607FACD01AFB9204008FA782 /* PTCardTabBar_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PTCardTabBar_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 40 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 41 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 42 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 43 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 44 | 607FACE51AFB9204008FA782 /* PTCardTabBar_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PTCardTabBar_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 47 | 8E3F79FF6A2E8390CA6D7C56 /* Pods_PTCardTabBar_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PTCardTabBar_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | AEF70F7EC8AE51FC12FF12B1 /* Pods-PTCardTabBar_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PTCardTabBar_Example.debug.xcconfig"; path = "Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example.debug.xcconfig"; sourceTree = ""; }; 49 | BACA4A62C16392D75A37BB3B /* Pods-PTCardTabBar_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PTCardTabBar_Tests.debug.xcconfig"; path = "Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests.debug.xcconfig"; sourceTree = ""; }; 50 | CFAE33732328F94000947F2D /* PTTabBarViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PTTabBarViewController.swift; sourceTree = ""; }; 51 | CFAE33752328F97400947F2D /* LabelViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LabelViewController.swift; sourceTree = ""; }; 52 | DFB877959B89E2CEFF3FE297 /* Pods-PTCardTabBar_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PTCardTabBar_Tests.release.xcconfig"; path = "Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests.release.xcconfig"; sourceTree = ""; }; 53 | EDAAF98C472FCC6A21B32803 /* Pods-PTCardTabBar_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PTCardTabBar_Example.release.xcconfig"; path = "Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example.release.xcconfig"; sourceTree = ""; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | 1843CF7BCAD67C27C3E40361 /* Pods_PTCardTabBar_Example.framework in Frameworks */, 62 | ); 63 | runOnlyForDeploymentPostprocessing = 0; 64 | }; 65 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 66 | isa = PBXFrameworksBuildPhase; 67 | buildActionMask = 2147483647; 68 | files = ( 69 | 9BA6F796206F6E12D5EC22C8 /* Pods_PTCardTabBar_Tests.framework in Frameworks */, 70 | ); 71 | runOnlyForDeploymentPostprocessing = 0; 72 | }; 73 | /* End PBXFrameworksBuildPhase section */ 74 | 75 | /* Begin PBXGroup section */ 76 | 335C6286D53A9F9DEF13CBCF /* Frameworks */ = { 77 | isa = PBXGroup; 78 | children = ( 79 | 3AB4BAF49DBFD06E90022F1F /* Pods_PTCardTabBar_Example.framework */, 80 | 8E3F79FF6A2E8390CA6D7C56 /* Pods_PTCardTabBar_Tests.framework */, 81 | ); 82 | name = Frameworks; 83 | sourceTree = ""; 84 | }; 85 | 47B84B8F6260644CF07CC081 /* Pods */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | AEF70F7EC8AE51FC12FF12B1 /* Pods-PTCardTabBar_Example.debug.xcconfig */, 89 | EDAAF98C472FCC6A21B32803 /* Pods-PTCardTabBar_Example.release.xcconfig */, 90 | BACA4A62C16392D75A37BB3B /* Pods-PTCardTabBar_Tests.debug.xcconfig */, 91 | DFB877959B89E2CEFF3FE297 /* Pods-PTCardTabBar_Tests.release.xcconfig */, 92 | ); 93 | path = Pods; 94 | sourceTree = ""; 95 | }; 96 | 607FACC71AFB9204008FA782 = { 97 | isa = PBXGroup; 98 | children = ( 99 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 100 | 607FACD21AFB9204008FA782 /* Example for PTCardTabBar */, 101 | 607FACE81AFB9204008FA782 /* Tests */, 102 | 607FACD11AFB9204008FA782 /* Products */, 103 | 47B84B8F6260644CF07CC081 /* Pods */, 104 | 335C6286D53A9F9DEF13CBCF /* Frameworks */, 105 | ); 106 | sourceTree = ""; 107 | }; 108 | 607FACD11AFB9204008FA782 /* Products */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 607FACD01AFB9204008FA782 /* PTCardTabBar_Example.app */, 112 | 607FACE51AFB9204008FA782 /* PTCardTabBar_Tests.xctest */, 113 | ); 114 | name = Products; 115 | sourceTree = ""; 116 | }; 117 | 607FACD21AFB9204008FA782 /* Example for PTCardTabBar */ = { 118 | isa = PBXGroup; 119 | children = ( 120 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 121 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 122 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 123 | CFAE33722328F7E600947F2D /* From Code */, 124 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 125 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 126 | 607FACD31AFB9204008FA782 /* Supporting Files */, 127 | ); 128 | name = "Example for PTCardTabBar"; 129 | path = PTCardTabBar; 130 | sourceTree = ""; 131 | }; 132 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 607FACD41AFB9204008FA782 /* Info.plist */, 136 | ); 137 | name = "Supporting Files"; 138 | sourceTree = ""; 139 | }; 140 | 607FACE81AFB9204008FA782 /* Tests */ = { 141 | isa = PBXGroup; 142 | children = ( 143 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 144 | 607FACE91AFB9204008FA782 /* Supporting Files */, 145 | ); 146 | path = Tests; 147 | sourceTree = ""; 148 | }; 149 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 150 | isa = PBXGroup; 151 | children = ( 152 | 607FACEA1AFB9204008FA782 /* Info.plist */, 153 | ); 154 | name = "Supporting Files"; 155 | sourceTree = ""; 156 | }; 157 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 2EDEA0FBD37C6D27D356BFE6 /* PTCardTabBar.podspec */, 161 | 1E571FB7D160D56AC20C8BD1 /* README.md */, 162 | 266630BCF85E91D05F4F5CB4 /* LICENSE */, 163 | ); 164 | name = "Podspec Metadata"; 165 | sourceTree = ""; 166 | }; 167 | CFAE33722328F7E600947F2D /* From Code */ = { 168 | isa = PBXGroup; 169 | children = ( 170 | CFAE33732328F94000947F2D /* PTTabBarViewController.swift */, 171 | CFAE33752328F97400947F2D /* LabelViewController.swift */, 172 | ); 173 | name = "From Code"; 174 | sourceTree = ""; 175 | }; 176 | /* End PBXGroup section */ 177 | 178 | /* Begin PBXNativeTarget section */ 179 | 607FACCF1AFB9204008FA782 /* PTCardTabBar_Example */ = { 180 | isa = PBXNativeTarget; 181 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PTCardTabBar_Example" */; 182 | buildPhases = ( 183 | C30F077ADE1379A6E8CA2596 /* [CP] Check Pods Manifest.lock */, 184 | 607FACCC1AFB9204008FA782 /* Sources */, 185 | 607FACCD1AFB9204008FA782 /* Frameworks */, 186 | 607FACCE1AFB9204008FA782 /* Resources */, 187 | B8FCDA979095DA572913036D /* [CP] Embed Pods Frameworks */, 188 | ); 189 | buildRules = ( 190 | ); 191 | dependencies = ( 192 | ); 193 | name = PTCardTabBar_Example; 194 | productName = PTCardTabBar; 195 | productReference = 607FACD01AFB9204008FA782 /* PTCardTabBar_Example.app */; 196 | productType = "com.apple.product-type.application"; 197 | }; 198 | 607FACE41AFB9204008FA782 /* PTCardTabBar_Tests */ = { 199 | isa = PBXNativeTarget; 200 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PTCardTabBar_Tests" */; 201 | buildPhases = ( 202 | 4B51AF64B9B509900BC98E34 /* [CP] Check Pods Manifest.lock */, 203 | 607FACE11AFB9204008FA782 /* Sources */, 204 | 607FACE21AFB9204008FA782 /* Frameworks */, 205 | 607FACE31AFB9204008FA782 /* Resources */, 206 | ); 207 | buildRules = ( 208 | ); 209 | dependencies = ( 210 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 211 | ); 212 | name = PTCardTabBar_Tests; 213 | productName = Tests; 214 | productReference = 607FACE51AFB9204008FA782 /* PTCardTabBar_Tests.xctest */; 215 | productType = "com.apple.product-type.bundle.unit-test"; 216 | }; 217 | /* End PBXNativeTarget section */ 218 | 219 | /* Begin PBXProject section */ 220 | 607FACC81AFB9204008FA782 /* Project object */ = { 221 | isa = PBXProject; 222 | attributes = { 223 | LastSwiftUpdateCheck = 0830; 224 | LastUpgradeCheck = 0830; 225 | ORGANIZATIONNAME = CocoaPods; 226 | TargetAttributes = { 227 | 607FACCF1AFB9204008FA782 = { 228 | CreatedOnToolsVersion = 6.3.1; 229 | LastSwiftMigration = 0900; 230 | }; 231 | 607FACE41AFB9204008FA782 = { 232 | CreatedOnToolsVersion = 6.3.1; 233 | LastSwiftMigration = 0900; 234 | TestTargetID = 607FACCF1AFB9204008FA782; 235 | }; 236 | }; 237 | }; 238 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "PTCardTabBar" */; 239 | compatibilityVersion = "Xcode 3.2"; 240 | developmentRegion = English; 241 | hasScannedForEncodings = 0; 242 | knownRegions = ( 243 | English, 244 | en, 245 | Base, 246 | ); 247 | mainGroup = 607FACC71AFB9204008FA782; 248 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 249 | projectDirPath = ""; 250 | projectRoot = ""; 251 | targets = ( 252 | 607FACCF1AFB9204008FA782 /* PTCardTabBar_Example */, 253 | 607FACE41AFB9204008FA782 /* PTCardTabBar_Tests */, 254 | ); 255 | }; 256 | /* End PBXProject section */ 257 | 258 | /* Begin PBXResourcesBuildPhase section */ 259 | 607FACCE1AFB9204008FA782 /* Resources */ = { 260 | isa = PBXResourcesBuildPhase; 261 | buildActionMask = 2147483647; 262 | files = ( 263 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 264 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 265 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 266 | ); 267 | runOnlyForDeploymentPostprocessing = 0; 268 | }; 269 | 607FACE31AFB9204008FA782 /* Resources */ = { 270 | isa = PBXResourcesBuildPhase; 271 | buildActionMask = 2147483647; 272 | files = ( 273 | ); 274 | runOnlyForDeploymentPostprocessing = 0; 275 | }; 276 | /* End PBXResourcesBuildPhase section */ 277 | 278 | /* Begin PBXShellScriptBuildPhase section */ 279 | 4B51AF64B9B509900BC98E34 /* [CP] Check Pods Manifest.lock */ = { 280 | isa = PBXShellScriptBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | ); 284 | inputFileListPaths = ( 285 | ); 286 | inputPaths = ( 287 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 288 | "${PODS_ROOT}/Manifest.lock", 289 | ); 290 | name = "[CP] Check Pods Manifest.lock"; 291 | outputFileListPaths = ( 292 | ); 293 | outputPaths = ( 294 | "$(DERIVED_FILE_DIR)/Pods-PTCardTabBar_Tests-checkManifestLockResult.txt", 295 | ); 296 | runOnlyForDeploymentPostprocessing = 0; 297 | shellPath = /bin/sh; 298 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 299 | showEnvVarsInLog = 0; 300 | }; 301 | B8FCDA979095DA572913036D /* [CP] Embed Pods Frameworks */ = { 302 | isa = PBXShellScriptBuildPhase; 303 | buildActionMask = 2147483647; 304 | files = ( 305 | ); 306 | inputPaths = ( 307 | "${PODS_ROOT}/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-frameworks.sh", 308 | "${BUILT_PRODUCTS_DIR}/PTCardTabBar/PTCardTabBar.framework", 309 | ); 310 | name = "[CP] Embed Pods Frameworks"; 311 | outputPaths = ( 312 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PTCardTabBar.framework", 313 | ); 314 | runOnlyForDeploymentPostprocessing = 0; 315 | shellPath = /bin/sh; 316 | shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-frameworks.sh\"\n"; 317 | showEnvVarsInLog = 0; 318 | }; 319 | C30F077ADE1379A6E8CA2596 /* [CP] Check Pods Manifest.lock */ = { 320 | isa = PBXShellScriptBuildPhase; 321 | buildActionMask = 2147483647; 322 | files = ( 323 | ); 324 | inputFileListPaths = ( 325 | ); 326 | inputPaths = ( 327 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 328 | "${PODS_ROOT}/Manifest.lock", 329 | ); 330 | name = "[CP] Check Pods Manifest.lock"; 331 | outputFileListPaths = ( 332 | ); 333 | outputPaths = ( 334 | "$(DERIVED_FILE_DIR)/Pods-PTCardTabBar_Example-checkManifestLockResult.txt", 335 | ); 336 | runOnlyForDeploymentPostprocessing = 0; 337 | shellPath = /bin/sh; 338 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 339 | showEnvVarsInLog = 0; 340 | }; 341 | /* End PBXShellScriptBuildPhase section */ 342 | 343 | /* Begin PBXSourcesBuildPhase section */ 344 | 607FACCC1AFB9204008FA782 /* Sources */ = { 345 | isa = PBXSourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 349 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 350 | CFAE33742328F94000947F2D /* PTTabBarViewController.swift in Sources */, 351 | CFAE33762328F97400947F2D /* LabelViewController.swift in Sources */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | 607FACE11AFB9204008FA782 /* Sources */ = { 356 | isa = PBXSourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | /* End PBXSourcesBuildPhase section */ 364 | 365 | /* Begin PBXTargetDependency section */ 366 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 367 | isa = PBXTargetDependency; 368 | target = 607FACCF1AFB9204008FA782 /* PTCardTabBar_Example */; 369 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 370 | }; 371 | /* End PBXTargetDependency section */ 372 | 373 | /* Begin PBXVariantGroup section */ 374 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 375 | isa = PBXVariantGroup; 376 | children = ( 377 | 607FACDA1AFB9204008FA782 /* Base */, 378 | ); 379 | name = Main.storyboard; 380 | sourceTree = ""; 381 | }; 382 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 383 | isa = PBXVariantGroup; 384 | children = ( 385 | 607FACDF1AFB9204008FA782 /* Base */, 386 | ); 387 | name = LaunchScreen.xib; 388 | sourceTree = ""; 389 | }; 390 | /* End PBXVariantGroup section */ 391 | 392 | /* Begin XCBuildConfiguration section */ 393 | 607FACED1AFB9204008FA782 /* Debug */ = { 394 | isa = XCBuildConfiguration; 395 | buildSettings = { 396 | ALWAYS_SEARCH_USER_PATHS = NO; 397 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 398 | CLANG_CXX_LIBRARY = "libc++"; 399 | CLANG_ENABLE_MODULES = YES; 400 | CLANG_ENABLE_OBJC_ARC = YES; 401 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 402 | CLANG_WARN_BOOL_CONVERSION = YES; 403 | CLANG_WARN_COMMA = YES; 404 | CLANG_WARN_CONSTANT_CONVERSION = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 406 | CLANG_WARN_EMPTY_BODY = YES; 407 | CLANG_WARN_ENUM_CONVERSION = YES; 408 | CLANG_WARN_INFINITE_RECURSION = YES; 409 | CLANG_WARN_INT_CONVERSION = YES; 410 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 411 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 412 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 413 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 414 | CLANG_WARN_STRICT_PROTOTYPES = YES; 415 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 416 | CLANG_WARN_UNREACHABLE_CODE = YES; 417 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 418 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 419 | COPY_PHASE_STRIP = NO; 420 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 421 | ENABLE_STRICT_OBJC_MSGSEND = YES; 422 | ENABLE_TESTABILITY = YES; 423 | GCC_C_LANGUAGE_STANDARD = gnu99; 424 | GCC_DYNAMIC_NO_PIC = NO; 425 | GCC_NO_COMMON_BLOCKS = YES; 426 | GCC_OPTIMIZATION_LEVEL = 0; 427 | GCC_PREPROCESSOR_DEFINITIONS = ( 428 | "DEBUG=1", 429 | "$(inherited)", 430 | ); 431 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 432 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 433 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 434 | GCC_WARN_UNDECLARED_SELECTOR = YES; 435 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 436 | GCC_WARN_UNUSED_FUNCTION = YES; 437 | GCC_WARN_UNUSED_VARIABLE = YES; 438 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 439 | MTL_ENABLE_DEBUG_INFO = YES; 440 | ONLY_ACTIVE_ARCH = YES; 441 | SDKROOT = iphoneos; 442 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 443 | }; 444 | name = Debug; 445 | }; 446 | 607FACEE1AFB9204008FA782 /* Release */ = { 447 | isa = XCBuildConfiguration; 448 | buildSettings = { 449 | ALWAYS_SEARCH_USER_PATHS = NO; 450 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 451 | CLANG_CXX_LIBRARY = "libc++"; 452 | CLANG_ENABLE_MODULES = YES; 453 | CLANG_ENABLE_OBJC_ARC = YES; 454 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 455 | CLANG_WARN_BOOL_CONVERSION = YES; 456 | CLANG_WARN_COMMA = YES; 457 | CLANG_WARN_CONSTANT_CONVERSION = YES; 458 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 459 | CLANG_WARN_EMPTY_BODY = YES; 460 | CLANG_WARN_ENUM_CONVERSION = YES; 461 | CLANG_WARN_INFINITE_RECURSION = YES; 462 | CLANG_WARN_INT_CONVERSION = YES; 463 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 464 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 465 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 466 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 467 | CLANG_WARN_STRICT_PROTOTYPES = YES; 468 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 469 | CLANG_WARN_UNREACHABLE_CODE = YES; 470 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 471 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 472 | COPY_PHASE_STRIP = NO; 473 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 474 | ENABLE_NS_ASSERTIONS = NO; 475 | ENABLE_STRICT_OBJC_MSGSEND = YES; 476 | GCC_C_LANGUAGE_STANDARD = gnu99; 477 | GCC_NO_COMMON_BLOCKS = YES; 478 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 479 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 480 | GCC_WARN_UNDECLARED_SELECTOR = YES; 481 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 482 | GCC_WARN_UNUSED_FUNCTION = YES; 483 | GCC_WARN_UNUSED_VARIABLE = YES; 484 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 485 | MTL_ENABLE_DEBUG_INFO = NO; 486 | SDKROOT = iphoneos; 487 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 488 | VALIDATE_PRODUCT = YES; 489 | }; 490 | name = Release; 491 | }; 492 | 607FACF01AFB9204008FA782 /* Debug */ = { 493 | isa = XCBuildConfiguration; 494 | baseConfigurationReference = AEF70F7EC8AE51FC12FF12B1 /* Pods-PTCardTabBar_Example.debug.xcconfig */; 495 | buildSettings = { 496 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 497 | INFOPLIST_FILE = PTCardTabBar/Info.plist; 498 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 499 | MODULE_NAME = ExampleApp; 500 | PRODUCT_BUNDLE_IDENTIFIER = "me.hussc.PTCardTabBar-Example"; 501 | PRODUCT_NAME = "$(TARGET_NAME)"; 502 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 503 | SWIFT_VERSION = 5.0; 504 | }; 505 | name = Debug; 506 | }; 507 | 607FACF11AFB9204008FA782 /* Release */ = { 508 | isa = XCBuildConfiguration; 509 | baseConfigurationReference = EDAAF98C472FCC6A21B32803 /* Pods-PTCardTabBar_Example.release.xcconfig */; 510 | buildSettings = { 511 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 512 | INFOPLIST_FILE = PTCardTabBar/Info.plist; 513 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 514 | MODULE_NAME = ExampleApp; 515 | PRODUCT_BUNDLE_IDENTIFIER = "me.hussc.PTCardTabBar-Example"; 516 | PRODUCT_NAME = "$(TARGET_NAME)"; 517 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 518 | SWIFT_VERSION = 5.0; 519 | }; 520 | name = Release; 521 | }; 522 | 607FACF31AFB9204008FA782 /* Debug */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = BACA4A62C16392D75A37BB3B /* Pods-PTCardTabBar_Tests.debug.xcconfig */; 525 | buildSettings = { 526 | FRAMEWORK_SEARCH_PATHS = ( 527 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 528 | "$(inherited)", 529 | ); 530 | GCC_PREPROCESSOR_DEFINITIONS = ( 531 | "DEBUG=1", 532 | "$(inherited)", 533 | ); 534 | INFOPLIST_FILE = Tests/Info.plist; 535 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 536 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 537 | PRODUCT_NAME = "$(TARGET_NAME)"; 538 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 539 | SWIFT_VERSION = 4.0; 540 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PTCardTabBar_Example.app/PTCardTabBar_Example"; 541 | }; 542 | name = Debug; 543 | }; 544 | 607FACF41AFB9204008FA782 /* Release */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = DFB877959B89E2CEFF3FE297 /* Pods-PTCardTabBar_Tests.release.xcconfig */; 547 | buildSettings = { 548 | FRAMEWORK_SEARCH_PATHS = ( 549 | "$(PLATFORM_DIR)/Developer/Library/Frameworks", 550 | "$(inherited)", 551 | ); 552 | INFOPLIST_FILE = Tests/Info.plist; 553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 554 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 555 | PRODUCT_NAME = "$(TARGET_NAME)"; 556 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 557 | SWIFT_VERSION = 4.0; 558 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PTCardTabBar_Example.app/PTCardTabBar_Example"; 559 | }; 560 | name = Release; 561 | }; 562 | /* End XCBuildConfiguration section */ 563 | 564 | /* Begin XCConfigurationList section */ 565 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "PTCardTabBar" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 607FACED1AFB9204008FA782 /* Debug */, 569 | 607FACEE1AFB9204008FA782 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PTCardTabBar_Example" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 607FACF01AFB9204008FA782 /* Debug */, 578 | 607FACF11AFB9204008FA782 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PTCardTabBar_Tests" */ = { 584 | isa = XCConfigurationList; 585 | buildConfigurations = ( 586 | 607FACF31AFB9204008FA782 /* Debug */, 587 | 607FACF41AFB9204008FA782 /* Release */, 588 | ); 589 | defaultConfigurationIsVisible = 0; 590 | defaultConfigurationName = Release; 591 | }; 592 | /* End XCConfigurationList section */ 593 | }; 594 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 595 | } 596 | -------------------------------------------------------------------------------- /Example/PTCardTabBar.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/PTCardTabBar.xcodeproj/xcshareddata/xcschemes/PTCardTabBar-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/PTCardTabBar.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/PTCardTabBar.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/PTCardTabBar/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PTCardTabBar 4 | // 5 | // Created by hussc on 09/03/2019. 6 | // Copyright (c) 2019 hussc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 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 | func applicationWillResignActive(_ application: UIApplication) { 22 | // 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. 23 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 24 | } 25 | 26 | func applicationDidEnterBackground(_ application: UIApplication) { 27 | // 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. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | func applicationWillEnterForeground(_ application: UIApplication) { 32 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 33 | } 34 | 35 | func applicationDidBecomeActive(_ application: UIApplication) { 36 | // 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. 37 | } 38 | 39 | func applicationWillTerminate(_ application: UIApplication) { 40 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 41 | } 42 | 43 | 44 | } 45 | 46 | -------------------------------------------------------------------------------- /Example/PTCardTabBar/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/PTCardTabBar/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 82 | 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 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | -------------------------------------------------------------------------------- /Example/PTCardTabBar/Images.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" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/PTCardTabBar/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/PTCardTabBar/Images.xcassets/calendar.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "calendar.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /Example/PTCardTabBar/Images.xcassets/calendar.imageset/calendar.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hussc/PTCardTabBar/2116466c2320a26afef86179917259047e818399/Example/PTCardTabBar/Images.xcassets/calendar.imageset/calendar.pdf -------------------------------------------------------------------------------- /Example/PTCardTabBar/Images.xcassets/home.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "home2.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template" 14 | } 15 | } -------------------------------------------------------------------------------- /Example/PTCardTabBar/Images.xcassets/home.imageset/home2.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hussc/PTCardTabBar/2116466c2320a26afef86179917259047e818399/Example/PTCardTabBar/Images.xcassets/home.imageset/home2.pdf -------------------------------------------------------------------------------- /Example/PTCardTabBar/Images.xcassets/more.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "menu.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | }, 12 | "properties" : { 13 | "template-rendering-intent" : "template", 14 | "preserves-vector-representation" : true 15 | } 16 | } -------------------------------------------------------------------------------- /Example/PTCardTabBar/Images.xcassets/more.imageset/menu.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hussc/PTCardTabBar/2116466c2320a26afef86179917259047e818399/Example/PTCardTabBar/Images.xcassets/more.imageset/menu.pdf -------------------------------------------------------------------------------- /Example/PTCardTabBar/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/PTCardTabBar/LabelViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LabelViewController.swift 3 | // PTCardTabBar_Example 4 | // 5 | // Created by Selwan IOS on 9/11/19. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class LabelViewController: UIViewController { 12 | 13 | lazy var label: UILabel = { 14 | let label = UILabel() 15 | label.translatesAutoresizingMaskIntoConstraints = false 16 | label.font = UIFont.preferredFont(forTextStyle: .title1) 17 | label.textAlignment = .center 18 | 19 | return label 20 | }() 21 | 22 | lazy var doneButton: UIButton = { 23 | let button = UIButton() 24 | button.setTitle("Done", for: .normal) 25 | button.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .medium) 26 | button.translatesAutoresizingMaskIntoConstraints = false 27 | button.setTitleColor(UIColor.blue, for: .normal) 28 | return button 29 | }() 30 | 31 | @IBInspectable var labelTitle: String? 32 | 33 | init(title: String?){ 34 | super.init(nibName: nil, bundle: nil) 35 | self.labelTitle = title 36 | } 37 | 38 | required init?(coder aDecoder: NSCoder) { 39 | super.init(coder: aDecoder) 40 | } 41 | 42 | override func viewDidLoad() { 43 | super.viewDidLoad() 44 | 45 | 46 | view.backgroundColor = UIColor(white: 0.98, alpha: 1) 47 | 48 | // Do any additional setup after loading the view. 49 | view.addSubview(label) 50 | label.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true 51 | label.centerYAnchor.constraint(equalTo: view.centerYAnchor).isActive = true 52 | if #available(iOS 11.0, *) { 53 | label.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor, constant: -5).isActive = true 54 | } 55 | label.backgroundColor = .blue 56 | 57 | view.addSubview(doneButton) 58 | if #available(iOS 11.0, *) { 59 | doneButton.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor, constant: 20).isActive = true 60 | doneButton.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 25).isActive = true 61 | } 62 | 63 | doneButton.addTarget(self, action: #selector(doneButtonTapped), for: .touchUpInside) 64 | 65 | 66 | self.label.text = labelTitle 67 | } 68 | 69 | @objc func doneButtonTapped(){ 70 | self.dismiss(animated: true, completion: nil) 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /Example/PTCardTabBar/PTTabBarViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PTTabBarViewController.swift 3 | // PTCardTabBar_Example 4 | // 5 | // Created by Selwan IOS on 9/11/19. 6 | // Copyright © 2019 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import PTCardTabBar 11 | 12 | class PTTabBarViewController: PTCardTabBarController { 13 | 14 | override func viewDidLoad() { 15 | let vc1 = LabelViewController(title: "Home") 16 | let vc2 = LabelViewController(title: "Calendar") 17 | let vc3 = LabelViewController(title: "More") 18 | 19 | vc1.tabBarItem = UITabBarItem(title: "", image: UIImage(named: "home"), tag: 1) 20 | vc2.tabBarItem = UITabBarItem(title: "", image: UIImage(named: "calendar"), tag: 2) 21 | vc3.tabBarItem = UITabBarItem(title: "", image: UIImage(named: "more"), tag: 3) 22 | 23 | self.viewControllers = [vc1, vc2, vc3] 24 | 25 | super.viewDidLoad() 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Example/PTCardTabBar/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PTCardTabBar 4 | // 5 | // Created by hussc on 09/03/2019. 6 | // Copyright (c) 2019 hussc. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import PTCardTabBar 11 | 12 | class ViewController: UIViewController { 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | // Do any additional setup after loading the view, typically from a nib. 17 | } 18 | 19 | override func didReceiveMemoryWarning() { 20 | super.didReceiveMemoryWarning() 21 | // Dispose of any resources that can be recreated. 22 | } 23 | 24 | 25 | @IBAction func storyboardButtonTapped(_ sender: Any) { 26 | let tabBarController = self.storyboard?.instantiateViewController(withIdentifier: "CardTabBarController") as! PTCardTabBarController 27 | present(tabBarController, animated: true, completion: nil) 28 | } 29 | 30 | 31 | @IBAction func codeButtonTapped(_ sender: Any) { 32 | let tabBarController = PTTabBarViewController() 33 | present(tabBarController, animated: true, completion: nil) 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'PTCardTabBar_Example' do 4 | pod 'PTCardTabBar', :path => '../' 5 | 6 | target 'PTCardTabBar_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - PTCardTabBar (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - PTCardTabBar (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | PTCardTabBar: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | PTCardTabBar: fbe3b27ab72c41849a288df4bc6d07805e35c541 13 | 14 | PODFILE CHECKSUM: 17c410a6b090f53ecdacedbd8462ae6c35629332 15 | 16 | COCOAPODS: 1.7.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/PTCardTabBar.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "PTCardTabBar", 3 | "version": "0.1.0", 4 | "summary": "A short description of PTCardTabBar.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/hussc/PTCardTabBar", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "hussc": "hus.sc@aol.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/hussc/PTCardTabBar.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "PTCardTabBar/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - PTCardTabBar (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - PTCardTabBar (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | PTCardTabBar: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | PTCardTabBar: fbe3b27ab72c41849a288df4bc6d07805e35c541 13 | 14 | PODFILE CHECKSUM: 17c410a6b090f53ecdacedbd8462ae6c35629332 15 | 16 | COCOAPODS: 1.7.4 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1187523BE5C7537FCE4BC081399A943C /* Pods-PTCardTabBar_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = FC484796E01263A264FA57BE365E9DC9 /* Pods-PTCardTabBar_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 267CE1D6EA1F2D398C6B1F137B11BDCA /* PTCardTabBar-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = E78CB4FAA12756D8622EE9A93B9CE6D5 /* PTCardTabBar-dummy.m */; }; 12 | 4752965534AE4986DB5850695F4CCA3A /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 13 | 77AE3500348D6E5D9B5EA4A11A8EC8DD /* Pods-PTCardTabBar_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 7A8A54BD3E1EA1DA17F999B7530AD02D /* Pods-PTCardTabBar_Tests-dummy.m */; }; 14 | 784637BDB5248E88C863F1D59204D90A /* Pods-PTCardTabBar_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F98361D600B1BE67E0B9FF512652C9F1 /* Pods-PTCardTabBar_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 7E2144ACD227AE084E96F2BDE3A48031 /* Pods-PTCardTabBar_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B0E7E4B9687FF41FC3808969FCEA99FB /* Pods-PTCardTabBar_Example-dummy.m */; }; 16 | C16A20263CBDFFF9A06E87485F5241BD /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 17 | CD180E7608F2C0467084A66E1D7B5B29 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */; }; 18 | E0FC5560EBE7FD35EB9B9D69B45325B4 /* PTCardTabBar-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C68C0E24A58805CD531CA39458EF32CF /* PTCardTabBar-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | E44CAF17232229B4001B92CA /* CGPoint+Distance.swift in Sources */ = {isa = PBXBuildFile; fileRef = E44CAF0E232229B3001B92CA /* CGPoint+Distance.swift */; }; 20 | E44CAF19232229B4001B92CA /* PTCardTabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = E44CAF10232229B3001B92CA /* PTCardTabBar.swift */; }; 21 | E44CAF1A232229B4001B92CA /* PTIndicatorView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E44CAF11232229B3001B92CA /* PTIndicatorView.swift */; }; 22 | E44CAF1B232229B4001B92CA /* UIColor+Additions.swift in Sources */ = {isa = PBXBuildFile; fileRef = E44CAF12232229B3001B92CA /* UIColor+Additions.swift */; }; 23 | E44CAF1C232229B4001B92CA /* UIView+AutoLayout.swift in Sources */ = {isa = PBXBuildFile; fileRef = E44CAF13232229B3001B92CA /* UIView+AutoLayout.swift */; }; 24 | E44CAF1D232229B4001B92CA /* PTCardTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E44CAF14232229B3001B92CA /* PTCardTabBarController.swift */; }; 25 | E44CAF1E232229B4001B92CA /* PTBarButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = E44CAF16232229B3001B92CA /* PTBarButton.swift */; }; 26 | /* End PBXBuildFile section */ 27 | 28 | /* Begin PBXContainerItemProxy section */ 29 | 1724ED3E7B5DD79DB5B2A69BEBB3F205 /* PBXContainerItemProxy */ = { 30 | isa = PBXContainerItemProxy; 31 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 32 | proxyType = 1; 33 | remoteGlobalIDString = 91F88D60B0911027E7F5CADA77FC54E0; 34 | remoteInfo = "Pods-PTCardTabBar_Example"; 35 | }; 36 | 4E1C85A6436DD258242C4EF43B641396 /* PBXContainerItemProxy */ = { 37 | isa = PBXContainerItemProxy; 38 | containerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */; 39 | proxyType = 1; 40 | remoteGlobalIDString = 9B5E34DEC86133C45795287F399C33E3; 41 | remoteInfo = PTCardTabBar; 42 | }; 43 | /* End PBXContainerItemProxy section */ 44 | 45 | /* Begin PBXFileReference section */ 46 | 06FC19B36AEB365FDCC33CC4117342D3 /* Pods-PTCardTabBar_Tests-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-PTCardTabBar_Tests-Info.plist"; sourceTree = ""; }; 47 | 0A378A32E27AB64BE20A72D69582A48C /* Pods-PTCardTabBar_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-PTCardTabBar_Tests-acknowledgements.plist"; sourceTree = ""; }; 48 | 10B77A4007C54832C0AF3B6DB8ED2BDF /* Pods-PTCardTabBar_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PTCardTabBar_Tests.debug.xcconfig"; sourceTree = ""; }; 49 | 20DF5BB9DD7D165653098394F7226DB5 /* Pods-PTCardTabBar_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-PTCardTabBar_Example-frameworks.sh"; sourceTree = ""; }; 50 | 26AAF8FB8FCEDBF9A3756E9FEAB3BB53 /* PTCardTabBar.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = PTCardTabBar.xcconfig; sourceTree = ""; }; 51 | 2E9D1C66341ABD5EDAA46F273A722216 /* Pods-PTCardTabBar_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-PTCardTabBar_Example.modulemap"; sourceTree = ""; }; 52 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.2.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 53 | 38DC0F153703CA4F30AF348E6E624CB9 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 54 | 490F1351FF718C46AC197845B56EB82C /* PTCardTabBar.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = PTCardTabBar.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 55 | 4C7A69E7FFD260AEDAA59F12E8744492 /* Pods-PTCardTabBar_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-PTCardTabBar_Example-acknowledgements.plist"; sourceTree = ""; }; 56 | 5B6212971CB2D3649C56144AC0DE07E6 /* PTCardTabBar-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "PTCardTabBar-Info.plist"; sourceTree = ""; }; 57 | 5D4122F3E9C74634FF175BBECFE747C7 /* Pods-PTCardTabBar_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PTCardTabBar_Example.debug.xcconfig"; sourceTree = ""; }; 58 | 603A4AE657E03147EBBD67C0BD978CC2 /* PTCardTabBar-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "PTCardTabBar-prefix.pch"; sourceTree = ""; }; 59 | 6E8427D0832523B6F60622DA0F0FF3EF /* PTCardTabBar.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = PTCardTabBar.modulemap; sourceTree = ""; }; 60 | 6F00F28515B1AD16BA3F982C5C8B7F3F /* Pods-PTCardTabBar_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-PTCardTabBar_Tests.modulemap"; sourceTree = ""; }; 61 | 7A8A54BD3E1EA1DA17F999B7530AD02D /* Pods-PTCardTabBar_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-PTCardTabBar_Tests-dummy.m"; sourceTree = ""; }; 62 | 907AC4A3CCBB4B3BA7474701295D1FA0 /* PTCardTabBar.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; path = PTCardTabBar.podspec; sourceTree = ""; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 63 | 97827AA345346D98ADC260258DA5FC15 /* Pods-PTCardTabBar_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-PTCardTabBar_Tests-acknowledgements.markdown"; sourceTree = ""; }; 64 | 98209FAA0E0A944990E7476E039DD113 /* Pods_PTCardTabBar_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PTCardTabBar_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 66 | A95D4BFCF36F17657EBBBCDC46FE8779 /* Pods-PTCardTabBar_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PTCardTabBar_Example.release.xcconfig"; sourceTree = ""; }; 67 | B0E7E4B9687FF41FC3808969FCEA99FB /* Pods-PTCardTabBar_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-PTCardTabBar_Example-dummy.m"; sourceTree = ""; }; 68 | B5DEE87D924F36525E94DB922288B591 /* Pods-PTCardTabBar_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-PTCardTabBar_Tests.release.xcconfig"; sourceTree = ""; }; 69 | C68C0E24A58805CD531CA39458EF32CF /* PTCardTabBar-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "PTCardTabBar-umbrella.h"; sourceTree = ""; }; 70 | DBB066379C7B0A5196DBBE4A766C13F6 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 71 | DC682BD3A7A5CCF40B01D8DD2BE67C37 /* Pods-PTCardTabBar_Example-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-PTCardTabBar_Example-Info.plist"; sourceTree = ""; }; 72 | E44CAF0E232229B3001B92CA /* CGPoint+Distance.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "CGPoint+Distance.swift"; sourceTree = ""; }; 73 | E44CAF10232229B3001B92CA /* PTCardTabBar.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PTCardTabBar.swift; path = PTCardTabBar/Classes/PTCardTabBar.swift; sourceTree = ""; }; 74 | E44CAF11232229B3001B92CA /* PTIndicatorView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PTIndicatorView.swift; path = PTCardTabBar/Classes/PTIndicatorView.swift; sourceTree = ""; }; 75 | E44CAF12232229B3001B92CA /* UIColor+Additions.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIColor+Additions.swift"; sourceTree = ""; }; 76 | E44CAF13232229B3001B92CA /* UIView+AutoLayout.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "UIView+AutoLayout.swift"; sourceTree = ""; }; 77 | E44CAF14232229B3001B92CA /* PTCardTabBarController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PTCardTabBarController.swift; path = PTCardTabBar/Classes/PTCardTabBarController.swift; sourceTree = ""; }; 78 | E44CAF16232229B3001B92CA /* PTBarButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = PTBarButton.swift; path = PTCardTabBar/Classes/PTBarButton.swift; sourceTree = ""; }; 79 | E78CB4FAA12756D8622EE9A93B9CE6D5 /* PTCardTabBar-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "PTCardTabBar-dummy.m"; sourceTree = ""; }; 80 | F98361D600B1BE67E0B9FF512652C9F1 /* Pods-PTCardTabBar_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-PTCardTabBar_Tests-umbrella.h"; sourceTree = ""; }; 81 | FB430AA8C54A8D3B06C9DF11DFBAB2B3 /* Pods_PTCardTabBar_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_PTCardTabBar_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 82 | FC484796E01263A264FA57BE365E9DC9 /* Pods-PTCardTabBar_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-PTCardTabBar_Example-umbrella.h"; sourceTree = ""; }; 83 | FEECC3F38014CBD7E0275E29815B2D6E /* Pods-PTCardTabBar_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-PTCardTabBar_Example-acknowledgements.markdown"; sourceTree = ""; }; 84 | /* End PBXFileReference section */ 85 | 86 | /* Begin PBXFrameworksBuildPhase section */ 87 | 2BD8C8D2E2A79E92732EA01E8128ADD0 /* Frameworks */ = { 88 | isa = PBXFrameworksBuildPhase; 89 | buildActionMask = 2147483647; 90 | files = ( 91 | CD180E7608F2C0467084A66E1D7B5B29 /* Foundation.framework in Frameworks */, 92 | ); 93 | runOnlyForDeploymentPostprocessing = 0; 94 | }; 95 | 9040FAD1EBFCEEBABCF2418D726FDEDE /* Frameworks */ = { 96 | isa = PBXFrameworksBuildPhase; 97 | buildActionMask = 2147483647; 98 | files = ( 99 | 4752965534AE4986DB5850695F4CCA3A /* Foundation.framework in Frameworks */, 100 | ); 101 | runOnlyForDeploymentPostprocessing = 0; 102 | }; 103 | 97DA7738FA96E95230B765B81834EA4C /* Frameworks */ = { 104 | isa = PBXFrameworksBuildPhase; 105 | buildActionMask = 2147483647; 106 | files = ( 107 | C16A20263CBDFFF9A06E87485F5241BD /* Foundation.framework in Frameworks */, 108 | ); 109 | runOnlyForDeploymentPostprocessing = 0; 110 | }; 111 | /* End PBXFrameworksBuildPhase section */ 112 | 113 | /* Begin PBXGroup section */ 114 | 4A21891976D76508AAA9BD4CDB117576 /* Pods-PTCardTabBar_Example */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | 2E9D1C66341ABD5EDAA46F273A722216 /* Pods-PTCardTabBar_Example.modulemap */, 118 | FEECC3F38014CBD7E0275E29815B2D6E /* Pods-PTCardTabBar_Example-acknowledgements.markdown */, 119 | 4C7A69E7FFD260AEDAA59F12E8744492 /* Pods-PTCardTabBar_Example-acknowledgements.plist */, 120 | B0E7E4B9687FF41FC3808969FCEA99FB /* Pods-PTCardTabBar_Example-dummy.m */, 121 | 20DF5BB9DD7D165653098394F7226DB5 /* Pods-PTCardTabBar_Example-frameworks.sh */, 122 | DC682BD3A7A5CCF40B01D8DD2BE67C37 /* Pods-PTCardTabBar_Example-Info.plist */, 123 | FC484796E01263A264FA57BE365E9DC9 /* Pods-PTCardTabBar_Example-umbrella.h */, 124 | 5D4122F3E9C74634FF175BBECFE747C7 /* Pods-PTCardTabBar_Example.debug.xcconfig */, 125 | A95D4BFCF36F17657EBBBCDC46FE8779 /* Pods-PTCardTabBar_Example.release.xcconfig */, 126 | ); 127 | name = "Pods-PTCardTabBar_Example"; 128 | path = "Target Support Files/Pods-PTCardTabBar_Example"; 129 | sourceTree = ""; 130 | }; 131 | 7519BCD3621D175E5938F4DDFCEAAF7B /* Products */ = { 132 | isa = PBXGroup; 133 | children = ( 134 | FB430AA8C54A8D3B06C9DF11DFBAB2B3 /* Pods_PTCardTabBar_Example.framework */, 135 | 98209FAA0E0A944990E7476E039DD113 /* Pods_PTCardTabBar_Tests.framework */, 136 | 490F1351FF718C46AC197845B56EB82C /* PTCardTabBar.framework */, 137 | ); 138 | name = Products; 139 | sourceTree = ""; 140 | }; 141 | 786795A5F00843749D45F3FE48379411 /* Support Files */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 6E8427D0832523B6F60622DA0F0FF3EF /* PTCardTabBar.modulemap */, 145 | 26AAF8FB8FCEDBF9A3756E9FEAB3BB53 /* PTCardTabBar.xcconfig */, 146 | E78CB4FAA12756D8622EE9A93B9CE6D5 /* PTCardTabBar-dummy.m */, 147 | 5B6212971CB2D3649C56144AC0DE07E6 /* PTCardTabBar-Info.plist */, 148 | 603A4AE657E03147EBBD67C0BD978CC2 /* PTCardTabBar-prefix.pch */, 149 | C68C0E24A58805CD531CA39458EF32CF /* PTCardTabBar-umbrella.h */, 150 | ); 151 | name = "Support Files"; 152 | path = "Example/Pods/Target Support Files/PTCardTabBar"; 153 | sourceTree = ""; 154 | }; 155 | 7CA7CCAD6399B4BC4F673F32580B778D /* Targets Support Files */ = { 156 | isa = PBXGroup; 157 | children = ( 158 | 4A21891976D76508AAA9BD4CDB117576 /* Pods-PTCardTabBar_Example */, 159 | 85E5E3824C4549125090F95B1BAA2003 /* Pods-PTCardTabBar_Tests */, 160 | ); 161 | name = "Targets Support Files"; 162 | sourceTree = ""; 163 | }; 164 | 85E5E3824C4549125090F95B1BAA2003 /* Pods-PTCardTabBar_Tests */ = { 165 | isa = PBXGroup; 166 | children = ( 167 | 6F00F28515B1AD16BA3F982C5C8B7F3F /* Pods-PTCardTabBar_Tests.modulemap */, 168 | 97827AA345346D98ADC260258DA5FC15 /* Pods-PTCardTabBar_Tests-acknowledgements.markdown */, 169 | 0A378A32E27AB64BE20A72D69582A48C /* Pods-PTCardTabBar_Tests-acknowledgements.plist */, 170 | 7A8A54BD3E1EA1DA17F999B7530AD02D /* Pods-PTCardTabBar_Tests-dummy.m */, 171 | 06FC19B36AEB365FDCC33CC4117342D3 /* Pods-PTCardTabBar_Tests-Info.plist */, 172 | F98361D600B1BE67E0B9FF512652C9F1 /* Pods-PTCardTabBar_Tests-umbrella.h */, 173 | 10B77A4007C54832C0AF3B6DB8ED2BDF /* Pods-PTCardTabBar_Tests.debug.xcconfig */, 174 | B5DEE87D924F36525E94DB922288B591 /* Pods-PTCardTabBar_Tests.release.xcconfig */, 175 | ); 176 | name = "Pods-PTCardTabBar_Tests"; 177 | path = "Target Support Files/Pods-PTCardTabBar_Tests"; 178 | sourceTree = ""; 179 | }; 180 | A2AF75196EDC6532EB81458C46E6894C /* Development Pods */ = { 181 | isa = PBXGroup; 182 | children = ( 183 | EF6CCBDF44B6805A60F42F429AEC2977 /* PTCardTabBar */, 184 | ); 185 | name = "Development Pods"; 186 | sourceTree = ""; 187 | }; 188 | C0834CEBB1379A84116EF29F93051C60 /* iOS */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 3212113385A8FBBDB272BD23C409FF61 /* Foundation.framework */, 192 | ); 193 | name = iOS; 194 | sourceTree = ""; 195 | }; 196 | CF1408CF629C7361332E53B88F7BD30C = { 197 | isa = PBXGroup; 198 | children = ( 199 | 9D940727FF8FB9C785EB98E56350EF41 /* Podfile */, 200 | A2AF75196EDC6532EB81458C46E6894C /* Development Pods */, 201 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */, 202 | 7519BCD3621D175E5938F4DDFCEAAF7B /* Products */, 203 | 7CA7CCAD6399B4BC4F673F32580B778D /* Targets Support Files */, 204 | ); 205 | sourceTree = ""; 206 | }; 207 | D210D550F4EA176C3123ED886F8F87F5 /* Frameworks */ = { 208 | isa = PBXGroup; 209 | children = ( 210 | C0834CEBB1379A84116EF29F93051C60 /* iOS */, 211 | ); 212 | name = Frameworks; 213 | sourceTree = ""; 214 | }; 215 | E44CAF15232229B3001B92CA /* Extensions */ = { 216 | isa = PBXGroup; 217 | children = ( 218 | E44CAF0E232229B3001B92CA /* CGPoint+Distance.swift */, 219 | E44CAF13232229B3001B92CA /* UIView+AutoLayout.swift */, 220 | E44CAF12232229B3001B92CA /* UIColor+Additions.swift */, 221 | ); 222 | name = Extensions; 223 | path = PTCardTabBar/Classes/Extensions; 224 | sourceTree = ""; 225 | }; 226 | EF6CCBDF44B6805A60F42F429AEC2977 /* PTCardTabBar */ = { 227 | isa = PBXGroup; 228 | children = ( 229 | E44CAF15232229B3001B92CA /* Extensions */, 230 | E44CAF14232229B3001B92CA /* PTCardTabBarController.swift */, 231 | E44CAF10232229B3001B92CA /* PTCardTabBar.swift */, 232 | E44CAF16232229B3001B92CA /* PTBarButton.swift */, 233 | E44CAF11232229B3001B92CA /* PTIndicatorView.swift */, 234 | F97C7D0CAF161B461A8779F7D9585745 /* Pod */, 235 | 786795A5F00843749D45F3FE48379411 /* Support Files */, 236 | ); 237 | name = PTCardTabBar; 238 | path = ../..; 239 | sourceTree = ""; 240 | }; 241 | F97C7D0CAF161B461A8779F7D9585745 /* Pod */ = { 242 | isa = PBXGroup; 243 | children = ( 244 | DBB066379C7B0A5196DBBE4A766C13F6 /* LICENSE */, 245 | 907AC4A3CCBB4B3BA7474701295D1FA0 /* PTCardTabBar.podspec */, 246 | 38DC0F153703CA4F30AF348E6E624CB9 /* README.md */, 247 | ); 248 | name = Pod; 249 | sourceTree = ""; 250 | }; 251 | /* End PBXGroup section */ 252 | 253 | /* Begin PBXHeadersBuildPhase section */ 254 | BEB53C9754E909B7F52330BFBEE19502 /* Headers */ = { 255 | isa = PBXHeadersBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | 1187523BE5C7537FCE4BC081399A943C /* Pods-PTCardTabBar_Example-umbrella.h in Headers */, 259 | ); 260 | runOnlyForDeploymentPostprocessing = 0; 261 | }; 262 | D9AA7629094A487163C24D4E73B42317 /* Headers */ = { 263 | isa = PBXHeadersBuildPhase; 264 | buildActionMask = 2147483647; 265 | files = ( 266 | E0FC5560EBE7FD35EB9B9D69B45325B4 /* PTCardTabBar-umbrella.h in Headers */, 267 | ); 268 | runOnlyForDeploymentPostprocessing = 0; 269 | }; 270 | E456ACCCB3FA1B2207A92EF6EFF87BD9 /* Headers */ = { 271 | isa = PBXHeadersBuildPhase; 272 | buildActionMask = 2147483647; 273 | files = ( 274 | 784637BDB5248E88C863F1D59204D90A /* Pods-PTCardTabBar_Tests-umbrella.h in Headers */, 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | }; 278 | /* End PBXHeadersBuildPhase section */ 279 | 280 | /* Begin PBXNativeTarget section */ 281 | 1995BBA5F421C557A48C80ABE0F6DF8F /* Pods-PTCardTabBar_Tests */ = { 282 | isa = PBXNativeTarget; 283 | buildConfigurationList = 446C93437553DA8DC64F8E89A6CF0F59 /* Build configuration list for PBXNativeTarget "Pods-PTCardTabBar_Tests" */; 284 | buildPhases = ( 285 | E456ACCCB3FA1B2207A92EF6EFF87BD9 /* Headers */, 286 | BDF4E6A8DFA58A435C74C59CF2F732C3 /* Sources */, 287 | 9040FAD1EBFCEEBABCF2418D726FDEDE /* Frameworks */, 288 | 551B67980B0A72C65BAFEC543FDB14D0 /* Resources */, 289 | ); 290 | buildRules = ( 291 | ); 292 | dependencies = ( 293 | E83944BEFE5999583815626C5180CC57 /* PBXTargetDependency */, 294 | ); 295 | name = "Pods-PTCardTabBar_Tests"; 296 | productName = "Pods-PTCardTabBar_Tests"; 297 | productReference = 98209FAA0E0A944990E7476E039DD113 /* Pods_PTCardTabBar_Tests.framework */; 298 | productType = "com.apple.product-type.framework"; 299 | }; 300 | 91F88D60B0911027E7F5CADA77FC54E0 /* Pods-PTCardTabBar_Example */ = { 301 | isa = PBXNativeTarget; 302 | buildConfigurationList = 74D48B1D453C2F463CB7F60D583CE03E /* Build configuration list for PBXNativeTarget "Pods-PTCardTabBar_Example" */; 303 | buildPhases = ( 304 | BEB53C9754E909B7F52330BFBEE19502 /* Headers */, 305 | 02C74A232E5B10A5E944DEC7A3DCF06B /* Sources */, 306 | 2BD8C8D2E2A79E92732EA01E8128ADD0 /* Frameworks */, 307 | 96A69469DBF69EE2ECD90FA38A30D834 /* Resources */, 308 | ); 309 | buildRules = ( 310 | ); 311 | dependencies = ( 312 | 8E391F630B2CF3720BDAFBEAB003F02B /* PBXTargetDependency */, 313 | ); 314 | name = "Pods-PTCardTabBar_Example"; 315 | productName = "Pods-PTCardTabBar_Example"; 316 | productReference = FB430AA8C54A8D3B06C9DF11DFBAB2B3 /* Pods_PTCardTabBar_Example.framework */; 317 | productType = "com.apple.product-type.framework"; 318 | }; 319 | 9B5E34DEC86133C45795287F399C33E3 /* PTCardTabBar */ = { 320 | isa = PBXNativeTarget; 321 | buildConfigurationList = 38EBD3E4CCB7A0FF4BB7F58D2428FEC3 /* Build configuration list for PBXNativeTarget "PTCardTabBar" */; 322 | buildPhases = ( 323 | D9AA7629094A487163C24D4E73B42317 /* Headers */, 324 | AB8E7C10255A54BB526B6500BAB40192 /* Sources */, 325 | 97DA7738FA96E95230B765B81834EA4C /* Frameworks */, 326 | FE9A946113063FBDF38F4F54EC4F66FA /* Resources */, 327 | ); 328 | buildRules = ( 329 | ); 330 | dependencies = ( 331 | ); 332 | name = PTCardTabBar; 333 | productName = PTCardTabBar; 334 | productReference = 490F1351FF718C46AC197845B56EB82C /* PTCardTabBar.framework */; 335 | productType = "com.apple.product-type.framework"; 336 | }; 337 | /* End PBXNativeTarget section */ 338 | 339 | /* Begin PBXProject section */ 340 | BFDFE7DC352907FC980B868725387E98 /* Project object */ = { 341 | isa = PBXProject; 342 | attributes = { 343 | LastSwiftUpdateCheck = 1100; 344 | LastUpgradeCheck = 1100; 345 | TargetAttributes = { 346 | 9B5E34DEC86133C45795287F399C33E3 = { 347 | LastSwiftMigration = 1030; 348 | }; 349 | }; 350 | }; 351 | buildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */; 352 | compatibilityVersion = "Xcode 3.2"; 353 | developmentRegion = en; 354 | hasScannedForEncodings = 0; 355 | knownRegions = ( 356 | en, 357 | ); 358 | mainGroup = CF1408CF629C7361332E53B88F7BD30C; 359 | productRefGroup = 7519BCD3621D175E5938F4DDFCEAAF7B /* Products */; 360 | projectDirPath = ""; 361 | projectRoot = ""; 362 | targets = ( 363 | 91F88D60B0911027E7F5CADA77FC54E0 /* Pods-PTCardTabBar_Example */, 364 | 1995BBA5F421C557A48C80ABE0F6DF8F /* Pods-PTCardTabBar_Tests */, 365 | 9B5E34DEC86133C45795287F399C33E3 /* PTCardTabBar */, 366 | ); 367 | }; 368 | /* End PBXProject section */ 369 | 370 | /* Begin PBXResourcesBuildPhase section */ 371 | 551B67980B0A72C65BAFEC543FDB14D0 /* Resources */ = { 372 | isa = PBXResourcesBuildPhase; 373 | buildActionMask = 2147483647; 374 | files = ( 375 | ); 376 | runOnlyForDeploymentPostprocessing = 0; 377 | }; 378 | 96A69469DBF69EE2ECD90FA38A30D834 /* Resources */ = { 379 | isa = PBXResourcesBuildPhase; 380 | buildActionMask = 2147483647; 381 | files = ( 382 | ); 383 | runOnlyForDeploymentPostprocessing = 0; 384 | }; 385 | FE9A946113063FBDF38F4F54EC4F66FA /* Resources */ = { 386 | isa = PBXResourcesBuildPhase; 387 | buildActionMask = 2147483647; 388 | files = ( 389 | ); 390 | runOnlyForDeploymentPostprocessing = 0; 391 | }; 392 | /* End PBXResourcesBuildPhase section */ 393 | 394 | /* Begin PBXSourcesBuildPhase section */ 395 | 02C74A232E5B10A5E944DEC7A3DCF06B /* Sources */ = { 396 | isa = PBXSourcesBuildPhase; 397 | buildActionMask = 2147483647; 398 | files = ( 399 | 7E2144ACD227AE084E96F2BDE3A48031 /* Pods-PTCardTabBar_Example-dummy.m in Sources */, 400 | ); 401 | runOnlyForDeploymentPostprocessing = 0; 402 | }; 403 | AB8E7C10255A54BB526B6500BAB40192 /* Sources */ = { 404 | isa = PBXSourcesBuildPhase; 405 | buildActionMask = 2147483647; 406 | files = ( 407 | E44CAF1A232229B4001B92CA /* PTIndicatorView.swift in Sources */, 408 | E44CAF1E232229B4001B92CA /* PTBarButton.swift in Sources */, 409 | E44CAF1C232229B4001B92CA /* UIView+AutoLayout.swift in Sources */, 410 | E44CAF1D232229B4001B92CA /* PTCardTabBarController.swift in Sources */, 411 | E44CAF1B232229B4001B92CA /* UIColor+Additions.swift in Sources */, 412 | 267CE1D6EA1F2D398C6B1F137B11BDCA /* PTCardTabBar-dummy.m in Sources */, 413 | E44CAF19232229B4001B92CA /* PTCardTabBar.swift in Sources */, 414 | E44CAF17232229B4001B92CA /* CGPoint+Distance.swift in Sources */, 415 | ); 416 | runOnlyForDeploymentPostprocessing = 0; 417 | }; 418 | BDF4E6A8DFA58A435C74C59CF2F732C3 /* Sources */ = { 419 | isa = PBXSourcesBuildPhase; 420 | buildActionMask = 2147483647; 421 | files = ( 422 | 77AE3500348D6E5D9B5EA4A11A8EC8DD /* Pods-PTCardTabBar_Tests-dummy.m in Sources */, 423 | ); 424 | runOnlyForDeploymentPostprocessing = 0; 425 | }; 426 | /* End PBXSourcesBuildPhase section */ 427 | 428 | /* Begin PBXTargetDependency section */ 429 | 8E391F630B2CF3720BDAFBEAB003F02B /* PBXTargetDependency */ = { 430 | isa = PBXTargetDependency; 431 | name = PTCardTabBar; 432 | target = 9B5E34DEC86133C45795287F399C33E3 /* PTCardTabBar */; 433 | targetProxy = 4E1C85A6436DD258242C4EF43B641396 /* PBXContainerItemProxy */; 434 | }; 435 | E83944BEFE5999583815626C5180CC57 /* PBXTargetDependency */ = { 436 | isa = PBXTargetDependency; 437 | name = "Pods-PTCardTabBar_Example"; 438 | target = 91F88D60B0911027E7F5CADA77FC54E0 /* Pods-PTCardTabBar_Example */; 439 | targetProxy = 1724ED3E7B5DD79DB5B2A69BEBB3F205 /* PBXContainerItemProxy */; 440 | }; 441 | /* End PBXTargetDependency section */ 442 | 443 | /* Begin XCBuildConfiguration section */ 444 | 358726137366658ACB05677D69F54E18 /* Debug */ = { 445 | isa = XCBuildConfiguration; 446 | baseConfigurationReference = 5D4122F3E9C74634FF175BBECFE747C7 /* Pods-PTCardTabBar_Example.debug.xcconfig */; 447 | buildSettings = { 448 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 449 | CODE_SIGN_IDENTITY = ""; 450 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 451 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 452 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 453 | CURRENT_PROJECT_VERSION = 1; 454 | DEFINES_MODULE = YES; 455 | DYLIB_COMPATIBILITY_VERSION = 1; 456 | DYLIB_CURRENT_VERSION = 1; 457 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 458 | INFOPLIST_FILE = "Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-Info.plist"; 459 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 460 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 461 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 462 | MACH_O_TYPE = staticlib; 463 | MODULEMAP_FILE = "Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example.modulemap"; 464 | OTHER_LDFLAGS = ""; 465 | OTHER_LIBTOOLFLAGS = ""; 466 | PODS_ROOT = "$(SRCROOT)"; 467 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 468 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 469 | SDKROOT = iphoneos; 470 | SKIP_INSTALL = YES; 471 | TARGETED_DEVICE_FAMILY = "1,2"; 472 | VERSIONING_SYSTEM = "apple-generic"; 473 | VERSION_INFO_PREFIX = ""; 474 | }; 475 | name = Debug; 476 | }; 477 | 394E97A3F9C77397AAD027593F01B64A /* Release */ = { 478 | isa = XCBuildConfiguration; 479 | baseConfigurationReference = 26AAF8FB8FCEDBF9A3756E9FEAB3BB53 /* PTCardTabBar.xcconfig */; 480 | buildSettings = { 481 | CLANG_ENABLE_MODULES = YES; 482 | CODE_SIGN_IDENTITY = ""; 483 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 484 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 485 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 486 | CURRENT_PROJECT_VERSION = 1; 487 | DEFINES_MODULE = YES; 488 | DYLIB_COMPATIBILITY_VERSION = 1; 489 | DYLIB_CURRENT_VERSION = 1; 490 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 491 | GCC_PREFIX_HEADER = "Target Support Files/PTCardTabBar/PTCardTabBar-prefix.pch"; 492 | INFOPLIST_FILE = "Target Support Files/PTCardTabBar/PTCardTabBar-Info.plist"; 493 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 494 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 495 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 496 | MODULEMAP_FILE = "Target Support Files/PTCardTabBar/PTCardTabBar.modulemap"; 497 | PRODUCT_MODULE_NAME = PTCardTabBar; 498 | PRODUCT_NAME = PTCardTabBar; 499 | SDKROOT = iphoneos; 500 | SKIP_INSTALL = NO; 501 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 502 | SWIFT_VERSION = 5.0; 503 | TARGETED_DEVICE_FAMILY = "1,2"; 504 | VALIDATE_PRODUCT = YES; 505 | VERSIONING_SYSTEM = "apple-generic"; 506 | VERSION_INFO_PREFIX = ""; 507 | }; 508 | name = Release; 509 | }; 510 | 518C097DDF26A50E5E4976428AE4F490 /* Release */ = { 511 | isa = XCBuildConfiguration; 512 | baseConfigurationReference = B5DEE87D924F36525E94DB922288B591 /* Pods-PTCardTabBar_Tests.release.xcconfig */; 513 | buildSettings = { 514 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 515 | CODE_SIGN_IDENTITY = ""; 516 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 517 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 518 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 519 | CURRENT_PROJECT_VERSION = 1; 520 | DEFINES_MODULE = YES; 521 | DYLIB_COMPATIBILITY_VERSION = 1; 522 | DYLIB_CURRENT_VERSION = 1; 523 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 524 | INFOPLIST_FILE = "Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests-Info.plist"; 525 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 526 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 527 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 528 | MACH_O_TYPE = staticlib; 529 | MODULEMAP_FILE = "Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests.modulemap"; 530 | OTHER_LDFLAGS = ""; 531 | OTHER_LIBTOOLFLAGS = ""; 532 | PODS_ROOT = "$(SRCROOT)"; 533 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 534 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 535 | SDKROOT = iphoneos; 536 | SKIP_INSTALL = YES; 537 | TARGETED_DEVICE_FAMILY = "1,2"; 538 | VALIDATE_PRODUCT = YES; 539 | VERSIONING_SYSTEM = "apple-generic"; 540 | VERSION_INFO_PREFIX = ""; 541 | }; 542 | name = Release; 543 | }; 544 | 9685406B361F8747631D6ECA2908F125 /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = 10B77A4007C54832C0AF3B6DB8ED2BDF /* Pods-PTCardTabBar_Tests.debug.xcconfig */; 547 | buildSettings = { 548 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 549 | CODE_SIGN_IDENTITY = ""; 550 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 551 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 552 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 553 | CURRENT_PROJECT_VERSION = 1; 554 | DEFINES_MODULE = YES; 555 | DYLIB_COMPATIBILITY_VERSION = 1; 556 | DYLIB_CURRENT_VERSION = 1; 557 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 558 | INFOPLIST_FILE = "Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests-Info.plist"; 559 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 560 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 561 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 562 | MACH_O_TYPE = staticlib; 563 | MODULEMAP_FILE = "Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests.modulemap"; 564 | OTHER_LDFLAGS = ""; 565 | OTHER_LIBTOOLFLAGS = ""; 566 | PODS_ROOT = "$(SRCROOT)"; 567 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 568 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 569 | SDKROOT = iphoneos; 570 | SKIP_INSTALL = YES; 571 | TARGETED_DEVICE_FAMILY = "1,2"; 572 | VERSIONING_SYSTEM = "apple-generic"; 573 | VERSION_INFO_PREFIX = ""; 574 | }; 575 | name = Debug; 576 | }; 577 | B0087CB4594321EF41619F3181FE120E /* Release */ = { 578 | isa = XCBuildConfiguration; 579 | buildSettings = { 580 | ALWAYS_SEARCH_USER_PATHS = NO; 581 | CLANG_ANALYZER_NONNULL = YES; 582 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 583 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 584 | CLANG_CXX_LIBRARY = "libc++"; 585 | CLANG_ENABLE_MODULES = YES; 586 | CLANG_ENABLE_OBJC_ARC = YES; 587 | CLANG_ENABLE_OBJC_WEAK = YES; 588 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 589 | CLANG_WARN_BOOL_CONVERSION = YES; 590 | CLANG_WARN_COMMA = YES; 591 | CLANG_WARN_CONSTANT_CONVERSION = YES; 592 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 593 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 594 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 595 | CLANG_WARN_EMPTY_BODY = YES; 596 | CLANG_WARN_ENUM_CONVERSION = YES; 597 | CLANG_WARN_INFINITE_RECURSION = YES; 598 | CLANG_WARN_INT_CONVERSION = YES; 599 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 600 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 601 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 602 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 603 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 604 | CLANG_WARN_STRICT_PROTOTYPES = YES; 605 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 606 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 607 | CLANG_WARN_UNREACHABLE_CODE = YES; 608 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 609 | COPY_PHASE_STRIP = NO; 610 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 611 | ENABLE_NS_ASSERTIONS = NO; 612 | ENABLE_STRICT_OBJC_MSGSEND = YES; 613 | GCC_C_LANGUAGE_STANDARD = gnu11; 614 | GCC_NO_COMMON_BLOCKS = YES; 615 | GCC_PREPROCESSOR_DEFINITIONS = ( 616 | "POD_CONFIGURATION_RELEASE=1", 617 | "$(inherited)", 618 | ); 619 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 620 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 621 | GCC_WARN_UNDECLARED_SELECTOR = YES; 622 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 623 | GCC_WARN_UNUSED_FUNCTION = YES; 624 | GCC_WARN_UNUSED_VARIABLE = YES; 625 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 626 | MTL_ENABLE_DEBUG_INFO = NO; 627 | MTL_FAST_MATH = YES; 628 | PRODUCT_NAME = "$(TARGET_NAME)"; 629 | STRIP_INSTALLED_PRODUCT = NO; 630 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 631 | SWIFT_VERSION = 5.0; 632 | SYMROOT = "${SRCROOT}/../build"; 633 | }; 634 | name = Release; 635 | }; 636 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */ = { 637 | isa = XCBuildConfiguration; 638 | buildSettings = { 639 | ALWAYS_SEARCH_USER_PATHS = NO; 640 | CLANG_ANALYZER_NONNULL = YES; 641 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 642 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 643 | CLANG_CXX_LIBRARY = "libc++"; 644 | CLANG_ENABLE_MODULES = YES; 645 | CLANG_ENABLE_OBJC_ARC = YES; 646 | CLANG_ENABLE_OBJC_WEAK = YES; 647 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 648 | CLANG_WARN_BOOL_CONVERSION = YES; 649 | CLANG_WARN_COMMA = YES; 650 | CLANG_WARN_CONSTANT_CONVERSION = YES; 651 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 652 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 653 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 654 | CLANG_WARN_EMPTY_BODY = YES; 655 | CLANG_WARN_ENUM_CONVERSION = YES; 656 | CLANG_WARN_INFINITE_RECURSION = YES; 657 | CLANG_WARN_INT_CONVERSION = YES; 658 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 659 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 660 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 661 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 662 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 663 | CLANG_WARN_STRICT_PROTOTYPES = YES; 664 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 665 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 666 | CLANG_WARN_UNREACHABLE_CODE = YES; 667 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 668 | COPY_PHASE_STRIP = NO; 669 | DEBUG_INFORMATION_FORMAT = dwarf; 670 | ENABLE_STRICT_OBJC_MSGSEND = YES; 671 | ENABLE_TESTABILITY = YES; 672 | GCC_C_LANGUAGE_STANDARD = gnu11; 673 | GCC_DYNAMIC_NO_PIC = NO; 674 | GCC_NO_COMMON_BLOCKS = YES; 675 | GCC_OPTIMIZATION_LEVEL = 0; 676 | GCC_PREPROCESSOR_DEFINITIONS = ( 677 | "POD_CONFIGURATION_DEBUG=1", 678 | "DEBUG=1", 679 | "$(inherited)", 680 | ); 681 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 682 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 683 | GCC_WARN_UNDECLARED_SELECTOR = YES; 684 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 685 | GCC_WARN_UNUSED_FUNCTION = YES; 686 | GCC_WARN_UNUSED_VARIABLE = YES; 687 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 688 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; 689 | MTL_FAST_MATH = YES; 690 | ONLY_ACTIVE_ARCH = YES; 691 | PRODUCT_NAME = "$(TARGET_NAME)"; 692 | STRIP_INSTALLED_PRODUCT = NO; 693 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 694 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 695 | SWIFT_VERSION = 5.0; 696 | SYMROOT = "${SRCROOT}/../build"; 697 | }; 698 | name = Debug; 699 | }; 700 | C23171B4EB2C5A3B69D357B7A60BE80B /* Release */ = { 701 | isa = XCBuildConfiguration; 702 | baseConfigurationReference = A95D4BFCF36F17657EBBBCDC46FE8779 /* Pods-PTCardTabBar_Example.release.xcconfig */; 703 | buildSettings = { 704 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 705 | CODE_SIGN_IDENTITY = ""; 706 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 707 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 708 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 709 | CURRENT_PROJECT_VERSION = 1; 710 | DEFINES_MODULE = YES; 711 | DYLIB_COMPATIBILITY_VERSION = 1; 712 | DYLIB_CURRENT_VERSION = 1; 713 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 714 | INFOPLIST_FILE = "Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-Info.plist"; 715 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 716 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 717 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 718 | MACH_O_TYPE = staticlib; 719 | MODULEMAP_FILE = "Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example.modulemap"; 720 | OTHER_LDFLAGS = ""; 721 | OTHER_LIBTOOLFLAGS = ""; 722 | PODS_ROOT = "$(SRCROOT)"; 723 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 724 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 725 | SDKROOT = iphoneos; 726 | SKIP_INSTALL = YES; 727 | TARGETED_DEVICE_FAMILY = "1,2"; 728 | VALIDATE_PRODUCT = YES; 729 | VERSIONING_SYSTEM = "apple-generic"; 730 | VERSION_INFO_PREFIX = ""; 731 | }; 732 | name = Release; 733 | }; 734 | D2FFB8B7102F22B9979D5D3C9226B83A /* Debug */ = { 735 | isa = XCBuildConfiguration; 736 | baseConfigurationReference = 26AAF8FB8FCEDBF9A3756E9FEAB3BB53 /* PTCardTabBar.xcconfig */; 737 | buildSettings = { 738 | CLANG_ENABLE_MODULES = YES; 739 | CODE_SIGN_IDENTITY = ""; 740 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 741 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 742 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 743 | CURRENT_PROJECT_VERSION = 1; 744 | DEFINES_MODULE = YES; 745 | DYLIB_COMPATIBILITY_VERSION = 1; 746 | DYLIB_CURRENT_VERSION = 1; 747 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 748 | GCC_PREFIX_HEADER = "Target Support Files/PTCardTabBar/PTCardTabBar-prefix.pch"; 749 | INFOPLIST_FILE = "Target Support Files/PTCardTabBar/PTCardTabBar-Info.plist"; 750 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 751 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 752 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 753 | MODULEMAP_FILE = "Target Support Files/PTCardTabBar/PTCardTabBar.modulemap"; 754 | PRODUCT_MODULE_NAME = PTCardTabBar; 755 | PRODUCT_NAME = PTCardTabBar; 756 | SDKROOT = iphoneos; 757 | SKIP_INSTALL = NO; 758 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 759 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 760 | SWIFT_VERSION = 5.0; 761 | TARGETED_DEVICE_FAMILY = "1,2"; 762 | VALIDATE_PRODUCT = YES; 763 | VERSIONING_SYSTEM = "apple-generic"; 764 | VERSION_INFO_PREFIX = ""; 765 | }; 766 | name = Debug; 767 | }; 768 | /* End XCBuildConfiguration section */ 769 | 770 | /* Begin XCConfigurationList section */ 771 | 38EBD3E4CCB7A0FF4BB7F58D2428FEC3 /* Build configuration list for PBXNativeTarget "PTCardTabBar" */ = { 772 | isa = XCConfigurationList; 773 | buildConfigurations = ( 774 | D2FFB8B7102F22B9979D5D3C9226B83A /* Debug */, 775 | 394E97A3F9C77397AAD027593F01B64A /* Release */, 776 | ); 777 | defaultConfigurationIsVisible = 0; 778 | defaultConfigurationName = Release; 779 | }; 780 | 446C93437553DA8DC64F8E89A6CF0F59 /* Build configuration list for PBXNativeTarget "Pods-PTCardTabBar_Tests" */ = { 781 | isa = XCConfigurationList; 782 | buildConfigurations = ( 783 | 9685406B361F8747631D6ECA2908F125 /* Debug */, 784 | 518C097DDF26A50E5E4976428AE4F490 /* Release */, 785 | ); 786 | defaultConfigurationIsVisible = 0; 787 | defaultConfigurationName = Release; 788 | }; 789 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { 790 | isa = XCConfigurationList; 791 | buildConfigurations = ( 792 | B8BCBD0110C2658BB5DAADB9B7D97B92 /* Debug */, 793 | B0087CB4594321EF41619F3181FE120E /* Release */, 794 | ); 795 | defaultConfigurationIsVisible = 0; 796 | defaultConfigurationName = Release; 797 | }; 798 | 74D48B1D453C2F463CB7F60D583CE03E /* Build configuration list for PBXNativeTarget "Pods-PTCardTabBar_Example" */ = { 799 | isa = XCConfigurationList; 800 | buildConfigurations = ( 801 | 358726137366658ACB05677D69F54E18 /* Debug */, 802 | C23171B4EB2C5A3B69D357B7A60BE80B /* Release */, 803 | ); 804 | defaultConfigurationIsVisible = 0; 805 | defaultConfigurationName = Release; 806 | }; 807 | /* End XCConfigurationList section */ 808 | }; 809 | rootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */; 810 | } 811 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcshareddata/xcschemes/PTCardTabBar.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 70 | 71 | 72 | 73 | 75 | 76 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PTCardTabBar/PTCardTabBar-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PTCardTabBar/PTCardTabBar-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_PTCardTabBar : NSObject 3 | @end 4 | @implementation PodsDummy_PTCardTabBar 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PTCardTabBar/PTCardTabBar-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PTCardTabBar/PTCardTabBar-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double PTCardTabBarVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char PTCardTabBarVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PTCardTabBar/PTCardTabBar.modulemap: -------------------------------------------------------------------------------- 1 | framework module PTCardTabBar { 2 | umbrella header "PTCardTabBar-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/PTCardTabBar/PTCardTabBar.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## PTCardTabBar 5 | 6 | Copyright (c) 2019 hussc 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2019 hussc <hus.sc@aol.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | PTCardTabBar 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_PTCardTabBar_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_PTCardTabBar_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | function on_error { 7 | echo "$(realpath -mq "${0}"):$1: error: Unexpected failure" 8 | } 9 | trap 'on_error $LINENO' ERR 10 | 11 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 12 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 13 | # frameworks to, so exit 0 (signalling the script phase was successful). 14 | exit 0 15 | fi 16 | 17 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 18 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 19 | 20 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 21 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 22 | 23 | # Used as a return value for each invocation of `strip_invalid_archs` function. 24 | STRIP_BINARY_RETVAL=0 25 | 26 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 27 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 28 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 29 | 30 | # Copies and strips a vendored framework 31 | install_framework() 32 | { 33 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 34 | local source="${BUILT_PRODUCTS_DIR}/$1" 35 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 36 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 37 | elif [ -r "$1" ]; then 38 | local source="$1" 39 | fi 40 | 41 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 42 | 43 | if [ -L "${source}" ]; then 44 | echo "Symlinked..." 45 | source="$(readlink "${source}")" 46 | fi 47 | 48 | # Use filter instead of exclude so missing patterns don't throw errors. 49 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 50 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 51 | 52 | local basename 53 | basename="$(basename -s .framework "$1")" 54 | binary="${destination}/${basename}.framework/${basename}" 55 | 56 | if ! [ -r "$binary" ]; then 57 | binary="${destination}/${basename}" 58 | elif [ -L "${binary}" ]; then 59 | echo "Destination binary is symlinked..." 60 | dirname="$(dirname "${binary}")" 61 | binary="${dirname}/$(readlink "${binary}")" 62 | fi 63 | 64 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 65 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 66 | strip_invalid_archs "$binary" 67 | fi 68 | 69 | # Resign the code if required by the build settings to avoid unstable apps 70 | code_sign_if_enabled "${destination}/$(basename "$1")" 71 | 72 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 73 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 74 | local swift_runtime_libs 75 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u) 76 | for lib in $swift_runtime_libs; do 77 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 78 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 79 | code_sign_if_enabled "${destination}/${lib}" 80 | done 81 | fi 82 | } 83 | 84 | # Copies and strips a vendored dSYM 85 | install_dsym() { 86 | local source="$1" 87 | if [ -r "$source" ]; then 88 | # Copy the dSYM into a the targets temp dir. 89 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 90 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 91 | 92 | local basename 93 | basename="$(basename -s .framework.dSYM "$source")" 94 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 95 | 96 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 97 | if [[ "$(file "$binary")" == *"Mach-O "*"dSYM companion"* ]]; then 98 | strip_invalid_archs "$binary" 99 | fi 100 | 101 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 102 | # Move the stripped file into its final destination. 103 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 104 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 105 | else 106 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 107 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 108 | fi 109 | fi 110 | } 111 | 112 | # Copies the bcsymbolmap files of a vendored framework 113 | install_bcsymbolmap() { 114 | local bcsymbolmap_path="$1" 115 | local destination="${BUILT_PRODUCTS_DIR}" 116 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}"" 117 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${bcsymbolmap_path}" "${destination}" 118 | } 119 | 120 | # Signs a framework with the provided identity 121 | code_sign_if_enabled() { 122 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY:-}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 123 | # Use the current code_sign_identity 124 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 125 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 126 | 127 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 128 | code_sign_cmd="$code_sign_cmd &" 129 | fi 130 | echo "$code_sign_cmd" 131 | eval "$code_sign_cmd" 132 | fi 133 | } 134 | 135 | # Strip invalid architectures 136 | strip_invalid_archs() { 137 | binary="$1" 138 | # Get architectures for current target binary 139 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 140 | # Intersect them with the architectures we are building for 141 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 142 | # If there are no archs supported by this binary then warn the user 143 | if [[ -z "$intersected_archs" ]]; then 144 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 145 | STRIP_BINARY_RETVAL=0 146 | return 147 | fi 148 | stripped="" 149 | for arch in $binary_archs; do 150 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 151 | # Strip non-valid architectures in-place 152 | lipo -remove "$arch" -output "$binary" "$binary" 153 | stripped="$stripped $arch" 154 | fi 155 | done 156 | if [[ "$stripped" ]]; then 157 | echo "Stripped $binary of architectures:$stripped" 158 | fi 159 | STRIP_BINARY_RETVAL=1 160 | } 161 | 162 | 163 | if [[ "$CONFIGURATION" == "Debug" ]]; then 164 | install_framework "${BUILT_PRODUCTS_DIR}/PTCardTabBar/PTCardTabBar.framework" 165 | fi 166 | if [[ "$CONFIGURATION" == "Release" ]]; then 167 | install_framework "${BUILT_PRODUCTS_DIR}/PTCardTabBar/PTCardTabBar.framework" 168 | fi 169 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 170 | wait 171 | fi 172 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_PTCardTabBar_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_PTCardTabBar_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar/PTCardTabBar.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "PTCardTabBar" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_PTCardTabBar_Example { 2 | umbrella header "Pods-PTCardTabBar_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Example/Pods-PTCardTabBar_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar/PTCardTabBar.framework/Headers" 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_LDFLAGS = $(inherited) -framework "PTCardTabBar" 7 | OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_PTCardTabBar_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_PTCardTabBar_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_PTCardTabBar_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_PTCardTabBar_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar/PTCardTabBar.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "PTCardTabBar" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_PTCardTabBar_Tests { 2 | umbrella header "Pods-PTCardTabBar_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-PTCardTabBar_Tests/Pods-PTCardTabBar_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/PTCardTabBar/PTCardTabBar.framework/Headers" 4 | OTHER_LDFLAGS = $(inherited) -framework "PTCardTabBar" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import XCTest 2 | import PTCardTabBar 3 | 4 | class Tests: XCTestCase { 5 | 6 | override func setUp() { 7 | super.setUp() 8 | // Put setup code here. This method is called before the invocation of each test method in the class. 9 | } 10 | 11 | override func tearDown() { 12 | // Put teardown code here. This method is called after the invocation of each test method in the class. 13 | super.tearDown() 14 | } 15 | 16 | func testExample() { 17 | // This is an example of a functional test case. 18 | XCTAssert(true, "Pass") 19 | } 20 | 21 | func testPerformanceExample() { 22 | // This is an example of a performance test case. 23 | self.measure() { 24 | // Put the code you want to measure the time of here. 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2019 hussc 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /PTCardTabBar.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint PTCardTabBar.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'PTCardTabBar' 11 | s.version = '1.0.2' 12 | s.summary = 'Simple UITabBarController with card-style tabbar' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | A Simple Card style tab bar with only displaying icons with small circle under the selected tab bar, try it 22 | 23 | 24 | DESC 25 | 26 | s.homepage = 'https://github.com/hussc/PTCardTabBar' 27 | s.screenshots = 'https://www.dropbox.com/s/1ra32nq4rxurqun/Simulator%20Screen%20Shot%20-%20iPhone%20Xs%20-%202019-09-04%20at%2004.43.09.png', 'https://www.dropbox.com/s/zrbah6zbxvkvn36/Simulator%20Screen%20Shot%20-%20iPhone%20Xs%20-%202019-09-04%20at%2004.43.10.png' 28 | s.license = { :type => 'MIT', :file => 'LICENSE' } 29 | s.author = { 'Hussein AlRyalat' => 'hus.sc@aol.com' } 30 | s.source = { :git => 'https://github.com/hussc/PTCardTabBar.git', :tag => s.version.to_s } 31 | s.social_media_url = 'https://www.facebook.com/hussc' 32 | s.swift_version = '5.0' 33 | s.ios.deployment_target = '11.0' 34 | 35 | s.source_files = 'PTCardTabBar/Classes/**/*' 36 | 37 | # s.resource_bundles = { 38 | # 'PTCardTabBar' => ['PTCardTabBar/Assets/*.png'] 39 | # } 40 | 41 | # s.public_header_files = 'Pod/Classes/**/*.h' 42 | s.frameworks = 'UIKit' 43 | # s.dependency 'AFNetworking', '~> 2.3' 44 | end 45 | -------------------------------------------------------------------------------- /PTCardTabBar/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hussc/PTCardTabBar/2116466c2320a26afef86179917259047e818399/PTCardTabBar/Assets/.gitkeep -------------------------------------------------------------------------------- /PTCardTabBar/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hussc/PTCardTabBar/2116466c2320a26afef86179917259047e818399/PTCardTabBar/Classes/.gitkeep -------------------------------------------------------------------------------- /PTCardTabBar/Classes/Extensions/CGPoint+Distance.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CGPoint+Distance.swift 3 | // PTCardTabBar 4 | // 5 | // Created by Hussein AlRyalat on 9/2/19. 6 | // Copyright © 2019 SketchMe. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension CGPoint { 12 | func distance(to point: CGPoint) -> CGFloat { 13 | return hypot(self.x - point.x, self.y - point.y) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /PTCardTabBar/Classes/Extensions/UIColor+Additions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIColor+Additions.swift 3 | // Prayer Times Reminder 4 | // 5 | // Created by Hussein Al-Ryalat on 8/16/18. 6 | // Copyright © 2018 SketchMe. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | 13 | extension UIColor { 14 | static func by(r: Int, g: Int, b: Int, a: CGFloat = 1) -> UIColor { 15 | let d = CGFloat(255) 16 | return UIColor(red: CGFloat(r) / d, green: CGFloat(g) / d, blue: CGFloat(b) / d, alpha: a) 17 | } 18 | 19 | convenience init(red: Int, green: Int, blue: Int) { 20 | assert(red >= 0 && red <= 255, "Invalid red component") 21 | assert(green >= 0 && green <= 255, "Invalid green component") 22 | assert(blue >= 0 && blue <= 255, "Invalid blue component") 23 | 24 | self.init(red: CGFloat(red) / 255.0, green: CGFloat(green) / 255.0, blue: CGFloat(blue) / 255.0, alpha: 1.0) 25 | } 26 | 27 | convenience init(rgb: Int) { 28 | self.init( 29 | red: (rgb >> 16) & 0xFF, 30 | green: (rgb >> 8) & 0xFF, 31 | blue: rgb & 0xFF 32 | ) 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /PTCardTabBar/Classes/Extensions/UIView+AutoLayout.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+AutoLayout.swift 3 | // Prayer Times Reminder 4 | // 5 | // Created by Hussein Al-Ryalat on 8/6/18. 6 | // Copyright © 2018 SketchMe. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIView { 12 | func pinToSafeArea(top: CGFloat? = 0, left: CGFloat? = 0, bottom: CGFloat? = 0, right: CGFloat? = 0){ 13 | guard let superview = self.superview else { return } 14 | 15 | prepareForAutoLayout() 16 | 17 | var guide: UILayoutGuide 18 | if #available(iOS 11.0, *) { 19 | guide = superview.safeAreaLayoutGuide 20 | } else { 21 | guide = superview.layoutMarginsGuide 22 | } 23 | 24 | if let top = top { 25 | self.topAnchor.constraint(equalTo: guide.topAnchor, constant: top).isActive = true 26 | } 27 | 28 | if let bottom = bottom { 29 | self.bottomAnchor.constraint(equalTo: guide.bottomAnchor, constant: bottom).isActive = true 30 | } 31 | 32 | if let left = left { 33 | self.leadingAnchor.constraint(equalTo: guide.leadingAnchor, constant: left).isActive = true 34 | } 35 | 36 | if let right = right { 37 | self.trailingAnchor.constraint(equalTo: guide.trailingAnchor, constant: right).isActive = true 38 | } 39 | } 40 | 41 | func pinToSuperView(top: CGFloat? = 0, left: CGFloat? = 0, bottom: CGFloat? = 0, right: CGFloat? = 0){ 42 | guard let superview = self.superview else { return } 43 | 44 | prepareForAutoLayout() 45 | 46 | if let top = top { 47 | self.topAnchor.constraint(equalTo: superview.topAnchor, constant: top).isActive = true 48 | } 49 | 50 | if let bottom = bottom { 51 | self.bottomAnchor.constraint(equalTo: superview.bottomAnchor, constant: bottom).isActive = true 52 | } 53 | 54 | if let left = left { 55 | self.leadingAnchor.constraint(equalTo: superview.leadingAnchor, constant: left).isActive = true 56 | } 57 | 58 | if let right = right { 59 | self.trailingAnchor.constraint(equalTo: superview.trailingAnchor, constant: right).isActive = true 60 | } 61 | } 62 | 63 | func centerInSuperView(){ 64 | guard let superview = self.superview else { return } 65 | 66 | prepareForAutoLayout() 67 | 68 | self.centerXAnchor.constraint(equalTo: superview.centerXAnchor).isActive = true 69 | self.centerYAnchor.constraint(equalTo: superview.centerYAnchor).isActive = true 70 | } 71 | 72 | func constraint(width: CGFloat){ 73 | prepareForAutoLayout() 74 | self.widthAnchor.constraint(equalToConstant: width).isActive = true 75 | } 76 | 77 | func constraint(height: CGFloat){ 78 | prepareForAutoLayout() 79 | self.heightAnchor.constraint(equalToConstant: height).isActive = true 80 | } 81 | 82 | func makeWidthEqualHeight(){ 83 | prepareForAutoLayout() 84 | self.widthAnchor.constraint(equalTo: self.heightAnchor).isActive = true 85 | } 86 | 87 | func prepareForAutoLayout(){ 88 | translatesAutoresizingMaskIntoConstraints = false 89 | } 90 | } 91 | 92 | -------------------------------------------------------------------------------- /PTCardTabBar/Classes/PTBarButton.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PTTabBarButtonItem.swift 3 | // PTR 4 | // 5 | // Created by Hussein AlRyalat on 4/7/19. 6 | // Copyright © 2019 SketchMe. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | 12 | public class PTBarButton: UIButton { 13 | 14 | var selectedColor: UIColor! = .black { 15 | didSet { 16 | reloadApperance() 17 | } 18 | } 19 | 20 | var unselectedColor: UIColor! = UIColor(rgb: 0x9b9b9b) { 21 | didSet { 22 | reloadApperance() 23 | } 24 | } 25 | 26 | init(forItem item: UITabBarItem) { 27 | super.init(frame: .zero) 28 | setImage(item.image, for: .normal) 29 | } 30 | 31 | init(image: UIImage){ 32 | super.init(frame: .zero) 33 | setImage(image, for: .normal) 34 | } 35 | 36 | required init?(coder aDecoder: NSCoder) { 37 | super.init(coder: aDecoder) 38 | } 39 | 40 | 41 | override public var isSelected: Bool { 42 | didSet { 43 | reloadApperance() 44 | } 45 | } 46 | 47 | func reloadApperance(){ 48 | self.tintColor = isSelected ? selectedColor : unselectedColor 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /PTCardTabBar/Classes/PTCardTabBar.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CardTabBar.swift 3 | // PTR 4 | // 5 | // Created by Hussein AlRyalat on 8/30/19. 6 | // Copyright © 2019 SketchMe. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | protocol CardTabBarDelegate: class { 12 | func cardTabBar(_ sender: PTCardTabBar, didSelectItemAt index: Int) 13 | } 14 | 15 | open class PTCardTabBar: UIView { 16 | 17 | weak var delegate: CardTabBarDelegate? 18 | 19 | var items: [UITabBarItem] = [] { 20 | didSet { 21 | reloadViews() 22 | } 23 | } 24 | 25 | override open func tintColorDidChange() { 26 | super.tintColorDidChange() 27 | reloadApperance() 28 | } 29 | 30 | func reloadApperance(){ 31 | 32 | buttons().forEach { button in 33 | button.selectedColor = tintColor 34 | } 35 | 36 | indicatorView.tintColor = tintColor 37 | } 38 | 39 | lazy var stackView: UIStackView = { 40 | let stackView = UIStackView(arrangedSubviews: []) 41 | stackView.axis = .horizontal 42 | stackView.distribution = .fillEqually 43 | stackView.alignment = .center 44 | 45 | return stackView 46 | }() 47 | 48 | 49 | lazy var indicatorView: PTIndicatorView = { 50 | let view = PTIndicatorView() 51 | view.translatesAutoresizingMaskIntoConstraints = false 52 | view.constraint(width: 5) 53 | view.backgroundColor = tintColor 54 | view.makeWidthEqualHeight() 55 | 56 | return view 57 | }() 58 | 59 | 60 | private var indicatorViewYConstraint: NSLayoutConstraint! 61 | private var indicatorViewXConstraint: NSLayoutConstraint! 62 | 63 | override init(frame: CGRect) { 64 | super.init(frame: frame) 65 | setup() 66 | } 67 | 68 | required public init?(coder aDecoder: NSCoder) { 69 | super.init(coder: aDecoder) 70 | setup() 71 | } 72 | 73 | deinit { 74 | stackView.arrangedSubviews.forEach { 75 | if let button = $0 as? UIControl { 76 | button.removeTarget(self, action: #selector(buttonTapped(sender:)), for: .touchUpInside) 77 | } 78 | } 79 | } 80 | 81 | private func setup(){ 82 | translatesAutoresizingMaskIntoConstraints = false 83 | 84 | addSubview(stackView) 85 | addSubview(indicatorView) 86 | 87 | self.backgroundColor = .white 88 | 89 | self.layer.shadowColor = UIColor.black.cgColor 90 | self.layer.shadowOffset = CGSize(width: 3, height: 3) 91 | self.layer.shadowRadius = 6 92 | self.layer.shadowOpacity = 0.15 93 | 94 | indicatorViewYConstraint?.isActive = false 95 | indicatorViewYConstraint = indicatorView.topAnchor.constraint(equalTo: stackView.bottomAnchor, constant: -10.5) 96 | indicatorViewYConstraint.isActive = true 97 | 98 | tintColorDidChange() 99 | } 100 | 101 | func add(item: UITabBarItem){ 102 | self.items.append(item) 103 | self.addButton(with: item.image!) 104 | } 105 | 106 | func remove(item: UITabBarItem){ 107 | if let index = self.items.firstIndex(of: item) { 108 | self.items.remove(at: index) 109 | let view = self.stackView.arrangedSubviews[index] 110 | self.stackView.removeArrangedSubview(view) 111 | } 112 | } 113 | 114 | private func addButton(with image: UIImage){ 115 | let button = PTBarButton(image: image) 116 | button.translatesAutoresizingMaskIntoConstraints = false 117 | button.selectedColor = tintColor 118 | 119 | button.addTarget(self, action: #selector(buttonTapped(sender:)), for: .touchUpInside) 120 | self.stackView.addArrangedSubview(button) 121 | } 122 | 123 | func select(at index: Int, notifyDelegate: Bool = true){ 124 | for (bIndex, view) in stackView.arrangedSubviews.enumerated() { 125 | if let button = view as? UIButton { 126 | button.tintColor = bIndex == index ? tintColor : UIColor(rgb: 0x9b9b9b) 127 | } 128 | } 129 | 130 | if notifyDelegate { 131 | self.delegate?.cardTabBar(self, didSelectItemAt: index) 132 | } 133 | } 134 | 135 | 136 | func reloadViews(){ 137 | indicatorViewYConstraint?.isActive = false 138 | indicatorViewYConstraint = indicatorView.topAnchor.constraint(equalTo: stackView.bottomAnchor, constant: -10.5) 139 | indicatorViewYConstraint.isActive = true 140 | 141 | 142 | for button in (stackView.arrangedSubviews.compactMap { $0 as? PTBarButton }) { 143 | stackView.removeArrangedSubview(button) 144 | button.removeFromSuperview() 145 | button.removeTarget(self, action: nil, for: .touchUpInside) 146 | } 147 | 148 | for item in items { 149 | if let image = item.image { 150 | addButton(with: image) 151 | } else { 152 | addButton(with: UIImage()) 153 | } 154 | } 155 | 156 | select(at: 0) 157 | } 158 | 159 | 160 | 161 | private func buttons() -> [PTBarButton] { 162 | return stackView.arrangedSubviews.compactMap { $0 as? PTBarButton } 163 | } 164 | 165 | func select(at index: Int){ 166 | /* move the indicator view */ 167 | if indicatorViewXConstraint != nil { 168 | indicatorViewXConstraint.isActive = false 169 | indicatorViewXConstraint = nil 170 | } 171 | 172 | for (bIndex, button) in buttons().enumerated() { 173 | button.selectedColor = tintColor 174 | button.isSelected = bIndex == index 175 | 176 | if bIndex == index { 177 | indicatorViewXConstraint = indicatorView.centerXAnchor.constraint(equalTo: button.centerXAnchor) 178 | indicatorViewXConstraint.isActive = true 179 | } 180 | } 181 | 182 | UIView.animate(withDuration: 0.25) { 183 | self.layoutIfNeeded() 184 | } 185 | 186 | 187 | self.delegate?.cardTabBar(self, didSelectItemAt: index) 188 | } 189 | 190 | 191 | @objc func buttonTapped(sender: PTBarButton){ 192 | if let index = stackView.arrangedSubviews.firstIndex(of: sender){ 193 | select(at: index) 194 | } 195 | } 196 | 197 | override open func touchesEnded(_ touches: Set, with event: UIEvent?) { 198 | guard let position = touches.first?.location(in: self) else { 199 | super.touchesEnded(touches, with: event) 200 | return 201 | } 202 | 203 | let buttons = self.stackView.arrangedSubviews.compactMap { $0 as? PTBarButton }.filter { !$0.isHidden } 204 | let distances = buttons.map { $0.center.distance(to: position) } 205 | 206 | let buttonsDistances = zip(buttons, distances) 207 | 208 | if let closestButton = buttonsDistances.min(by: { $0.1 < $1.1 }) { 209 | buttonTapped(sender: closestButton.0) 210 | } 211 | } 212 | 213 | override open func layoutSubviews() { 214 | super.layoutSubviews() 215 | stackView.frame = bounds.inset(by: UIEdgeInsets(top: 0, left: 0, bottom: 8, right: 0)) 216 | layer.cornerRadius = bounds.height / 2 217 | } 218 | } 219 | -------------------------------------------------------------------------------- /PTCardTabBar/Classes/PTCardTabBarController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TabBarControllerViewController.swift 3 | // SketchNUR 4 | // 5 | // Created by Hussein Al-Ryalat on 11/12/18. 6 | // Copyright © 2018 SketchMe. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class PTCardTabBarController: UITabBarController { 12 | 13 | @IBInspectable public var tintColor: UIColor? { 14 | didSet { 15 | customTabBar.tintColor = tintColor 16 | customTabBar.reloadApperance() 17 | } 18 | } 19 | 20 | @IBInspectable public var tabBarBackgroundColor: UIColor? { 21 | didSet { 22 | customTabBar.backgroundColor = tabBarBackgroundColor 23 | customTabBar.reloadApperance() 24 | } 25 | } 26 | 27 | public let customTabBar: PTCardTabBar = { 28 | return PTCardTabBar() 29 | }() 30 | 31 | fileprivate(set) lazy var smallBottomView: UIView = { 32 | let anotherSmallView = UIView() 33 | anotherSmallView.backgroundColor = .clear 34 | anotherSmallView.translatesAutoresizingMaskIntoConstraints = false 35 | 36 | return anotherSmallView 37 | }() 38 | 39 | override open var selectedIndex: Int { 40 | didSet { 41 | customTabBar.select(at: selectedIndex, notifyDelegate: false) 42 | } 43 | } 44 | 45 | override open var selectedViewController: UIViewController? { 46 | didSet { 47 | customTabBar.select(at: selectedIndex, notifyDelegate: false) 48 | } 49 | } 50 | 51 | fileprivate var bottomSpacing: CGFloat = 20 52 | fileprivate var tabBarHeight: CGFloat = 70 53 | fileprivate var horizontleSpacing: CGFloat = 20 54 | 55 | override open func viewDidLoad() { 56 | super.viewDidLoad() 57 | 58 | self.additionalSafeAreaInsets = UIEdgeInsets(top: 0, left: 0, bottom: tabBarHeight + bottomSpacing, right: 0) 59 | 60 | 61 | self.tabBar.isHidden = true 62 | 63 | addAnotherSmallView() 64 | setupTabBar() 65 | 66 | customTabBar.items = tabBar.items! 67 | customTabBar.select(at: selectedIndex) 68 | } 69 | 70 | public func setTabBarHidden(_ isHidden: Bool, animated: Bool){ 71 | let block = { 72 | self.customTabBar.alpha = isHidden ? 0 : 1 73 | self.additionalSafeAreaInsets = isHidden ? .zero : UIEdgeInsets(top: 0, left: 0, bottom: self.tabBarHeight + self.bottomSpacing, right: 0) 74 | } 75 | 76 | if animated { 77 | UIView.animate(withDuration: 0.25, animations: block) 78 | } else { 79 | block() 80 | } 81 | } 82 | 83 | fileprivate func addAnotherSmallView(){ 84 | self.view.addSubview(smallBottomView) 85 | 86 | smallBottomView.bottomAnchor.constraint(equalTo: self.view.bottomAnchor).isActive = true 87 | 88 | 89 | let cr: NSLayoutConstraint 90 | 91 | if #available(iOS 11.0, *) { 92 | cr = smallBottomView.topAnchor.constraint(equalTo: self.view.safeAreaLayoutGuide.bottomAnchor, constant: tabBarHeight) 93 | } else { 94 | cr = smallBottomView.topAnchor.constraint(equalTo: self.view.layoutMarginsGuide.bottomAnchor, constant: tabBarHeight) 95 | } 96 | 97 | cr.priority = .defaultHigh 98 | cr.isActive = true 99 | 100 | smallBottomView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true 101 | smallBottomView.centerXAnchor.constraint(equalTo: view.centerXAnchor).isActive = true 102 | } 103 | 104 | fileprivate func setupTabBar(){ 105 | customTabBar.delegate = self 106 | self.view.addSubview(customTabBar) 107 | 108 | customTabBar.bottomAnchor.constraint(equalTo: smallBottomView.topAnchor, constant: 0).isActive = true 109 | customTabBar.centerXAnchor.constraint(equalTo: self.view.centerXAnchor).isActive = true 110 | customTabBar.leadingAnchor.constraint(equalTo: self.view.leadingAnchor, constant: horizontleSpacing).isActive = true 111 | customTabBar.heightAnchor.constraint(equalToConstant: tabBarHeight).isActive = true 112 | 113 | self.view.bringSubviewToFront(customTabBar) 114 | self.view.bringSubviewToFront(smallBottomView) 115 | 116 | customTabBar.tintColor = tintColor 117 | } 118 | } 119 | 120 | extension PTCardTabBarController: CardTabBarDelegate { 121 | func cardTabBar(_ sender: PTCardTabBar, didSelectItemAt index: Int) { 122 | self.selectedIndex = index 123 | } 124 | } 125 | -------------------------------------------------------------------------------- /PTCardTabBar/Classes/PTIndicatorView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PTIndicatorView.swift 3 | // PTR 4 | // 5 | // Created by Hussein AlRyalat on 4/7/19. 6 | // Copyright © 2019 SketchMe. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | open class PTIndicatorView: UIView { 12 | override open func layoutSubviews() { 13 | super.layoutSubviews() 14 | self.layer.cornerRadius = self.bounds.height / 2 15 | } 16 | 17 | override open func tintColorDidChange() { 18 | super.tintColorDidChange() 19 | self.backgroundColor = tintColor 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PTCardTabBar 2 | 3 | [![CI Status](https://img.shields.io/travis/hussc/PTCardTabBar.svg?style=flat)](https://travis-ci.org/hussc/PTCardTabBar) 4 | [![Version](https://img.shields.io/cocoapods/v/PTCardTabBar.svg?style=flat)](https://cocoapods.org/pods/PTCardTabBar) 5 | [![License](https://img.shields.io/cocoapods/l/PTCardTabBar.svg?style=flat)](https://cocoapods.org/pods/PTCardTabBar) 6 | [![Platform](https://img.shields.io/cocoapods/p/PTCardTabBar.svg?style=flat)](https://cocoapods.org/pods/PTCardTabBar) 7 | 8 | 9 | ## Screenshots 10 | 11 | 1 | 2 12 | :-------------------------:|:-------------------------: 13 | ![](Screenshots/PTCardTabBar-1.png) | ![](Screenshots/PTCardTabBar-2.png) 14 | 15 | ## Example 16 | 17 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 18 | 19 | ## Requirements 20 | 21 | ## Installation 22 | 23 | PTCardTabBar is available through [CocoaPods](https://cocoapods.org). To install 24 | it, simply add the following line to your Podfile: 25 | 26 | ```ruby 27 | pod 'PTCardTabBar' 28 | ``` 29 | 30 | ## Author 31 | 32 | hussc, hus.sc@aol.com 33 | 34 | ## License 35 | 36 | PTCardTabBar is available under the MIT license. See the LICENSE file for more info. 37 | -------------------------------------------------------------------------------- /Screenshots/PTCardTabBar-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hussc/PTCardTabBar/2116466c2320a26afef86179917259047e818399/Screenshots/PTCardTabBar-1.png -------------------------------------------------------------------------------- /Screenshots/PTCardTabBar-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hussc/PTCardTabBar/2116466c2320a26afef86179917259047e818399/Screenshots/PTCardTabBar-2.png -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------