├── .gitignore ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── TNSlider.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-TNSliderExample │ │ ├── Info.plist │ │ ├── Pods-TNSliderExample-acknowledgements.markdown │ │ ├── Pods-TNSliderExample-acknowledgements.plist │ │ ├── Pods-TNSliderExample-dummy.m │ │ ├── Pods-TNSliderExample-frameworks.sh │ │ ├── Pods-TNSliderExample-resources.sh │ │ ├── Pods-TNSliderExample-umbrella.h │ │ ├── Pods-TNSliderExample.debug.xcconfig │ │ ├── Pods-TNSliderExample.modulemap │ │ └── Pods-TNSliderExample.release.xcconfig │ │ └── TNSlider │ │ ├── Info.plist │ │ ├── TNSlider-dummy.m │ │ ├── TNSlider-prefix.pch │ │ ├── TNSlider-umbrella.h │ │ ├── TNSlider.modulemap │ │ └── TNSlider.xcconfig ├── TNSliderExample.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata ├── TNSliderExample.xcworkspace │ └── contents.xcworkspacedata └── TNSliderExample │ ├── AppDelegate.swift │ ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard │ ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── LICENSE ├── README.md ├── Screenshot ├── Screenshot_1.png ├── Screenshot_2.png └── tnslider.gif ├── TNSlider.podspec └── TNSlider ├── Sources ├── .gitkeep ├── Info.plist ├── TNConstants.swift ├── TNSlider.h ├── TNSlider.swift ├── TNTextLayer.swift └── TNTrackLayer.swift └── TNSlider.xcodeproj ├── project.pbxproj ├── project.xcworkspace └── contents.xcworkspacedata └── xcshareddata └── xcschemes └── TNSlider.xcscheme /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | .DS_Store 6 | 7 | ## Build generated 8 | build/ 9 | DerivedData/ 10 | 11 | ## Various settings 12 | *.pbxuser 13 | !default.pbxuser 14 | *.mode1v3 15 | !default.mode1v3 16 | *.mode2v3 17 | !default.mode2v3 18 | *.perspectivev3 19 | !default.perspectivev3 20 | xcuserdata/ 21 | 22 | ## Other 23 | *.moved-aside 24 | *.xcuserstate 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/screenshots 64 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode8 3 | xcode_project: TNSlider/TNSlider.xcodeproj 4 | 5 | script: 6 | - set -o pipefail 7 | - xcodebuild -version 8 | - xcodebuild -showsdks 9 | - xcodebuild build -project TNSlider/TNSlider.xcodeproj -scheme 'TNSlider' -sdk iphonesimulator ONLY_ACTIVE_ARCH=NO -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'TNSliderExample' do 4 | pod 'TNSlider', :path => '../' 5 | end 6 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - TNSlider (0.2.0) 3 | 4 | DEPENDENCIES: 5 | - TNSlider (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | TNSlider: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | TNSlider: 789066faa2dd906028cd109f177dd0edecac7336 13 | 14 | PODFILE CHECKSUM: 8b5b626a86d61c3b4f23324554e664077aa2f8d3 15 | 16 | COCOAPODS: 1.2.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/TNSlider.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "TNSlider", 3 | "version": "0.2.0", 4 | "summary": "A control like UISlider but show current value on the thumb.", 5 | "description": "TNSlider is a control for selecting a single value from a continous range of values like UISlider. The different is TNSlider show current selected value on the indicator (or thumb), that make you have more room for your important contents but still let user know what is the selected value of the slider.", 6 | "homepage": "https://github.com/tiennth/TNSlider", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Tien Nguyen": "thanhtien2302@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/tiennth/TNSlider.git", 16 | "tag": "0.2.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "TNSlider/Sources/*.swift" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - TNSlider (0.2.0) 3 | 4 | DEPENDENCIES: 5 | - TNSlider (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | TNSlider: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | TNSlider: 789066faa2dd906028cd109f177dd0edecac7336 13 | 14 | PODFILE CHECKSUM: 8b5b626a86d61c3b4f23324554e664077aa2f8d3 15 | 16 | COCOAPODS: 1.2.0 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 | 0529BAA00A6EE7D704DD9D8817EA9724 /* Pods-TNSliderExample-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 9EEC9E05005A4D212703D006A607652B /* Pods-TNSliderExample-dummy.m */; }; 11 | 21101963722DC343FEEE022A3D20316F /* TNSlider-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 3049CF191E01B270E4F3469D73CE216C /* TNSlider-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 26F31841AC49DE34EFB4F0DDC1A615C5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 13 | 7B19C4183E46CF5292E7F165DA856347 /* TNSlider.swift in Sources */ = {isa = PBXBuildFile; fileRef = AD99DF894DC531B11B63BB0515325ED3 /* TNSlider.swift */; }; 14 | 81E3882CD0766732FA3B30DA858A485D /* Pods-TNSliderExample-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = CDBD130FA44058A2D54084A394AC092C /* Pods-TNSliderExample-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 8B9BAFDFE9D868A49CA442FAE1D72ED1 /* TNTextLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40FEE4FEA97203F2FBD49378DA27AFF9 /* TNTextLayer.swift */; }; 16 | 972E54369094F358F99B3B856677012A /* TNConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = A6BDD94EBCAC5177EF9B14864CAFF938 /* TNConstants.swift */; }; 17 | C4EF1F69536B3EC266A9DEFC98E7F713 /* TNTrackLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E38AE224D14E5F7816E4976B88E0490 /* TNTrackLayer.swift */; }; 18 | DFA33A9D4A209C76CFD0583BE984B95A /* TNSlider-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 42864D31EA8F0B84A415C4A9D82C2D2B /* TNSlider-dummy.m */; }; 19 | F486E5CC4DD64CBA2AB0C5BE9202F245 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 688D5C54F8DD2E2DB723DF856D778C9B /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 64CD5400BB33D699D94356B555A3DA8D; 28 | remoteInfo = TNSlider; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 084EBBF82FBF2987571586563DEBD35C /* TNSlider.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = TNSlider.modulemap; sourceTree = ""; }; 34 | 2E38AE224D14E5F7816E4976B88E0490 /* TNTrackLayer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TNTrackLayer.swift; sourceTree = ""; }; 35 | 3049CF191E01B270E4F3469D73CE216C /* TNSlider-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "TNSlider-umbrella.h"; sourceTree = ""; }; 36 | 40FEE4FEA97203F2FBD49378DA27AFF9 /* TNTextLayer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TNTextLayer.swift; sourceTree = ""; }; 37 | 42864D31EA8F0B84A415C4A9D82C2D2B /* TNSlider-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "TNSlider-dummy.m"; sourceTree = ""; }; 38 | 67B551F782729218380B7C7785990546 /* Pods-TNSliderExample-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-TNSliderExample-acknowledgements.markdown"; sourceTree = ""; }; 39 | 6CCC38D8B8D866B9E127B2E1242861D4 /* Pods-TNSliderExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-TNSliderExample.debug.xcconfig"; sourceTree = ""; }; 40 | 886018F624DD6E1828D6BF6F47C4A512 /* TNSlider-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "TNSlider-prefix.pch"; sourceTree = ""; }; 41 | 8911B5C9817ECE87DE52C6CB59A801D7 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 43 | 9A232EBA67F526EC15479B759908BE1A /* Pods-TNSliderExample-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-TNSliderExample-acknowledgements.plist"; sourceTree = ""; }; 44 | 9E029CF138BADBB3AD32E1191C02B469 /* Pods-TNSliderExample-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-TNSliderExample-resources.sh"; sourceTree = ""; }; 45 | 9EEC9E05005A4D212703D006A607652B /* Pods-TNSliderExample-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-TNSliderExample-dummy.m"; sourceTree = ""; }; 46 | A6BDD94EBCAC5177EF9B14864CAFF938 /* TNConstants.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TNConstants.swift; sourceTree = ""; }; 47 | AD99DF894DC531B11B63BB0515325ED3 /* TNSlider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = TNSlider.swift; sourceTree = ""; }; 48 | B2BD56EA621D3BAFF2DF1380D4FA809A /* TNSlider.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = TNSlider.framework; path = TNSlider.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 50 | CDBD130FA44058A2D54084A394AC092C /* Pods-TNSliderExample-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-TNSliderExample-umbrella.h"; sourceTree = ""; }; 51 | D5EA8FC8F5F7186262A2DF8CBC58360F /* Pods-TNSliderExample.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-TNSliderExample.modulemap"; sourceTree = ""; }; 52 | D6AE8CB8011E35A132C07D95E3397664 /* Pods_TNSliderExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_TNSliderExample.framework; path = "Pods-TNSliderExample.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | DE34F5C309B8DF80E37FDE375B470124 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 54 | EEDC31329412D69670985A6A867C0B1A /* Pods-TNSliderExample-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-TNSliderExample-frameworks.sh"; sourceTree = ""; }; 55 | F390D69C956F2CC212D9C0BD20869D4A /* TNSlider.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = TNSlider.xcconfig; sourceTree = ""; }; 56 | F8000705AE5725631E812F39821DB0E8 /* Pods-TNSliderExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-TNSliderExample.release.xcconfig"; sourceTree = ""; }; 57 | /* End PBXFileReference section */ 58 | 59 | /* Begin PBXFrameworksBuildPhase section */ 60 | AAE23616749EF1B757EE1C022B23716D /* Frameworks */ = { 61 | isa = PBXFrameworksBuildPhase; 62 | buildActionMask = 2147483647; 63 | files = ( 64 | 26F31841AC49DE34EFB4F0DDC1A615C5 /* Foundation.framework in Frameworks */, 65 | ); 66 | runOnlyForDeploymentPostprocessing = 0; 67 | }; 68 | ED1762581BC7E304AB8F23C54D6A7996 /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | F486E5CC4DD64CBA2AB0C5BE9202F245 /* Foundation.framework in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | /* End PBXFrameworksBuildPhase section */ 77 | 78 | /* Begin PBXGroup section */ 79 | 0401E5C276BD5086958A9EA2F75189AF /* TNSlider */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 646B65DC5D43BA3C97B0962FBCDC0649 /* Sources */, 83 | ); 84 | name = TNSlider; 85 | path = TNSlider; 86 | sourceTree = ""; 87 | }; 88 | 2BCEAB2B7E9E988CC06F913E3A743593 /* Products */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | D6AE8CB8011E35A132C07D95E3397664 /* Pods_TNSliderExample.framework */, 92 | B2BD56EA621D3BAFF2DF1380D4FA809A /* TNSlider.framework */, 93 | ); 94 | name = Products; 95 | sourceTree = ""; 96 | }; 97 | 3107EC137B7B3DB024A8CE2D9D979D0A /* TNSlider */ = { 98 | isa = PBXGroup; 99 | children = ( 100 | 8A4F0FFDB04234EFC17E4305211A1AFC /* Support Files */, 101 | 0401E5C276BD5086958A9EA2F75189AF /* TNSlider */, 102 | ); 103 | name = TNSlider; 104 | path = ../..; 105 | sourceTree = ""; 106 | }; 107 | 646B65DC5D43BA3C97B0962FBCDC0649 /* Sources */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | A6BDD94EBCAC5177EF9B14864CAFF938 /* TNConstants.swift */, 111 | AD99DF894DC531B11B63BB0515325ED3 /* TNSlider.swift */, 112 | 40FEE4FEA97203F2FBD49378DA27AFF9 /* TNTextLayer.swift */, 113 | 2E38AE224D14E5F7816E4976B88E0490 /* TNTrackLayer.swift */, 114 | ); 115 | name = Sources; 116 | path = Sources; 117 | sourceTree = ""; 118 | }; 119 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 123 | ); 124 | name = iOS; 125 | sourceTree = ""; 126 | }; 127 | 7D8FC7146A38A84DFFC58CEDB2AE453A /* Development Pods */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 3107EC137B7B3DB024A8CE2D9D979D0A /* TNSlider */, 131 | ); 132 | name = "Development Pods"; 133 | sourceTree = ""; 134 | }; 135 | 7DB346D0F39D3F0E887471402A8071AB = { 136 | isa = PBXGroup; 137 | children = ( 138 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 139 | 7D8FC7146A38A84DFFC58CEDB2AE453A /* Development Pods */, 140 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 141 | 2BCEAB2B7E9E988CC06F913E3A743593 /* Products */, 142 | 8D307B06C1625CF1DC3F41775F8A718E /* Targets Support Files */, 143 | ); 144 | sourceTree = ""; 145 | }; 146 | 8A4F0FFDB04234EFC17E4305211A1AFC /* Support Files */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 8911B5C9817ECE87DE52C6CB59A801D7 /* Info.plist */, 150 | 084EBBF82FBF2987571586563DEBD35C /* TNSlider.modulemap */, 151 | F390D69C956F2CC212D9C0BD20869D4A /* TNSlider.xcconfig */, 152 | 42864D31EA8F0B84A415C4A9D82C2D2B /* TNSlider-dummy.m */, 153 | 886018F624DD6E1828D6BF6F47C4A512 /* TNSlider-prefix.pch */, 154 | 3049CF191E01B270E4F3469D73CE216C /* TNSlider-umbrella.h */, 155 | ); 156 | name = "Support Files"; 157 | path = "Example/Pods/Target Support Files/TNSlider"; 158 | sourceTree = ""; 159 | }; 160 | 8D307B06C1625CF1DC3F41775F8A718E /* Targets Support Files */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | C2ABE555687902D276170E2B8344FB9D /* Pods-TNSliderExample */, 164 | ); 165 | name = "Targets Support Files"; 166 | sourceTree = ""; 167 | }; 168 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 169 | isa = PBXGroup; 170 | children = ( 171 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 172 | ); 173 | name = Frameworks; 174 | sourceTree = ""; 175 | }; 176 | C2ABE555687902D276170E2B8344FB9D /* Pods-TNSliderExample */ = { 177 | isa = PBXGroup; 178 | children = ( 179 | DE34F5C309B8DF80E37FDE375B470124 /* Info.plist */, 180 | D5EA8FC8F5F7186262A2DF8CBC58360F /* Pods-TNSliderExample.modulemap */, 181 | 67B551F782729218380B7C7785990546 /* Pods-TNSliderExample-acknowledgements.markdown */, 182 | 9A232EBA67F526EC15479B759908BE1A /* Pods-TNSliderExample-acknowledgements.plist */, 183 | 9EEC9E05005A4D212703D006A607652B /* Pods-TNSliderExample-dummy.m */, 184 | EEDC31329412D69670985A6A867C0B1A /* Pods-TNSliderExample-frameworks.sh */, 185 | 9E029CF138BADBB3AD32E1191C02B469 /* Pods-TNSliderExample-resources.sh */, 186 | CDBD130FA44058A2D54084A394AC092C /* Pods-TNSliderExample-umbrella.h */, 187 | 6CCC38D8B8D866B9E127B2E1242861D4 /* Pods-TNSliderExample.debug.xcconfig */, 188 | F8000705AE5725631E812F39821DB0E8 /* Pods-TNSliderExample.release.xcconfig */, 189 | ); 190 | name = "Pods-TNSliderExample"; 191 | path = "Target Support Files/Pods-TNSliderExample"; 192 | sourceTree = ""; 193 | }; 194 | /* End PBXGroup section */ 195 | 196 | /* Begin PBXHeadersBuildPhase section */ 197 | 99D1B39836CD782FBCDCFC6AC6DB585B /* Headers */ = { 198 | isa = PBXHeadersBuildPhase; 199 | buildActionMask = 2147483647; 200 | files = ( 201 | 21101963722DC343FEEE022A3D20316F /* TNSlider-umbrella.h in Headers */, 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | BDE18CE30B730F5362525E5E5998887C /* Headers */ = { 206 | isa = PBXHeadersBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | 81E3882CD0766732FA3B30DA858A485D /* Pods-TNSliderExample-umbrella.h in Headers */, 210 | ); 211 | runOnlyForDeploymentPostprocessing = 0; 212 | }; 213 | /* End PBXHeadersBuildPhase section */ 214 | 215 | /* Begin PBXNativeTarget section */ 216 | 64CD5400BB33D699D94356B555A3DA8D /* TNSlider */ = { 217 | isa = PBXNativeTarget; 218 | buildConfigurationList = E6A8ED57EA2CFED176E7C7A6FB6F7498 /* Build configuration list for PBXNativeTarget "TNSlider" */; 219 | buildPhases = ( 220 | 39453FFE3DCE667E22E39B2B35E797F5 /* Sources */, 221 | ED1762581BC7E304AB8F23C54D6A7996 /* Frameworks */, 222 | 99D1B39836CD782FBCDCFC6AC6DB585B /* Headers */, 223 | ); 224 | buildRules = ( 225 | ); 226 | dependencies = ( 227 | ); 228 | name = TNSlider; 229 | productName = TNSlider; 230 | productReference = B2BD56EA621D3BAFF2DF1380D4FA809A /* TNSlider.framework */; 231 | productType = "com.apple.product-type.framework"; 232 | }; 233 | BEF9FFF177F902825798CBF159B0226F /* Pods-TNSliderExample */ = { 234 | isa = PBXNativeTarget; 235 | buildConfigurationList = 8EFAD0B7D83EE65DE7421DCC7F4DFE49 /* Build configuration list for PBXNativeTarget "Pods-TNSliderExample" */; 236 | buildPhases = ( 237 | C829990F03F2235D551B80458821F536 /* Sources */, 238 | AAE23616749EF1B757EE1C022B23716D /* Frameworks */, 239 | BDE18CE30B730F5362525E5E5998887C /* Headers */, 240 | ); 241 | buildRules = ( 242 | ); 243 | dependencies = ( 244 | 6835D57A2A60994E75C3711E48EF73E0 /* PBXTargetDependency */, 245 | ); 246 | name = "Pods-TNSliderExample"; 247 | productName = "Pods-TNSliderExample"; 248 | productReference = D6AE8CB8011E35A132C07D95E3397664 /* Pods_TNSliderExample.framework */; 249 | productType = "com.apple.product-type.framework"; 250 | }; 251 | /* End PBXNativeTarget section */ 252 | 253 | /* Begin PBXProject section */ 254 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 255 | isa = PBXProject; 256 | attributes = { 257 | LastSwiftUpdateCheck = 0730; 258 | LastUpgradeCheck = 0700; 259 | }; 260 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 261 | compatibilityVersion = "Xcode 3.2"; 262 | developmentRegion = English; 263 | hasScannedForEncodings = 0; 264 | knownRegions = ( 265 | en, 266 | ); 267 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 268 | productRefGroup = 2BCEAB2B7E9E988CC06F913E3A743593 /* Products */; 269 | projectDirPath = ""; 270 | projectRoot = ""; 271 | targets = ( 272 | BEF9FFF177F902825798CBF159B0226F /* Pods-TNSliderExample */, 273 | 64CD5400BB33D699D94356B555A3DA8D /* TNSlider */, 274 | ); 275 | }; 276 | /* End PBXProject section */ 277 | 278 | /* Begin PBXSourcesBuildPhase section */ 279 | 39453FFE3DCE667E22E39B2B35E797F5 /* Sources */ = { 280 | isa = PBXSourcesBuildPhase; 281 | buildActionMask = 2147483647; 282 | files = ( 283 | 972E54369094F358F99B3B856677012A /* TNConstants.swift in Sources */, 284 | DFA33A9D4A209C76CFD0583BE984B95A /* TNSlider-dummy.m in Sources */, 285 | 7B19C4183E46CF5292E7F165DA856347 /* TNSlider.swift in Sources */, 286 | 8B9BAFDFE9D868A49CA442FAE1D72ED1 /* TNTextLayer.swift in Sources */, 287 | C4EF1F69536B3EC266A9DEFC98E7F713 /* TNTrackLayer.swift in Sources */, 288 | ); 289 | runOnlyForDeploymentPostprocessing = 0; 290 | }; 291 | C829990F03F2235D551B80458821F536 /* Sources */ = { 292 | isa = PBXSourcesBuildPhase; 293 | buildActionMask = 2147483647; 294 | files = ( 295 | 0529BAA00A6EE7D704DD9D8817EA9724 /* Pods-TNSliderExample-dummy.m in Sources */, 296 | ); 297 | runOnlyForDeploymentPostprocessing = 0; 298 | }; 299 | /* End PBXSourcesBuildPhase section */ 300 | 301 | /* Begin PBXTargetDependency section */ 302 | 6835D57A2A60994E75C3711E48EF73E0 /* PBXTargetDependency */ = { 303 | isa = PBXTargetDependency; 304 | name = TNSlider; 305 | target = 64CD5400BB33D699D94356B555A3DA8D /* TNSlider */; 306 | targetProxy = 688D5C54F8DD2E2DB723DF856D778C9B /* PBXContainerItemProxy */; 307 | }; 308 | /* End PBXTargetDependency section */ 309 | 310 | /* Begin XCBuildConfiguration section */ 311 | 09E59673E36AFCCF2B8CC13455622E2E /* Release */ = { 312 | isa = XCBuildConfiguration; 313 | baseConfigurationReference = F8000705AE5725631E812F39821DB0E8 /* Pods-TNSliderExample.release.xcconfig */; 314 | buildSettings = { 315 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 316 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 317 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 318 | CURRENT_PROJECT_VERSION = 1; 319 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 320 | DEFINES_MODULE = YES; 321 | DYLIB_COMPATIBILITY_VERSION = 1; 322 | DYLIB_CURRENT_VERSION = 1; 323 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 324 | ENABLE_STRICT_OBJC_MSGSEND = YES; 325 | GCC_NO_COMMON_BLOCKS = YES; 326 | INFOPLIST_FILE = "Target Support Files/Pods-TNSliderExample/Info.plist"; 327 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 328 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 329 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 330 | MACH_O_TYPE = staticlib; 331 | MODULEMAP_FILE = "Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample.modulemap"; 332 | MTL_ENABLE_DEBUG_INFO = NO; 333 | OTHER_LDFLAGS = ""; 334 | OTHER_LIBTOOLFLAGS = ""; 335 | PODS_ROOT = "$(SRCROOT)"; 336 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 337 | PRODUCT_NAME = Pods_TNSliderExample; 338 | SDKROOT = iphoneos; 339 | SKIP_INSTALL = YES; 340 | TARGETED_DEVICE_FAMILY = "1,2"; 341 | VERSIONING_SYSTEM = "apple-generic"; 342 | VERSION_INFO_PREFIX = ""; 343 | }; 344 | name = Release; 345 | }; 346 | 3184C29C6D997E6321CAEC99776A809E /* Debug */ = { 347 | isa = XCBuildConfiguration; 348 | baseConfigurationReference = F390D69C956F2CC212D9C0BD20869D4A /* TNSlider.xcconfig */; 349 | buildSettings = { 350 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 351 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 352 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 353 | CURRENT_PROJECT_VERSION = 1; 354 | DEBUG_INFORMATION_FORMAT = dwarf; 355 | DEFINES_MODULE = YES; 356 | DYLIB_COMPATIBILITY_VERSION = 1; 357 | DYLIB_CURRENT_VERSION = 1; 358 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 359 | ENABLE_STRICT_OBJC_MSGSEND = YES; 360 | GCC_NO_COMMON_BLOCKS = YES; 361 | GCC_PREFIX_HEADER = "Target Support Files/TNSlider/TNSlider-prefix.pch"; 362 | INFOPLIST_FILE = "Target Support Files/TNSlider/Info.plist"; 363 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 364 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 365 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 366 | MODULEMAP_FILE = "Target Support Files/TNSlider/TNSlider.modulemap"; 367 | MTL_ENABLE_DEBUG_INFO = YES; 368 | PRODUCT_NAME = TNSlider; 369 | SDKROOT = iphoneos; 370 | SKIP_INSTALL = YES; 371 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 372 | SWIFT_VERSION = 3.0; 373 | TARGETED_DEVICE_FAMILY = "1,2"; 374 | VERSIONING_SYSTEM = "apple-generic"; 375 | VERSION_INFO_PREFIX = ""; 376 | }; 377 | name = Debug; 378 | }; 379 | 3D33460CAB365EA57E80C3D70DA81CA2 /* Release */ = { 380 | isa = XCBuildConfiguration; 381 | baseConfigurationReference = F390D69C956F2CC212D9C0BD20869D4A /* TNSlider.xcconfig */; 382 | buildSettings = { 383 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 384 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 385 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 386 | CURRENT_PROJECT_VERSION = 1; 387 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 388 | DEFINES_MODULE = YES; 389 | DYLIB_COMPATIBILITY_VERSION = 1; 390 | DYLIB_CURRENT_VERSION = 1; 391 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 392 | ENABLE_STRICT_OBJC_MSGSEND = YES; 393 | GCC_NO_COMMON_BLOCKS = YES; 394 | GCC_PREFIX_HEADER = "Target Support Files/TNSlider/TNSlider-prefix.pch"; 395 | INFOPLIST_FILE = "Target Support Files/TNSlider/Info.plist"; 396 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 397 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 398 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 399 | MODULEMAP_FILE = "Target Support Files/TNSlider/TNSlider.modulemap"; 400 | MTL_ENABLE_DEBUG_INFO = NO; 401 | PRODUCT_NAME = TNSlider; 402 | SDKROOT = iphoneos; 403 | SKIP_INSTALL = YES; 404 | SWIFT_VERSION = 3.0; 405 | TARGETED_DEVICE_FAMILY = "1,2"; 406 | VERSIONING_SYSTEM = "apple-generic"; 407 | VERSION_INFO_PREFIX = ""; 408 | }; 409 | name = Release; 410 | }; 411 | 673254EEAF0B5BF4596080C749645884 /* Release */ = { 412 | isa = XCBuildConfiguration; 413 | buildSettings = { 414 | ALWAYS_SEARCH_USER_PATHS = NO; 415 | CLANG_ANALYZER_NONNULL = YES; 416 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 417 | CLANG_CXX_LIBRARY = "libc++"; 418 | CLANG_ENABLE_MODULES = YES; 419 | CLANG_ENABLE_OBJC_ARC = YES; 420 | CLANG_WARN_BOOL_CONVERSION = YES; 421 | CLANG_WARN_CONSTANT_CONVERSION = YES; 422 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 423 | CLANG_WARN_EMPTY_BODY = YES; 424 | CLANG_WARN_ENUM_CONVERSION = YES; 425 | CLANG_WARN_INT_CONVERSION = YES; 426 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 427 | CLANG_WARN_UNREACHABLE_CODE = YES; 428 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 429 | CODE_SIGNING_REQUIRED = NO; 430 | COPY_PHASE_STRIP = YES; 431 | ENABLE_NS_ASSERTIONS = NO; 432 | GCC_C_LANGUAGE_STANDARD = gnu99; 433 | GCC_PREPROCESSOR_DEFINITIONS = ( 434 | "POD_CONFIGURATION_RELEASE=1", 435 | "$(inherited)", 436 | ); 437 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 438 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 439 | GCC_WARN_UNDECLARED_SELECTOR = YES; 440 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 441 | GCC_WARN_UNUSED_FUNCTION = YES; 442 | GCC_WARN_UNUSED_VARIABLE = YES; 443 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 444 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 445 | STRIP_INSTALLED_PRODUCT = NO; 446 | SYMROOT = "${SRCROOT}/../build"; 447 | VALIDATE_PRODUCT = YES; 448 | }; 449 | name = Release; 450 | }; 451 | 99C6A27CF1CE04B5B17E1F46BA75A733 /* Debug */ = { 452 | isa = XCBuildConfiguration; 453 | baseConfigurationReference = 6CCC38D8B8D866B9E127B2E1242861D4 /* Pods-TNSliderExample.debug.xcconfig */; 454 | buildSettings = { 455 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 456 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 457 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 458 | CURRENT_PROJECT_VERSION = 1; 459 | DEBUG_INFORMATION_FORMAT = dwarf; 460 | DEFINES_MODULE = YES; 461 | DYLIB_COMPATIBILITY_VERSION = 1; 462 | DYLIB_CURRENT_VERSION = 1; 463 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 464 | ENABLE_STRICT_OBJC_MSGSEND = YES; 465 | GCC_NO_COMMON_BLOCKS = YES; 466 | INFOPLIST_FILE = "Target Support Files/Pods-TNSliderExample/Info.plist"; 467 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 468 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 469 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 470 | MACH_O_TYPE = staticlib; 471 | MODULEMAP_FILE = "Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample.modulemap"; 472 | MTL_ENABLE_DEBUG_INFO = YES; 473 | OTHER_LDFLAGS = ""; 474 | OTHER_LIBTOOLFLAGS = ""; 475 | PODS_ROOT = "$(SRCROOT)"; 476 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 477 | PRODUCT_NAME = Pods_TNSliderExample; 478 | SDKROOT = iphoneos; 479 | SKIP_INSTALL = YES; 480 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 481 | TARGETED_DEVICE_FAMILY = "1,2"; 482 | VERSIONING_SYSTEM = "apple-generic"; 483 | VERSION_INFO_PREFIX = ""; 484 | }; 485 | name = Debug; 486 | }; 487 | E4F26E6EB105713A6A7E7E2E283AC2DF /* Debug */ = { 488 | isa = XCBuildConfiguration; 489 | buildSettings = { 490 | ALWAYS_SEARCH_USER_PATHS = NO; 491 | CLANG_ANALYZER_NONNULL = YES; 492 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 493 | CLANG_CXX_LIBRARY = "libc++"; 494 | CLANG_ENABLE_MODULES = YES; 495 | CLANG_ENABLE_OBJC_ARC = YES; 496 | CLANG_WARN_BOOL_CONVERSION = YES; 497 | CLANG_WARN_CONSTANT_CONVERSION = YES; 498 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 499 | CLANG_WARN_EMPTY_BODY = YES; 500 | CLANG_WARN_ENUM_CONVERSION = YES; 501 | CLANG_WARN_INT_CONVERSION = YES; 502 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 503 | CLANG_WARN_UNREACHABLE_CODE = YES; 504 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 505 | CODE_SIGNING_REQUIRED = NO; 506 | COPY_PHASE_STRIP = NO; 507 | ENABLE_TESTABILITY = YES; 508 | GCC_C_LANGUAGE_STANDARD = gnu99; 509 | GCC_DYNAMIC_NO_PIC = NO; 510 | GCC_OPTIMIZATION_LEVEL = 0; 511 | GCC_PREPROCESSOR_DEFINITIONS = ( 512 | "POD_CONFIGURATION_DEBUG=1", 513 | "DEBUG=1", 514 | "$(inherited)", 515 | ); 516 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 517 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 518 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 519 | GCC_WARN_UNDECLARED_SELECTOR = YES; 520 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 521 | GCC_WARN_UNUSED_FUNCTION = YES; 522 | GCC_WARN_UNUSED_VARIABLE = YES; 523 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 524 | ONLY_ACTIVE_ARCH = YES; 525 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 526 | STRIP_INSTALLED_PRODUCT = NO; 527 | SYMROOT = "${SRCROOT}/../build"; 528 | }; 529 | name = Debug; 530 | }; 531 | /* End XCBuildConfiguration section */ 532 | 533 | /* Begin XCConfigurationList section */ 534 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 535 | isa = XCConfigurationList; 536 | buildConfigurations = ( 537 | E4F26E6EB105713A6A7E7E2E283AC2DF /* Debug */, 538 | 673254EEAF0B5BF4596080C749645884 /* Release */, 539 | ); 540 | defaultConfigurationIsVisible = 0; 541 | defaultConfigurationName = Release; 542 | }; 543 | 8EFAD0B7D83EE65DE7421DCC7F4DFE49 /* Build configuration list for PBXNativeTarget "Pods-TNSliderExample" */ = { 544 | isa = XCConfigurationList; 545 | buildConfigurations = ( 546 | 99C6A27CF1CE04B5B17E1F46BA75A733 /* Debug */, 547 | 09E59673E36AFCCF2B8CC13455622E2E /* Release */, 548 | ); 549 | defaultConfigurationIsVisible = 0; 550 | defaultConfigurationName = Release; 551 | }; 552 | E6A8ED57EA2CFED176E7C7A6FB6F7498 /* Build configuration list for PBXNativeTarget "TNSlider" */ = { 553 | isa = XCConfigurationList; 554 | buildConfigurations = ( 555 | 3184C29C6D997E6321CAEC99776A809E /* Debug */, 556 | 3D33460CAB365EA57E80C3D70DA81CA2 /* Release */, 557 | ); 558 | defaultConfigurationIsVisible = 0; 559 | defaultConfigurationName = Release; 560 | }; 561 | /* End XCConfigurationList section */ 562 | }; 563 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 564 | } 565 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-TNSliderExample/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-TNSliderExample/Pods-TNSliderExample-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## TNSlider 5 | 6 | Copyright (c) 2016 Tien Nguyen 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-TNSliderExample/Pods-TNSliderExample-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) 2016 Tien Nguyen <thanhtien2302@gmail.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 | TNSlider 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-TNSliderExample/Pods-TNSliderExample-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_TNSliderExample : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_TNSliderExample 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/TNSlider/TNSlider.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/TNSlider/TNSlider.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 25 | TARGET_DEVICE_ARGS="--target-device mac" 26 | ;; 27 | esac 28 | 29 | install_resource() 30 | { 31 | if [[ "$1" = /* ]] ; then 32 | RESOURCE_PATH="$1" 33 | else 34 | RESOURCE_PATH="${PODS_ROOT}/$1" 35 | fi 36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 37 | cat << EOM 38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 39 | EOM 40 | exit 1 41 | fi 42 | case $RESOURCE_PATH in 43 | *.storyboard) 44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 46 | ;; 47 | *.xib) 48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 50 | ;; 51 | *.framework) 52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | ;; 57 | *.xcdatamodel) 58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 60 | ;; 61 | *.xcdatamodeld) 62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 64 | ;; 65 | *.xcmappingmodel) 66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 68 | ;; 69 | *.xcassets) 70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 72 | ;; 73 | *) 74 | echo "$RESOURCE_PATH" 75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 76 | ;; 77 | esac 78 | } 79 | 80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | fi 86 | rm -f "$RESOURCES_TO_COPY" 87 | 88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 89 | then 90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 92 | while read line; do 93 | if [[ $line != "${PODS_ROOT}*" ]]; then 94 | XCASSET_FILES+=("$line") 95 | fi 96 | done <<<"$OTHER_XCASSETS" 97 | 98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample-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_TNSliderExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_TNSliderExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/TNSlider" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/TNSlider/TNSlider.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "TNSlider" 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_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_TNSliderExample { 2 | umbrella header "Pods-TNSliderExample-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/TNSlider" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/TNSlider/TNSlider.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "TNSlider" 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_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/TNSlider/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 | 0.2.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/TNSlider/TNSlider-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_TNSlider : NSObject 3 | @end 4 | @implementation PodsDummy_TNSlider 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/TNSlider/TNSlider-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/TNSlider/TNSlider-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 TNSliderVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char TNSliderVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/TNSlider/TNSlider.modulemap: -------------------------------------------------------------------------------- 1 | framework module TNSlider { 2 | umbrella header "TNSlider-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/TNSlider/TNSlider.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/TNSlider 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/TNSliderExample.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 286EA70CEB978624FFD982E8 /* Pods_TNSliderExample.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 398549462320ADE94BAC5B58 /* Pods_TNSliderExample.framework */; }; 11 | 7215EB321E9CF07800F3BB57 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7215EB311E9CF07800F3BB57 /* AppDelegate.swift */; }; 12 | 7215EB341E9CF07800F3BB57 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7215EB331E9CF07800F3BB57 /* ViewController.swift */; }; 13 | 7215EB391E9CF07800F3BB57 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 7215EB381E9CF07800F3BB57 /* Images.xcassets */; }; 14 | 7215EB431E9CF18B00F3BB57 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7215EB351E9CF07800F3BB57 /* Main.storyboard */; }; 15 | 7215EB471E9CF1AE00F3BB57 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 7215EB451E9CF1AE00F3BB57 /* LaunchScreen.xib */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 19567596F149B3E3974A2A9D /* Pods-TNSliderExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TNSliderExample.debug.xcconfig"; path = "Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample.debug.xcconfig"; sourceTree = ""; }; 20 | 398549462320ADE94BAC5B58 /* Pods_TNSliderExample.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_TNSliderExample.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 504509094E9A28437A70A622 /* Pods-TNSliderExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-TNSliderExample.release.xcconfig"; path = "Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample.release.xcconfig"; sourceTree = ""; }; 22 | 7215EB2E1E9CF07800F3BB57 /* TNSliderExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TNSliderExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | 7215EB311E9CF07800F3BB57 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 24 | 7215EB331E9CF07800F3BB57 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 25 | 7215EB361E9CF07800F3BB57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 26 | 7215EB381E9CF07800F3BB57 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 27 | 7215EB3D1E9CF07800F3BB57 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 28 | 7215EB461E9CF1AE00F3BB57 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 7215EB2B1E9CF07800F3BB57 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | 286EA70CEB978624FFD982E8 /* Pods_TNSliderExample.framework in Frameworks */, 37 | ); 38 | runOnlyForDeploymentPostprocessing = 0; 39 | }; 40 | /* End PBXFrameworksBuildPhase section */ 41 | 42 | /* Begin PBXGroup section */ 43 | 331C87D6CD4F7D1CDD7909E7 /* Pods */ = { 44 | isa = PBXGroup; 45 | children = ( 46 | 19567596F149B3E3974A2A9D /* Pods-TNSliderExample.debug.xcconfig */, 47 | 504509094E9A28437A70A622 /* Pods-TNSliderExample.release.xcconfig */, 48 | ); 49 | name = Pods; 50 | sourceTree = ""; 51 | }; 52 | 7215EB251E9CF07800F3BB57 = { 53 | isa = PBXGroup; 54 | children = ( 55 | 7215EB301E9CF07800F3BB57 /* TNSliderExample */, 56 | 7215EB2F1E9CF07800F3BB57 /* Products */, 57 | 331C87D6CD4F7D1CDD7909E7 /* Pods */, 58 | B27A69B4F2548CC12EACAFAB /* Frameworks */, 59 | ); 60 | sourceTree = ""; 61 | }; 62 | 7215EB2F1E9CF07800F3BB57 /* Products */ = { 63 | isa = PBXGroup; 64 | children = ( 65 | 7215EB2E1E9CF07800F3BB57 /* TNSliderExample.app */, 66 | ); 67 | name = Products; 68 | sourceTree = ""; 69 | }; 70 | 7215EB301E9CF07800F3BB57 /* TNSliderExample */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 7215EB311E9CF07800F3BB57 /* AppDelegate.swift */, 74 | 7215EB331E9CF07800F3BB57 /* ViewController.swift */, 75 | 7215EB351E9CF07800F3BB57 /* Main.storyboard */, 76 | 7215EB451E9CF1AE00F3BB57 /* LaunchScreen.xib */, 77 | 7215EB381E9CF07800F3BB57 /* Images.xcassets */, 78 | 7215EB3D1E9CF07800F3BB57 /* Info.plist */, 79 | ); 80 | path = TNSliderExample; 81 | sourceTree = ""; 82 | }; 83 | B27A69B4F2548CC12EACAFAB /* Frameworks */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 398549462320ADE94BAC5B58 /* Pods_TNSliderExample.framework */, 87 | ); 88 | name = Frameworks; 89 | sourceTree = ""; 90 | }; 91 | /* End PBXGroup section */ 92 | 93 | /* Begin PBXNativeTarget section */ 94 | 7215EB2D1E9CF07800F3BB57 /* TNSliderExample */ = { 95 | isa = PBXNativeTarget; 96 | buildConfigurationList = 7215EB401E9CF07800F3BB57 /* Build configuration list for PBXNativeTarget "TNSliderExample" */; 97 | buildPhases = ( 98 | DC061E8312E3DD2B5F721B08 /* [CP] Check Pods Manifest.lock */, 99 | 7215EB2A1E9CF07800F3BB57 /* Sources */, 100 | 7215EB2B1E9CF07800F3BB57 /* Frameworks */, 101 | 7215EB2C1E9CF07800F3BB57 /* Resources */, 102 | 84BEC29EF66A02FC5FEA3F09 /* [CP] Embed Pods Frameworks */, 103 | F73AFEDD49A9083D3036520B /* [CP] Copy Pods Resources */, 104 | ); 105 | buildRules = ( 106 | ); 107 | dependencies = ( 108 | ); 109 | name = TNSliderExample; 110 | productName = TNSliderExample; 111 | productReference = 7215EB2E1E9CF07800F3BB57 /* TNSliderExample.app */; 112 | productType = "com.apple.product-type.application"; 113 | }; 114 | /* End PBXNativeTarget section */ 115 | 116 | /* Begin PBXProject section */ 117 | 7215EB261E9CF07800F3BB57 /* Project object */ = { 118 | isa = PBXProject; 119 | attributes = { 120 | LastSwiftUpdateCheck = 0820; 121 | LastUpgradeCheck = 0820; 122 | ORGANIZATIONNAME = tiennth; 123 | TargetAttributes = { 124 | 7215EB2D1E9CF07800F3BB57 = { 125 | CreatedOnToolsVersion = 8.2; 126 | ProvisioningStyle = Automatic; 127 | }; 128 | }; 129 | }; 130 | buildConfigurationList = 7215EB291E9CF07800F3BB57 /* Build configuration list for PBXProject "TNSliderExample" */; 131 | compatibilityVersion = "Xcode 3.2"; 132 | developmentRegion = English; 133 | hasScannedForEncodings = 0; 134 | knownRegions = ( 135 | en, 136 | Base, 137 | ); 138 | mainGroup = 7215EB251E9CF07800F3BB57; 139 | productRefGroup = 7215EB2F1E9CF07800F3BB57 /* Products */; 140 | projectDirPath = ""; 141 | projectRoot = ""; 142 | targets = ( 143 | 7215EB2D1E9CF07800F3BB57 /* TNSliderExample */, 144 | ); 145 | }; 146 | /* End PBXProject section */ 147 | 148 | /* Begin PBXResourcesBuildPhase section */ 149 | 7215EB2C1E9CF07800F3BB57 /* Resources */ = { 150 | isa = PBXResourcesBuildPhase; 151 | buildActionMask = 2147483647; 152 | files = ( 153 | 7215EB431E9CF18B00F3BB57 /* Main.storyboard in Resources */, 154 | 7215EB471E9CF1AE00F3BB57 /* LaunchScreen.xib in Resources */, 155 | 7215EB391E9CF07800F3BB57 /* Images.xcassets in Resources */, 156 | ); 157 | runOnlyForDeploymentPostprocessing = 0; 158 | }; 159 | /* End PBXResourcesBuildPhase section */ 160 | 161 | /* Begin PBXShellScriptBuildPhase section */ 162 | 84BEC29EF66A02FC5FEA3F09 /* [CP] Embed Pods Frameworks */ = { 163 | isa = PBXShellScriptBuildPhase; 164 | buildActionMask = 2147483647; 165 | files = ( 166 | ); 167 | inputPaths = ( 168 | ); 169 | name = "[CP] Embed Pods Frameworks"; 170 | outputPaths = ( 171 | ); 172 | runOnlyForDeploymentPostprocessing = 0; 173 | shellPath = /bin/sh; 174 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample-frameworks.sh\"\n"; 175 | showEnvVarsInLog = 0; 176 | }; 177 | DC061E8312E3DD2B5F721B08 /* [CP] Check Pods Manifest.lock */ = { 178 | isa = PBXShellScriptBuildPhase; 179 | buildActionMask = 2147483647; 180 | files = ( 181 | ); 182 | inputPaths = ( 183 | ); 184 | name = "[CP] Check Pods Manifest.lock"; 185 | outputPaths = ( 186 | ); 187 | runOnlyForDeploymentPostprocessing = 0; 188 | shellPath = /bin/sh; 189 | shellScript = "diff \"${PODS_ROOT}/../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"; 190 | showEnvVarsInLog = 0; 191 | }; 192 | F73AFEDD49A9083D3036520B /* [CP] Copy Pods Resources */ = { 193 | isa = PBXShellScriptBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | ); 197 | inputPaths = ( 198 | ); 199 | name = "[CP] Copy Pods Resources"; 200 | outputPaths = ( 201 | ); 202 | runOnlyForDeploymentPostprocessing = 0; 203 | shellPath = /bin/sh; 204 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-TNSliderExample/Pods-TNSliderExample-resources.sh\"\n"; 205 | showEnvVarsInLog = 0; 206 | }; 207 | /* End PBXShellScriptBuildPhase section */ 208 | 209 | /* Begin PBXSourcesBuildPhase section */ 210 | 7215EB2A1E9CF07800F3BB57 /* Sources */ = { 211 | isa = PBXSourcesBuildPhase; 212 | buildActionMask = 2147483647; 213 | files = ( 214 | 7215EB341E9CF07800F3BB57 /* ViewController.swift in Sources */, 215 | 7215EB321E9CF07800F3BB57 /* AppDelegate.swift in Sources */, 216 | ); 217 | runOnlyForDeploymentPostprocessing = 0; 218 | }; 219 | /* End PBXSourcesBuildPhase section */ 220 | 221 | /* Begin PBXVariantGroup section */ 222 | 7215EB351E9CF07800F3BB57 /* Main.storyboard */ = { 223 | isa = PBXVariantGroup; 224 | children = ( 225 | 7215EB361E9CF07800F3BB57 /* Base */, 226 | ); 227 | name = Main.storyboard; 228 | sourceTree = ""; 229 | }; 230 | 7215EB451E9CF1AE00F3BB57 /* LaunchScreen.xib */ = { 231 | isa = PBXVariantGroup; 232 | children = ( 233 | 7215EB461E9CF1AE00F3BB57 /* Base */, 234 | ); 235 | name = LaunchScreen.xib; 236 | sourceTree = ""; 237 | }; 238 | /* End PBXVariantGroup section */ 239 | 240 | /* Begin XCBuildConfiguration section */ 241 | 7215EB3E1E9CF07800F3BB57 /* Debug */ = { 242 | isa = XCBuildConfiguration; 243 | buildSettings = { 244 | ALWAYS_SEARCH_USER_PATHS = NO; 245 | CLANG_ANALYZER_NONNULL = YES; 246 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 247 | CLANG_CXX_LIBRARY = "libc++"; 248 | CLANG_ENABLE_MODULES = YES; 249 | CLANG_ENABLE_OBJC_ARC = YES; 250 | CLANG_WARN_BOOL_CONVERSION = YES; 251 | CLANG_WARN_CONSTANT_CONVERSION = YES; 252 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 253 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 254 | CLANG_WARN_EMPTY_BODY = YES; 255 | CLANG_WARN_ENUM_CONVERSION = YES; 256 | CLANG_WARN_INFINITE_RECURSION = YES; 257 | CLANG_WARN_INT_CONVERSION = YES; 258 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 259 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 260 | CLANG_WARN_UNREACHABLE_CODE = YES; 261 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 262 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 263 | COPY_PHASE_STRIP = NO; 264 | DEBUG_INFORMATION_FORMAT = dwarf; 265 | ENABLE_STRICT_OBJC_MSGSEND = YES; 266 | ENABLE_TESTABILITY = YES; 267 | GCC_C_LANGUAGE_STANDARD = gnu99; 268 | GCC_DYNAMIC_NO_PIC = NO; 269 | GCC_NO_COMMON_BLOCKS = YES; 270 | GCC_OPTIMIZATION_LEVEL = 0; 271 | GCC_PREPROCESSOR_DEFINITIONS = ( 272 | "DEBUG=1", 273 | "$(inherited)", 274 | ); 275 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 276 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 277 | GCC_WARN_UNDECLARED_SELECTOR = YES; 278 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 279 | GCC_WARN_UNUSED_FUNCTION = YES; 280 | GCC_WARN_UNUSED_VARIABLE = YES; 281 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 282 | MTL_ENABLE_DEBUG_INFO = YES; 283 | ONLY_ACTIVE_ARCH = YES; 284 | SDKROOT = iphoneos; 285 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 286 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 287 | TARGETED_DEVICE_FAMILY = "1,2"; 288 | }; 289 | name = Debug; 290 | }; 291 | 7215EB3F1E9CF07800F3BB57 /* Release */ = { 292 | isa = XCBuildConfiguration; 293 | buildSettings = { 294 | ALWAYS_SEARCH_USER_PATHS = NO; 295 | CLANG_ANALYZER_NONNULL = YES; 296 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 297 | CLANG_CXX_LIBRARY = "libc++"; 298 | CLANG_ENABLE_MODULES = YES; 299 | CLANG_ENABLE_OBJC_ARC = YES; 300 | CLANG_WARN_BOOL_CONVERSION = YES; 301 | CLANG_WARN_CONSTANT_CONVERSION = YES; 302 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 303 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 304 | CLANG_WARN_EMPTY_BODY = YES; 305 | CLANG_WARN_ENUM_CONVERSION = YES; 306 | CLANG_WARN_INFINITE_RECURSION = YES; 307 | CLANG_WARN_INT_CONVERSION = YES; 308 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 309 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 310 | CLANG_WARN_UNREACHABLE_CODE = YES; 311 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 312 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 313 | COPY_PHASE_STRIP = NO; 314 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 315 | ENABLE_NS_ASSERTIONS = NO; 316 | ENABLE_STRICT_OBJC_MSGSEND = YES; 317 | GCC_C_LANGUAGE_STANDARD = gnu99; 318 | GCC_NO_COMMON_BLOCKS = YES; 319 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 320 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 321 | GCC_WARN_UNDECLARED_SELECTOR = YES; 322 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 323 | GCC_WARN_UNUSED_FUNCTION = YES; 324 | GCC_WARN_UNUSED_VARIABLE = YES; 325 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 326 | MTL_ENABLE_DEBUG_INFO = NO; 327 | SDKROOT = iphoneos; 328 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 329 | TARGETED_DEVICE_FAMILY = "1,2"; 330 | VALIDATE_PRODUCT = YES; 331 | }; 332 | name = Release; 333 | }; 334 | 7215EB411E9CF07800F3BB57 /* Debug */ = { 335 | isa = XCBuildConfiguration; 336 | baseConfigurationReference = 19567596F149B3E3974A2A9D /* Pods-TNSliderExample.debug.xcconfig */; 337 | buildSettings = { 338 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 339 | INFOPLIST_FILE = TNSliderExample/Info.plist; 340 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 341 | PRODUCT_BUNDLE_IDENTIFIER = com.tiennth.TNSliderExample; 342 | PRODUCT_NAME = "$(TARGET_NAME)"; 343 | SWIFT_VERSION = 3.0; 344 | }; 345 | name = Debug; 346 | }; 347 | 7215EB421E9CF07800F3BB57 /* Release */ = { 348 | isa = XCBuildConfiguration; 349 | baseConfigurationReference = 504509094E9A28437A70A622 /* Pods-TNSliderExample.release.xcconfig */; 350 | buildSettings = { 351 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 352 | INFOPLIST_FILE = TNSliderExample/Info.plist; 353 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 354 | PRODUCT_BUNDLE_IDENTIFIER = com.tiennth.TNSliderExample; 355 | PRODUCT_NAME = "$(TARGET_NAME)"; 356 | SWIFT_VERSION = 3.0; 357 | }; 358 | name = Release; 359 | }; 360 | /* End XCBuildConfiguration section */ 361 | 362 | /* Begin XCConfigurationList section */ 363 | 7215EB291E9CF07800F3BB57 /* Build configuration list for PBXProject "TNSliderExample" */ = { 364 | isa = XCConfigurationList; 365 | buildConfigurations = ( 366 | 7215EB3E1E9CF07800F3BB57 /* Debug */, 367 | 7215EB3F1E9CF07800F3BB57 /* Release */, 368 | ); 369 | defaultConfigurationIsVisible = 0; 370 | defaultConfigurationName = Release; 371 | }; 372 | 7215EB401E9CF07800F3BB57 /* Build configuration list for PBXNativeTarget "TNSliderExample" */ = { 373 | isa = XCConfigurationList; 374 | buildConfigurations = ( 375 | 7215EB411E9CF07800F3BB57 /* Debug */, 376 | 7215EB421E9CF07800F3BB57 /* Release */, 377 | ); 378 | defaultConfigurationIsVisible = 0; 379 | defaultConfigurationName = Release; 380 | }; 381 | /* End XCConfigurationList section */ 382 | }; 383 | rootObject = 7215EB261E9CF07800F3BB57 /* Project object */; 384 | } 385 | -------------------------------------------------------------------------------- /Example/TNSliderExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/TNSliderExample.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/TNSliderExample/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // TNSlider 4 | // 5 | // Created by Tien Nguyen on 02/26/2017. 6 | // Copyright (c) 2017 Tien Nguyen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // 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. 24 | // 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. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // 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. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/TNSliderExample/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/TNSliderExample/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 | 63 | 69 | 84 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 111 | 117 | 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 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | -------------------------------------------------------------------------------- /Example/TNSliderExample/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 | "info" : { 45 | "version" : 1, 46 | "author" : "xcode" 47 | } 48 | } -------------------------------------------------------------------------------- /Example/TNSliderExample/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/TNSliderExample/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // TNSlider 4 | // 5 | // Created by Tien Nguyen on 02/26/2017. 6 | // Copyright (c) 2017 Tien Nguyen. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import TNSlider 11 | 12 | class ViewController: UIViewController,TNSliderDelegate { 13 | 14 | @IBOutlet weak var slider: TNSlider! 15 | @IBOutlet weak var stepTextField: UITextField! 16 | @IBOutlet weak var minusButton: UIButton! 17 | @IBOutlet weak var plusButton: UIButton! 18 | 19 | override func viewDidLoad() { 20 | super.viewDidLoad() 21 | slider.delegate = self 22 | // Do any additional setup after loading the view, typically from a nib. 23 | } 24 | 25 | override func didReceiveMemoryWarning() { 26 | super.didReceiveMemoryWarning() 27 | // Dispose of any resources that can be recreated. 28 | } 29 | 30 | @IBAction func sliderValueChanged(_ sender: TNSlider) { 31 | print(sender.value) 32 | } 33 | 34 | @IBAction func minusButtonClicked(_ sender: UIButton) { 35 | } 36 | 37 | @IBAction func plusButtonClicked(_ sender: UIButton) { 38 | } 39 | 40 | @IBAction func setStepButtonClicked(_ sender: UIButton) { 41 | slider.step = Float(stepTextField.text ?? "0") ?? 0 42 | print("Step - real value: \(slider.step)") 43 | } 44 | 45 | func slider(_ slider: TNSlider, displayTextForValue value: Float) -> String { 46 | return String(format: "%.2f%%", value) 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Tien Nguyen 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 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TNSlider 2 | 3 | 4 | [![Version](https://img.shields.io/cocoapods/v/TNSlider.svg?style=flat)](http://cocoapods.org/pods/TNSlider) 5 | [![License](https://img.shields.io/cocoapods/l/TNSlider.svg?style=flat)](http://cocoapods.org/pods/TNSlider) 6 | [![Platform](https://img.shields.io/cocoapods/p/TNSlider.svg?style=flat)](http://cocoapods.org/pods/TNSlider) 7 | 8 | TNSlider is a slider that show current value on the thumb 9 | 10 | ## Screenshot 11 | 12 | 13 | Demo 14 | 15 | GIF created with [LiceCap](http://www.cockos.com/licecap/). 16 | 17 | 18 | 19 | ## Example 20 | 21 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 22 | 23 | ## Requirements 24 | 25 | - iOS 8.0+ 26 | - Xcode 8.0+ 27 | - Swift 3.0+ 28 | 29 | ## Installation 30 | 31 | TNSlider is available through [CocoaPods](http://cocoapods.org). To install 32 | it, simply add the following line to your Podfile: 33 | 34 | ```ruby 35 | pod "TNSlider" 36 | ``` 37 | 38 | ## Author 39 | 40 | Tien Nguyen, thanhtien2302@gmail.com 41 | 42 | ## License 43 | 44 | TNSlider is available under the MIT license. 45 | 46 | Copyright (c) 2016 Tien Nguyen 47 | 48 | Permission is hereby granted, free of charge, to any person obtaining a copy 49 | of this software and associated documentation files (the "Software"), to deal 50 | in the Software without restriction, including without limitation the rights 51 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 52 | copies of the Software, and to permit persons to whom the Software is 53 | furnished to do so, subject to the following conditions: 54 | 55 | The above copyright notice and this permission notice shall be included in 56 | all copies or substantial portions of the Software. 57 | 58 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 59 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 60 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 61 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 62 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 63 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 64 | THE SOFTWARE. -------------------------------------------------------------------------------- /Screenshot/Screenshot_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiennth/TNSlider/fd7d9f6d37163f0c7274467e8ee5f008427ffbd8/Screenshot/Screenshot_1.png -------------------------------------------------------------------------------- /Screenshot/Screenshot_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiennth/TNSlider/fd7d9f6d37163f0c7274467e8ee5f008427ffbd8/Screenshot/Screenshot_2.png -------------------------------------------------------------------------------- /Screenshot/tnslider.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiennth/TNSlider/fd7d9f6d37163f0c7274467e8ee5f008427ffbd8/Screenshot/tnslider.gif -------------------------------------------------------------------------------- /TNSlider.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'TNSlider' 3 | s.version = '0.2.1' 4 | s.summary = 'A control like UISlider but show current value on the thumb.' 5 | s.description = "TNSlider is a control for selecting a single value from a continous range of values like UISlider. The different is TNSlider show current selected value on the indicator (or thumb), that make you have more room for your important contents but still let user know what is the selected value of the slider." 6 | s.homepage = 'https://github.com/tiennth/TNSlider' 7 | # s.screenshots = 'https://github.com/tiennth/TNSlider/blob/master/Screenshot_1.png', 'https://github.com/tiennth/TNSlider/blob/master/Screenshot_2.png' 8 | s.license = { :type => 'MIT', :file => 'LICENSE' } 9 | s.author = { 'Tien Nguyen' => 'thanhtien2302@gmail.com' } 10 | s.source = { :git => 'https://github.com/tiennth/TNSlider.git', :tag => s.version.to_s } 11 | # s.social_media_url = 'https://twitter.com/tiennth' 12 | s.ios.deployment_target = '8.0' 13 | s.source_files = 'TNSlider/Sources/*.swift' 14 | 15 | end 16 | -------------------------------------------------------------------------------- /TNSlider/Sources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tiennth/TNSlider/fd7d9f6d37163f0c7274467e8ee5f008427ffbd8/TNSlider/Sources/.gitkeep -------------------------------------------------------------------------------- /TNSlider/Sources/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 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /TNSlider/Sources/TNConstants.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TNConstants.swift 3 | // Pods 4 | // 5 | // Created by Tien on 2/26/17. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | class TNConstants: NSObject { 12 | static let trackMinColor = UIColor.blue 13 | static let trackMaxColor = UIColor.lightGray 14 | 15 | static let thumbBackgroundColor = UIColor.white 16 | static let thumbTextColor = UIColor.black 17 | } 18 | -------------------------------------------------------------------------------- /TNSlider/Sources/TNSlider.h: -------------------------------------------------------------------------------- 1 | // 2 | // TNSlider.h 3 | // TNSlider 4 | // 5 | // Created by Tien on 4/11/17. 6 | // Copyright © 2017 tiennth. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for TNSlider. 12 | FOUNDATION_EXPORT double TNSliderVersionNumber; 13 | 14 | //! Project version string for TNSlider. 15 | FOUNDATION_EXPORT const unsigned char TNSliderVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /TNSlider/Sources/TNSlider.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TNSlider.swift 3 | // TNSlider 4 | // 5 | // Created by Tien on 6/9/16. 6 | // Copyright © 2016 tiennth. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension String { 12 | func height(withConstrainedWidth width: CGFloat, font: UIFont) -> CGFloat { 13 | let constraintRect = CGSize(width: width, height: .greatestFiniteMagnitude) 14 | let boundingBox = self.boundingRect(with: constraintRect, options: .usesLineFragmentOrigin, attributes: [NSFontAttributeName: font], context: nil) 15 | 16 | return boundingBox.height 17 | } 18 | 19 | func width(withConstraintedHeight height: CGFloat, font: UIFont) -> CGFloat { 20 | let constraintRect = CGSize(width: .greatestFiniteMagnitude, height: height) 21 | let boundingBox = self.boundingRect(with: constraintRect, options: .usesLineFragmentOrigin, attributes: [NSFontAttributeName: font], context: nil) 22 | 23 | return boundingBox.width 24 | } 25 | } 26 | 27 | @objc public protocol TNSliderDelegate: class { 28 | func slider(_ slider: TNSlider, displayTextForValue value: Float) -> String 29 | } 30 | 31 | @IBDesignable 32 | public class TNSlider: UIControl { 33 | 34 | @IBOutlet weak public var delegate: TNSliderDelegate? { 35 | didSet { 36 | //Get maximum value text length 37 | if let maxText:String = self.delegate?.slider(self, displayTextForValue: self.maximum) 38 | { 39 | self.thumbWidth = maxText.width(withConstraintedHeight: self.thumbHeight, font: UIFont.systemFont(ofSize: 11.0)) + 2.0 40 | thumbLayer.bounds = CGRect(x: 0, y: 0, width: thumbWidth, height: thumbHeight) 41 | thumbLayer.position = CGPoint(x: positionForValue(value: minimum), y: bounds.size.height / 2) 42 | thumbLayer.cornerRadius = thumbHeight / 2 43 | thumbLayer.shadowPath = UIBezierPath(roundedRect: thumbLayer.bounds, cornerRadius: thumbHeight / 2).cgPath 44 | } 45 | updateThumbLayersText() 46 | } 47 | } 48 | 49 | // LOGGING 50 | func log(_ msg: String) { 51 | // print(msg) 52 | } 53 | // 54 | 55 | // default 0.0. this value will be pinned to min/max 56 | @IBInspectable public var value: Float = 0 { 57 | didSet { 58 | if (value < minimum) { 59 | minimum = value 60 | } 61 | 62 | if (value > maximum) { 63 | maximum = value 64 | } 65 | 66 | reinitComponentValues() 67 | redrawLayers() 68 | } 69 | } 70 | 71 | @IBInspectable public var minimum: Float = 0 { 72 | didSet { 73 | log("Minimum didSet") 74 | if (minimum > maximum) { 75 | maximum = minimum 76 | } 77 | 78 | if (value < minimum) { 79 | value = minimum 80 | } 81 | log("Final minimum: \(minimum)") 82 | reinitComponentValues() 83 | redrawLayers() 84 | } 85 | } 86 | 87 | @IBInspectable public var maximum: Float = 1 { 88 | didSet { 89 | log("Maximum didSet") 90 | if (maximum < minimum) { 91 | minimum = maximum 92 | } 93 | 94 | if (value > maximum) { 95 | value = maximum 96 | } 97 | log("Final maximum: \(maximum)") 98 | reinitComponentValues() 99 | redrawLayers() 100 | } 101 | } 102 | 103 | // Step == 0 means disable snapping to value. 104 | @IBInspectable public var step: Float = 0 { 105 | didSet { 106 | log("Step didSet") 107 | if (step < 0) { 108 | step = 0 109 | } 110 | if (step > maximum - minimum) { 111 | maximum = minimum + step 112 | } 113 | 114 | log("Final step \(step)") 115 | } 116 | } 117 | 118 | @IBInspectable public var trackMinColor: UIColor = TNConstants.trackMinColor { 119 | didSet { 120 | trackLayer.trackMinColor = trackMinColor 121 | redrawLayers() 122 | } 123 | } 124 | 125 | @IBInspectable public var trackMaxColor: UIColor = TNConstants.trackMaxColor { 126 | didSet { 127 | trackLayer.trackMaxColor = trackMaxColor 128 | redrawLayers() 129 | } 130 | } 131 | 132 | @IBInspectable public var thumbBackgroundColor: UIColor = TNConstants.thumbBackgroundColor { 133 | didSet { 134 | thumbLayer.backgroundColor = thumbBackgroundColor.cgColor 135 | redrawLayers() 136 | } 137 | } 138 | 139 | @IBInspectable public var thumbTextColor: UIColor = TNConstants.thumbTextColor { 140 | didSet { 141 | thumbLayer.foregroundColor = thumbTextColor.cgColor 142 | redrawLayers() 143 | } 144 | } 145 | 146 | // How often valueChanged be triggered. 147 | // true: valueChanged will be called many times during thumb dragging. 148 | // false: valueChanged will on called only one time when dragging finished. 149 | @IBInspectable public var continuous: Bool = true // if set, value change events are generated any time the value changes due to dragging. default = YES 150 | 151 | private var trackLayer: TNTrackLayer 152 | private var thumbLayer: CATextLayer 153 | 154 | private var previousTouchPoint = CGPoint.zero 155 | private var usableTrackingLength: CGFloat = 0 156 | private var pointsPerValueScale: CGFloat = 1 157 | 158 | private let trackHeight: CGFloat = 4 159 | private let trackInset: CGFloat = 0 160 | private let thumbHeight: CGFloat = 16 161 | private var thumbWidth: CGFloat = 38 162 | 163 | 164 | required public override init(frame: CGRect) { 165 | continuous = true 166 | 167 | trackLayer = TNTrackLayer() 168 | thumbLayer = TNTextLayer() 169 | 170 | super.init(frame: frame) 171 | translatesAutoresizingMaskIntoConstraints = false 172 | layer.addSublayer(trackLayer) 173 | layer.addSublayer(thumbLayer) 174 | 175 | initLayers() 176 | commonInit() 177 | } 178 | 179 | required public init?(coder aDecoder: NSCoder) { 180 | continuous = true 181 | trackLayer = TNTrackLayer() 182 | thumbLayer = TNTextLayer() 183 | 184 | super.init(coder: aDecoder) 185 | translatesAutoresizingMaskIntoConstraints = false 186 | layer.addSublayer(trackLayer) 187 | layer.addSublayer(thumbLayer) 188 | 189 | initLayers() 190 | commonInit() 191 | } 192 | 193 | // MARK: - Init functions 194 | func initLayers() { 195 | trackLayer.contentsScale = UIScreen.main.scale 196 | trackLayer.frame = trackRectForBound(bounds) 197 | trackLayer.setNeedsDisplay() 198 | 199 | initThumbLayer() 200 | } 201 | 202 | func initThumbLayer() { 203 | thumbLayer.anchorPoint = CGPoint(x: 0.5, y: 0.5) 204 | thumbLayer.bounds = CGRect(x: 0, y: 0, width: thumbWidth, height: thumbHeight) 205 | thumbLayer.position = CGPoint(x: positionForValue(value: minimum), y: bounds.size.height / 2) 206 | thumbLayer.foregroundColor = UIColor.black.cgColor 207 | thumbLayer.cornerRadius = thumbHeight / 2 208 | thumbLayer.fontSize = 11 209 | thumbLayer.backgroundColor = UIColor.white.cgColor 210 | thumbLayer.alignmentMode = kCAAlignmentCenter 211 | thumbLayer.contentsScale = UIScreen.main.scale 212 | 213 | thumbLayer.masksToBounds = false 214 | thumbLayer.shadowOffset = CGSize(width: 0, height: 0.5) 215 | thumbLayer.shadowColor = UIColor.black.cgColor 216 | thumbLayer.shadowRadius = 2 217 | thumbLayer.shadowOpacity = 0.125 218 | thumbLayer.shadowPath = UIBezierPath(roundedRect: thumbLayer.bounds, cornerRadius: thumbHeight / 2).cgPath 219 | 220 | } 221 | 222 | func commonInit() { 223 | usableTrackingLength = bounds.size.width - thumbWidth 224 | translatesAutoresizingMaskIntoConstraints = false 225 | } 226 | 227 | // MARK: - Update functions 228 | func reinitComponentValues() { 229 | trackLayer.minimumValue = minimum 230 | trackLayer.maximumValue = maximum 231 | trackLayer.value = value 232 | 233 | updateThumbLayersText() 234 | updateThumbLayersPosition() 235 | } 236 | 237 | func redrawLayers() { 238 | thumbLayer.setNeedsDisplay() 239 | trackLayer.setNeedsDisplay() 240 | } 241 | 242 | func updateThumbLayersText() { 243 | thumbLayer.string = textForValue(value) 244 | } 245 | 246 | func updateThumbLayersPosition() { 247 | CATransaction.begin() 248 | CATransaction.setDisableActions(true) 249 | CATransaction.setAnimationDuration(0) 250 | 251 | let thumbCenterX = positionForValue(value: value) 252 | thumbLayer.position = CGPoint(x: thumbCenterX, y: bounds.size.height / 2) 253 | CATransaction.commit() 254 | } 255 | 256 | func updateLayersValue() { 257 | updateThumbLayersText() 258 | trackLayer.value = value 259 | } 260 | 261 | func positionForValue(value: Float) -> CGFloat { 262 | if (minimum == maximum) { 263 | return thumbWidth / 2 264 | } 265 | 266 | return usableTrackingLength * CGFloat((value - minimum) / (maximum - minimum)) + thumbWidth / 2 267 | } 268 | 269 | // MARK: - Touch handling functions 270 | public override func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool { 271 | previousTouchPoint = touch.location(in: self) 272 | print(previousTouchPoint) 273 | if thumbLayer.frame.contains(previousTouchPoint) { 274 | return true 275 | } 276 | return false 277 | } 278 | 279 | public override func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool { 280 | 281 | let touchPoint = touch.location(in: self) 282 | let delta = touchPoint.x - previousTouchPoint.x 283 | let valueDelta = (maximum - minimum) * Float(delta / usableTrackingLength) 284 | 285 | var tempValue = value + valueDelta 286 | if (tempValue > maximum) { 287 | tempValue = maximum 288 | } else if (tempValue < minimum) { 289 | tempValue = minimum 290 | } 291 | 292 | if (tempValue == value) { 293 | // Do nothing and return 294 | return true 295 | } 296 | 297 | value = tempValue 298 | previousTouchPoint = touchPoint 299 | 300 | if continuous { 301 | sendActions(for: .valueChanged) 302 | } 303 | 304 | return true 305 | } 306 | 307 | public override func endTracking(_ touch: UITouch?, with event: UIEvent?) { 308 | super.endTracking(touch, with: event) 309 | 310 | // Snap to value 311 | if step > 0 { 312 | let noOfStep = (value/step).rounded(.toNearestOrEven) 313 | value = noOfStep * step 314 | } 315 | 316 | if !continuous { 317 | sendActions(for: .valueChanged) 318 | } 319 | } 320 | 321 | // MARK: - Auto layout 322 | public override func layoutSubviews() { 323 | super.layoutSubviews() 324 | 325 | trackLayer.frame = trackRectForBound(bounds) 326 | commonInit() 327 | updateThumbLayersPosition() 328 | redrawLayers() 329 | } 330 | 331 | public override var intrinsicContentSize: CGSize { 332 | return CGSize(width: 118, height: 31) 333 | } 334 | 335 | public override func prepareForInterfaceBuilder() { 336 | trackLayer.frame = trackRectForBound(bounds) 337 | commonInit() 338 | updateThumbLayersPosition() 339 | redrawLayers() 340 | } 341 | 342 | // MARK: - Helper functions 343 | func trackRectForBound(_ bound: CGRect) -> CGRect { 344 | return CGRect(x: trackInset, y: (bound.size.height - trackHeight) / 2, width: bound.size.width - 2 * trackInset, height: trackHeight) 345 | } 346 | 347 | func textForValue(_ value: Float) -> String { 348 | if let delegate = delegate { 349 | return delegate.slider(self, displayTextForValue: value) 350 | } else { 351 | return String(format: "%.2f", value) 352 | } 353 | } 354 | 355 | } 356 | -------------------------------------------------------------------------------- /TNSlider/Sources/TNTextLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TNTextLayer.swift 3 | // TNThumbValueSlider 4 | // 5 | // Created by Tien on 6/11/16. 6 | // Copyright © 2016 tiennth. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class TNTextLayer: CATextLayer { 12 | 13 | // REF: http://lists.apple.com/archives/quartz-dev/2008/Aug/msg00016.html 14 | // CREDIT: David Hoerl - https://github.com/dhoerl 15 | // USAGE: To fix the vertical alignment issue that currently exists within the CATextLayer class. Change made to the yDiff calculation. 16 | 17 | override func draw(in ctx: CGContext) { 18 | let height = self.bounds.size.height 19 | let fontSize = self.fontSize 20 | let yDiff = (height-fontSize)/2 - fontSize/10 21 | 22 | ctx.saveGState() 23 | ctx.translateBy(x: 0.0, y: yDiff) 24 | super.draw(in: ctx) 25 | ctx.restoreGState() 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /TNSlider/Sources/TNTrackLayer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TNTrackLayer.swift 3 | // TNThumbValueSlider 4 | // 5 | // Created by Tien on 6/9/16. 6 | // Copyright © 2016 tiennth. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class TNTrackLayer: CALayer { 12 | 13 | var trackMinColor: UIColor = TNConstants.trackMinColor 14 | var trackMaxColor: UIColor = TNConstants.trackMaxColor 15 | 16 | var value: Float = 0 17 | var minimumValue: Float = 0 18 | var maximumValue: Float = 1 19 | 20 | override func draw(in ctx: CGContext) { 21 | let cornerRadius = bounds.height * 1/2 22 | 23 | let range = maximumValue - minimumValue 24 | let thresholdX = bounds.size.width * CGFloat((value - minimumValue) / range) 25 | let trackMinRect = CGRect(x: 0, y: 0, width: thresholdX, height: bounds.size.height) 26 | let trackMinPath = UIBezierPath(roundedRect: trackMinRect, cornerRadius: cornerRadius) 27 | ctx.setFillColor(trackMinColor.cgColor) 28 | ctx.addPath(trackMinPath.cgPath) 29 | ctx.fillPath() 30 | 31 | let trackMaxRect = CGRect(x: thresholdX, y: 0, width: bounds.size.width - thresholdX, height: bounds.size.height) 32 | let trackMaxPath = UIBezierPath(roundedRect: trackMaxRect, cornerRadius: cornerRadius) 33 | ctx.setFillColor(trackMaxColor.cgColor) 34 | ctx.addPath(trackMaxPath.cgPath) 35 | ctx.fillPath() 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /TNSlider/TNSlider.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 7215EB1F1E9CED5D00F3BB57 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 7215EB191E9CED5C00F3BB57 /* Info.plist */; }; 11 | 7215EB201E9CED5D00F3BB57 /* TNSlider.h in Headers */ = {isa = PBXBuildFile; fileRef = 7215EB1A1E9CED5D00F3BB57 /* TNSlider.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 7215EB211E9CED5D00F3BB57 /* TNSlider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7215EB1B1E9CED5D00F3BB57 /* TNSlider.swift */; }; 13 | 7215EB221E9CED5D00F3BB57 /* TNTextLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7215EB1C1E9CED5D00F3BB57 /* TNTextLayer.swift */; }; 14 | 7215EB231E9CED5D00F3BB57 /* TNConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7215EB1D1E9CED5D00F3BB57 /* TNConstants.swift */; }; 15 | 7215EB241E9CED5D00F3BB57 /* TNTrackLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7215EB1E1E9CED5D00F3BB57 /* TNTrackLayer.swift */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 7215EAFF1E9CEC2900F3BB57 /* TNSlider.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TNSlider.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 20 | 7215EB191E9CED5C00F3BB57 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 21 | 7215EB1A1E9CED5D00F3BB57 /* TNSlider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TNSlider.h; sourceTree = ""; }; 22 | 7215EB1B1E9CED5D00F3BB57 /* TNSlider.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TNSlider.swift; sourceTree = ""; }; 23 | 7215EB1C1E9CED5D00F3BB57 /* TNTextLayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TNTextLayer.swift; sourceTree = ""; }; 24 | 7215EB1D1E9CED5D00F3BB57 /* TNConstants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TNConstants.swift; sourceTree = ""; }; 25 | 7215EB1E1E9CED5D00F3BB57 /* TNTrackLayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TNTrackLayer.swift; sourceTree = ""; }; 26 | /* End PBXFileReference section */ 27 | 28 | /* Begin PBXFrameworksBuildPhase section */ 29 | 7215EAFB1E9CEC2900F3BB57 /* Frameworks */ = { 30 | isa = PBXFrameworksBuildPhase; 31 | buildActionMask = 2147483647; 32 | files = ( 33 | ); 34 | runOnlyForDeploymentPostprocessing = 0; 35 | }; 36 | /* End PBXFrameworksBuildPhase section */ 37 | 38 | /* Begin PBXGroup section */ 39 | 7215EAF51E9CEC2900F3BB57 = { 40 | isa = PBXGroup; 41 | children = ( 42 | 7215EB011E9CEC2900F3BB57 /* TNSlider */, 43 | 7215EB001E9CEC2900F3BB57 /* Products */, 44 | ); 45 | sourceTree = ""; 46 | }; 47 | 7215EB001E9CEC2900F3BB57 /* Products */ = { 48 | isa = PBXGroup; 49 | children = ( 50 | 7215EAFF1E9CEC2900F3BB57 /* TNSlider.framework */, 51 | ); 52 | name = Products; 53 | sourceTree = ""; 54 | }; 55 | 7215EB011E9CEC2900F3BB57 /* TNSlider */ = { 56 | isa = PBXGroup; 57 | children = ( 58 | 7215EB191E9CED5C00F3BB57 /* Info.plist */, 59 | 7215EB1A1E9CED5D00F3BB57 /* TNSlider.h */, 60 | 7215EB1B1E9CED5D00F3BB57 /* TNSlider.swift */, 61 | 7215EB1C1E9CED5D00F3BB57 /* TNTextLayer.swift */, 62 | 7215EB1D1E9CED5D00F3BB57 /* TNConstants.swift */, 63 | 7215EB1E1E9CED5D00F3BB57 /* TNTrackLayer.swift */, 64 | ); 65 | name = TNSlider; 66 | path = Sources; 67 | sourceTree = ""; 68 | }; 69 | /* End PBXGroup section */ 70 | 71 | /* Begin PBXHeadersBuildPhase section */ 72 | 7215EAFC1E9CEC2900F3BB57 /* Headers */ = { 73 | isa = PBXHeadersBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | 7215EB201E9CED5D00F3BB57 /* TNSlider.h in Headers */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | /* End PBXHeadersBuildPhase section */ 81 | 82 | /* Begin PBXNativeTarget section */ 83 | 7215EAFE1E9CEC2900F3BB57 /* TNSlider */ = { 84 | isa = PBXNativeTarget; 85 | buildConfigurationList = 7215EB071E9CEC2900F3BB57 /* Build configuration list for PBXNativeTarget "TNSlider" */; 86 | buildPhases = ( 87 | 7215EAFA1E9CEC2900F3BB57 /* Sources */, 88 | 7215EAFB1E9CEC2900F3BB57 /* Frameworks */, 89 | 7215EAFC1E9CEC2900F3BB57 /* Headers */, 90 | 7215EAFD1E9CEC2900F3BB57 /* Resources */, 91 | ); 92 | buildRules = ( 93 | ); 94 | dependencies = ( 95 | ); 96 | name = TNSlider; 97 | productName = TNSlider; 98 | productReference = 7215EAFF1E9CEC2900F3BB57 /* TNSlider.framework */; 99 | productType = "com.apple.product-type.framework"; 100 | }; 101 | /* End PBXNativeTarget section */ 102 | 103 | /* Begin PBXProject section */ 104 | 7215EAF61E9CEC2900F3BB57 /* Project object */ = { 105 | isa = PBXProject; 106 | attributes = { 107 | LastUpgradeCheck = 0820; 108 | ORGANIZATIONNAME = tiennth; 109 | TargetAttributes = { 110 | 7215EAFE1E9CEC2900F3BB57 = { 111 | CreatedOnToolsVersion = 8.2; 112 | LastSwiftMigration = 0820; 113 | ProvisioningStyle = Automatic; 114 | }; 115 | }; 116 | }; 117 | buildConfigurationList = 7215EAF91E9CEC2900F3BB57 /* Build configuration list for PBXProject "TNSlider" */; 118 | compatibilityVersion = "Xcode 3.2"; 119 | developmentRegion = English; 120 | hasScannedForEncodings = 0; 121 | knownRegions = ( 122 | en, 123 | ); 124 | mainGroup = 7215EAF51E9CEC2900F3BB57; 125 | productRefGroup = 7215EB001E9CEC2900F3BB57 /* Products */; 126 | projectDirPath = ""; 127 | projectRoot = ""; 128 | targets = ( 129 | 7215EAFE1E9CEC2900F3BB57 /* TNSlider */, 130 | ); 131 | }; 132 | /* End PBXProject section */ 133 | 134 | /* Begin PBXResourcesBuildPhase section */ 135 | 7215EAFD1E9CEC2900F3BB57 /* Resources */ = { 136 | isa = PBXResourcesBuildPhase; 137 | buildActionMask = 2147483647; 138 | files = ( 139 | 7215EB1F1E9CED5D00F3BB57 /* Info.plist in Resources */, 140 | ); 141 | runOnlyForDeploymentPostprocessing = 0; 142 | }; 143 | /* End PBXResourcesBuildPhase section */ 144 | 145 | /* Begin PBXSourcesBuildPhase section */ 146 | 7215EAFA1E9CEC2900F3BB57 /* Sources */ = { 147 | isa = PBXSourcesBuildPhase; 148 | buildActionMask = 2147483647; 149 | files = ( 150 | 7215EB221E9CED5D00F3BB57 /* TNTextLayer.swift in Sources */, 151 | 7215EB241E9CED5D00F3BB57 /* TNTrackLayer.swift in Sources */, 152 | 7215EB231E9CED5D00F3BB57 /* TNConstants.swift in Sources */, 153 | 7215EB211E9CED5D00F3BB57 /* TNSlider.swift in Sources */, 154 | ); 155 | runOnlyForDeploymentPostprocessing = 0; 156 | }; 157 | /* End PBXSourcesBuildPhase section */ 158 | 159 | /* Begin XCBuildConfiguration section */ 160 | 7215EB051E9CEC2900F3BB57 /* Debug */ = { 161 | isa = XCBuildConfiguration; 162 | buildSettings = { 163 | ALWAYS_SEARCH_USER_PATHS = NO; 164 | CLANG_ANALYZER_NONNULL = YES; 165 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 166 | CLANG_CXX_LIBRARY = "libc++"; 167 | CLANG_ENABLE_MODULES = YES; 168 | CLANG_ENABLE_OBJC_ARC = YES; 169 | CLANG_WARN_BOOL_CONVERSION = YES; 170 | CLANG_WARN_CONSTANT_CONVERSION = YES; 171 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 172 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 173 | CLANG_WARN_EMPTY_BODY = YES; 174 | CLANG_WARN_ENUM_CONVERSION = YES; 175 | CLANG_WARN_INFINITE_RECURSION = YES; 176 | CLANG_WARN_INT_CONVERSION = YES; 177 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 178 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 179 | CLANG_WARN_UNREACHABLE_CODE = YES; 180 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 181 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 182 | COPY_PHASE_STRIP = NO; 183 | CURRENT_PROJECT_VERSION = 1; 184 | DEBUG_INFORMATION_FORMAT = dwarf; 185 | ENABLE_STRICT_OBJC_MSGSEND = YES; 186 | ENABLE_TESTABILITY = YES; 187 | GCC_C_LANGUAGE_STANDARD = gnu99; 188 | GCC_DYNAMIC_NO_PIC = NO; 189 | GCC_NO_COMMON_BLOCKS = YES; 190 | GCC_OPTIMIZATION_LEVEL = 0; 191 | GCC_PREPROCESSOR_DEFINITIONS = ( 192 | "DEBUG=1", 193 | "$(inherited)", 194 | ); 195 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 196 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 197 | GCC_WARN_UNDECLARED_SELECTOR = YES; 198 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 199 | GCC_WARN_UNUSED_FUNCTION = YES; 200 | GCC_WARN_UNUSED_VARIABLE = YES; 201 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 202 | MTL_ENABLE_DEBUG_INFO = YES; 203 | ONLY_ACTIVE_ARCH = YES; 204 | SDKROOT = iphoneos; 205 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 206 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 207 | TARGETED_DEVICE_FAMILY = "1,2"; 208 | VERSIONING_SYSTEM = "apple-generic"; 209 | VERSION_INFO_PREFIX = ""; 210 | }; 211 | name = Debug; 212 | }; 213 | 7215EB061E9CEC2900F3BB57 /* Release */ = { 214 | isa = XCBuildConfiguration; 215 | buildSettings = { 216 | ALWAYS_SEARCH_USER_PATHS = NO; 217 | CLANG_ANALYZER_NONNULL = YES; 218 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 219 | CLANG_CXX_LIBRARY = "libc++"; 220 | CLANG_ENABLE_MODULES = YES; 221 | CLANG_ENABLE_OBJC_ARC = YES; 222 | CLANG_WARN_BOOL_CONVERSION = YES; 223 | CLANG_WARN_CONSTANT_CONVERSION = YES; 224 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 225 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 226 | CLANG_WARN_EMPTY_BODY = YES; 227 | CLANG_WARN_ENUM_CONVERSION = YES; 228 | CLANG_WARN_INFINITE_RECURSION = YES; 229 | CLANG_WARN_INT_CONVERSION = YES; 230 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 231 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 232 | CLANG_WARN_UNREACHABLE_CODE = YES; 233 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 234 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 235 | COPY_PHASE_STRIP = NO; 236 | CURRENT_PROJECT_VERSION = 1; 237 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 238 | ENABLE_NS_ASSERTIONS = NO; 239 | ENABLE_STRICT_OBJC_MSGSEND = YES; 240 | GCC_C_LANGUAGE_STANDARD = gnu99; 241 | GCC_NO_COMMON_BLOCKS = YES; 242 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 243 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 244 | GCC_WARN_UNDECLARED_SELECTOR = YES; 245 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 246 | GCC_WARN_UNUSED_FUNCTION = YES; 247 | GCC_WARN_UNUSED_VARIABLE = YES; 248 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 249 | MTL_ENABLE_DEBUG_INFO = NO; 250 | SDKROOT = iphoneos; 251 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 252 | TARGETED_DEVICE_FAMILY = "1,2"; 253 | VALIDATE_PRODUCT = YES; 254 | VERSIONING_SYSTEM = "apple-generic"; 255 | VERSION_INFO_PREFIX = ""; 256 | }; 257 | name = Release; 258 | }; 259 | 7215EB081E9CEC2900F3BB57 /* Debug */ = { 260 | isa = XCBuildConfiguration; 261 | buildSettings = { 262 | CLANG_ENABLE_MODULES = YES; 263 | CODE_SIGN_IDENTITY = ""; 264 | DEFINES_MODULE = YES; 265 | DYLIB_COMPATIBILITY_VERSION = 1; 266 | DYLIB_CURRENT_VERSION = 1; 267 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 268 | INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; 269 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 270 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 271 | PRODUCT_BUNDLE_IDENTIFIER = com.tiennth.TNSlider; 272 | PRODUCT_NAME = "$(TARGET_NAME)"; 273 | SKIP_INSTALL = YES; 274 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 275 | SWIFT_VERSION = 3.0; 276 | }; 277 | name = Debug; 278 | }; 279 | 7215EB091E9CEC2900F3BB57 /* Release */ = { 280 | isa = XCBuildConfiguration; 281 | buildSettings = { 282 | CLANG_ENABLE_MODULES = YES; 283 | CODE_SIGN_IDENTITY = ""; 284 | DEFINES_MODULE = YES; 285 | DYLIB_COMPATIBILITY_VERSION = 1; 286 | DYLIB_CURRENT_VERSION = 1; 287 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 288 | INFOPLIST_FILE = "$(SRCROOT)/Sources/Info.plist"; 289 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 290 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 291 | PRODUCT_BUNDLE_IDENTIFIER = com.tiennth.TNSlider; 292 | PRODUCT_NAME = "$(TARGET_NAME)"; 293 | SKIP_INSTALL = YES; 294 | SWIFT_VERSION = 3.0; 295 | }; 296 | name = Release; 297 | }; 298 | /* End XCBuildConfiguration section */ 299 | 300 | /* Begin XCConfigurationList section */ 301 | 7215EAF91E9CEC2900F3BB57 /* Build configuration list for PBXProject "TNSlider" */ = { 302 | isa = XCConfigurationList; 303 | buildConfigurations = ( 304 | 7215EB051E9CEC2900F3BB57 /* Debug */, 305 | 7215EB061E9CEC2900F3BB57 /* Release */, 306 | ); 307 | defaultConfigurationIsVisible = 0; 308 | defaultConfigurationName = Release; 309 | }; 310 | 7215EB071E9CEC2900F3BB57 /* Build configuration list for PBXNativeTarget "TNSlider" */ = { 311 | isa = XCConfigurationList; 312 | buildConfigurations = ( 313 | 7215EB081E9CEC2900F3BB57 /* Debug */, 314 | 7215EB091E9CEC2900F3BB57 /* Release */, 315 | ); 316 | defaultConfigurationIsVisible = 0; 317 | defaultConfigurationName = Release; 318 | }; 319 | /* End XCConfigurationList section */ 320 | }; 321 | rootObject = 7215EAF61E9CEC2900F3BB57 /* Project object */; 322 | } 323 | -------------------------------------------------------------------------------- /TNSlider/TNSlider.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /TNSlider/TNSlider.xcodeproj/xcshareddata/xcschemes/TNSlider.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 | --------------------------------------------------------------------------------