├── .gitignore ├── .swift-version ├── .travis.yml ├── Demo.gif ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── SVColorPicker.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-SVColorPicker_Example │ │ ├── Info.plist │ │ ├── Pods-SVColorPicker_Example-acknowledgements.markdown │ │ ├── Pods-SVColorPicker_Example-acknowledgements.plist │ │ ├── Pods-SVColorPicker_Example-dummy.m │ │ ├── Pods-SVColorPicker_Example-frameworks.sh │ │ ├── Pods-SVColorPicker_Example-resources.sh │ │ ├── Pods-SVColorPicker_Example-umbrella.h │ │ ├── Pods-SVColorPicker_Example.debug.xcconfig │ │ ├── Pods-SVColorPicker_Example.modulemap │ │ └── Pods-SVColorPicker_Example.release.xcconfig │ │ ├── Pods-SVColorPicker_Tests │ │ ├── Info.plist │ │ ├── Pods-SVColorPicker_Tests-acknowledgements.markdown │ │ ├── Pods-SVColorPicker_Tests-acknowledgements.plist │ │ ├── Pods-SVColorPicker_Tests-dummy.m │ │ ├── Pods-SVColorPicker_Tests-frameworks.sh │ │ ├── Pods-SVColorPicker_Tests-resources.sh │ │ ├── Pods-SVColorPicker_Tests-umbrella.h │ │ ├── Pods-SVColorPicker_Tests.debug.xcconfig │ │ ├── Pods-SVColorPicker_Tests.modulemap │ │ └── Pods-SVColorPicker_Tests.release.xcconfig │ │ └── SVColorPicker │ │ ├── Info.plist │ │ ├── SVColorPicker-dummy.m │ │ ├── SVColorPicker-prefix.pch │ │ ├── SVColorPicker-umbrella.h │ │ ├── SVColorPicker.modulemap │ │ └── SVColorPicker.xcconfig ├── SVColorPicker.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── SVColorPicker-Example.xcscheme ├── SVColorPicker.xcworkspace │ └── contents.xcworkspacedata └── SVColorPicker │ ├── AppDelegate.swift │ ├── Base.lproj │ ├── LaunchScreen.xib │ └── Main.storyboard │ ├── Images.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── LICENSE ├── README.md ├── SVColorPicker.podspec ├── SVColorPicker ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── ColorPickerView.swift └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 3 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/SVColorPicker.xcworkspace -scheme SVColorPicker-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /Demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarath-vijay/SVColorPicker/6c5031fc24510c2d5c0374573c0d4c294f5135cd/Demo.gif -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'SVColorPicker_Example' do 4 | pod 'SVColorPicker', :path => '../' 5 | 6 | target 'SVColorPicker_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SVColorPicker (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - SVColorPicker (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SVColorPicker: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | SVColorPicker: e2c6297d85ca3eeabef9a46a5449521bab85d2cc 13 | 14 | PODFILE CHECKSUM: 5e1262ee3e7ee5be3bc09cc14da68a18eed75416 15 | 16 | COCOAPODS: 1.1.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/SVColorPicker.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SVColorPicker", 3 | "version": "1.0.0", 4 | "summary": "A subclass of UIView wich privide a color picker slider for user.", 5 | "description": "TODO: This CocoaPods provide a color picker slider for user and user can move the slider point to required color position. A callback block is invoked during the slider position chang and the selected color value will be available as a param in callback block.", 6 | "homepage": "https://github.com/sarath-vijay/SVColorPicker", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "sarath": "sarathvijayp@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/sarath-vijay/SVColorPicker.git", 16 | "tag": "1.0.0" 17 | }, 18 | "platforms": { 19 | "ios": "10.0" 20 | }, 21 | "source_files": "SVColorPicker/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SVColorPicker (1.0.0) 3 | 4 | DEPENDENCIES: 5 | - SVColorPicker (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SVColorPicker: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | SVColorPicker: e2c6297d85ca3eeabef9a46a5449521bab85d2cc 13 | 14 | PODFILE CHECKSUM: 5e1262ee3e7ee5be3bc09cc14da68a18eed75416 15 | 16 | COCOAPODS: 1.1.1 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 | 00DBD14FD78F4F115DA5E451A8076CFF /* Pods-SVColorPicker_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 832D4C06A3BD178ECE5A85DD17D75EED /* Pods-SVColorPicker_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 1ACD4606F506B62FA88FFE88B7425704 /* SVColorPicker-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 7C8049FEEBC17E36BF561178AACF3BF9 /* SVColorPicker-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 24B8FBADE9C99197238C7921CEA9AE52 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 13 | 562D968479795EAB7ADB3A405FB4E756 /* Pods-SVColorPicker_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6534D7E2E69B3348F78BB6663EAB43AE /* Pods-SVColorPicker_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 14 | 769C6326096460F96CCCF42A7BCC4F6B /* ColorPickerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 67A8E53FACFC84C99292D1A44833CFF1 /* ColorPickerView.swift */; }; 15 | 8F4062ED13DF42E9FE7E2051258849FC /* Pods-SVColorPicker_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 506BEE478DE947BF7AF04D1A54FD7635 /* Pods-SVColorPicker_Example-dummy.m */; }; 16 | 995CF95DA385E014CD27D683092CC8E5 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 17 | C0E4BA0E2BD2ADBB10EA3AC132BDDAF3 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 18 | EAA97ECB1F7B62FBF4FDD7D7DBDD2640 /* SVColorPicker-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0DB56BCAC1AB870F9965EAF149140E51 /* SVColorPicker-dummy.m */; }; 19 | F218FE2419D0AC67137C74C94EC07519 /* Pods-SVColorPicker_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = EA59FE510976415A4E8D11B67A38D397 /* Pods-SVColorPicker_Tests-dummy.m */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 44F0CC0CE977D62508BEB5C2A3FED547 /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 10506585C4E8D7ADB7BA5ACE72C7CABF; 28 | remoteInfo = SVColorPicker; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 029311D5D5AC705F35A686ACFAB9260C /* Pods-SVColorPicker_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SVColorPicker_Example-frameworks.sh"; sourceTree = ""; }; 34 | 02FC2710347933BB79AF4E1F7B7023C1 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 35 | 0624656937DB14A536CD2E327EC25CC3 /* SVColorPicker.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SVColorPicker.xcconfig; sourceTree = ""; }; 36 | 0DB56BCAC1AB870F9965EAF149140E51 /* SVColorPicker-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SVColorPicker-dummy.m"; sourceTree = ""; }; 37 | 1FAEBF1480B39AF7983552C2E954AE09 /* Pods-SVColorPicker_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SVColorPicker_Example.debug.xcconfig"; sourceTree = ""; }; 38 | 229FB28088A1ADC4F85E2286FE5114A9 /* Pods-SVColorPicker_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SVColorPicker_Tests.release.xcconfig"; sourceTree = ""; }; 39 | 27EADFDDB05E02456945748CD29AD534 /* Pods-SVColorPicker_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-SVColorPicker_Tests.modulemap"; sourceTree = ""; }; 40 | 30874CE8EED39E2B787FEF46C68F0F5C /* Pods-SVColorPicker_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-SVColorPicker_Example.modulemap"; sourceTree = ""; }; 41 | 3C1D86BE677BF1F677E77D5E8B53EE00 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | 506BEE478DE947BF7AF04D1A54FD7635 /* Pods-SVColorPicker_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SVColorPicker_Example-dummy.m"; sourceTree = ""; }; 43 | 561C43131A6FEDE0405F2C660033EF40 /* Pods-SVColorPicker_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SVColorPicker_Example-acknowledgements.plist"; sourceTree = ""; }; 44 | 5C775FEB12CB331BF7BF8D992FD5CEFC /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 45 | 6534D7E2E69B3348F78BB6663EAB43AE /* Pods-SVColorPicker_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SVColorPicker_Tests-umbrella.h"; sourceTree = ""; }; 46 | 67A8E53FACFC84C99292D1A44833CFF1 /* ColorPickerView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ColorPickerView.swift; sourceTree = ""; }; 47 | 6E77D1D22A07DEB7F6BE4A56B346E788 /* Pods-SVColorPicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SVColorPicker_Tests.debug.xcconfig"; sourceTree = ""; }; 48 | 717FB506E01DE1F3E19E45B83A686836 /* Pods-SVColorPicker_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SVColorPicker_Example-acknowledgements.markdown"; sourceTree = ""; }; 49 | 7C8049FEEBC17E36BF561178AACF3BF9 /* SVColorPicker-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SVColorPicker-umbrella.h"; sourceTree = ""; }; 50 | 832D4C06A3BD178ECE5A85DD17D75EED /* Pods-SVColorPicker_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SVColorPicker_Example-umbrella.h"; sourceTree = ""; }; 51 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 52 | 998992A572C5CDBE28B3AA3225139CC0 /* Pods-SVColorPicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SVColorPicker_Example.release.xcconfig"; sourceTree = ""; }; 53 | 9CDF62143E271A2C28FC9D923441F76E /* SVColorPicker.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = SVColorPicker.framework; path = SVColorPicker.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 54 | B13CA347BC2C8943009040EB002A2C34 /* Pods-SVColorPicker_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SVColorPicker_Tests-resources.sh"; sourceTree = ""; }; 55 | B1B672D10ECB6641493D0A5E056A02BC /* SVColorPicker.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = SVColorPicker.modulemap; sourceTree = ""; }; 56 | B70C2B3F78154772872C6BDD029CD741 /* Pods_SVColorPicker_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_SVColorPicker_Tests.framework; path = "Pods-SVColorPicker_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 57 | BED2F59528E2629DFE3217216A6A499A /* Pods-SVColorPicker_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SVColorPicker_Tests-acknowledgements.markdown"; sourceTree = ""; }; 58 | C6A61A5E22CFA374ABDC1B02856313C9 /* Pods_SVColorPicker_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_SVColorPicker_Example.framework; path = "Pods-SVColorPicker_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 59 | CAD332EC1B24FA7B624089926C7718DA /* SVColorPicker-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SVColorPicker-prefix.pch"; sourceTree = ""; }; 60 | 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; }; 61 | CE0EB48916800D00CF0301464D617B01 /* Pods-SVColorPicker_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SVColorPicker_Tests-acknowledgements.plist"; sourceTree = ""; }; 62 | DB15614F7B6EF266AD8F64E76CE37380 /* Pods-SVColorPicker_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SVColorPicker_Tests-frameworks.sh"; sourceTree = ""; }; 63 | E79700EF67C28D8CA12515D7F7A415AD /* Pods-SVColorPicker_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SVColorPicker_Example-resources.sh"; sourceTree = ""; }; 64 | EA59FE510976415A4E8D11B67A38D397 /* Pods-SVColorPicker_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SVColorPicker_Tests-dummy.m"; sourceTree = ""; }; 65 | /* End PBXFileReference section */ 66 | 67 | /* Begin PBXFrameworksBuildPhase section */ 68 | 7B80B6843D17CECFD2D0C0CFA21BA310 /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | C0E4BA0E2BD2ADBB10EA3AC132BDDAF3 /* Foundation.framework in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | 8B86AD687E28E6850FD98CC63F3DBF15 /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | 24B8FBADE9C99197238C7921CEA9AE52 /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | C4ABB94387D56545B80EE57034619D48 /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | 995CF95DA385E014CD27D683092CC8E5 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 0068B2D6D1BA96B0AF4501DCB7781BD1 /* Products */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | C6A61A5E22CFA374ABDC1B02856313C9 /* Pods_SVColorPicker_Example.framework */, 99 | B70C2B3F78154772872C6BDD029CD741 /* Pods_SVColorPicker_Tests.framework */, 100 | 9CDF62143E271A2C28FC9D923441F76E /* SVColorPicker.framework */, 101 | ); 102 | name = Products; 103 | sourceTree = ""; 104 | }; 105 | 390535742EF23E08C73AA4E239FEC4E8 /* Pods-SVColorPicker_Example */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 5C775FEB12CB331BF7BF8D992FD5CEFC /* Info.plist */, 109 | 30874CE8EED39E2B787FEF46C68F0F5C /* Pods-SVColorPicker_Example.modulemap */, 110 | 717FB506E01DE1F3E19E45B83A686836 /* Pods-SVColorPicker_Example-acknowledgements.markdown */, 111 | 561C43131A6FEDE0405F2C660033EF40 /* Pods-SVColorPicker_Example-acknowledgements.plist */, 112 | 506BEE478DE947BF7AF04D1A54FD7635 /* Pods-SVColorPicker_Example-dummy.m */, 113 | 029311D5D5AC705F35A686ACFAB9260C /* Pods-SVColorPicker_Example-frameworks.sh */, 114 | E79700EF67C28D8CA12515D7F7A415AD /* Pods-SVColorPicker_Example-resources.sh */, 115 | 832D4C06A3BD178ECE5A85DD17D75EED /* Pods-SVColorPicker_Example-umbrella.h */, 116 | 1FAEBF1480B39AF7983552C2E954AE09 /* Pods-SVColorPicker_Example.debug.xcconfig */, 117 | 998992A572C5CDBE28B3AA3225139CC0 /* Pods-SVColorPicker_Example.release.xcconfig */, 118 | ); 119 | name = "Pods-SVColorPicker_Example"; 120 | path = "Target Support Files/Pods-SVColorPicker_Example"; 121 | sourceTree = ""; 122 | }; 123 | 3B23AF6CEF2312E82797FC14013D1433 /* Classes */ = { 124 | isa = PBXGroup; 125 | children = ( 126 | 67A8E53FACFC84C99292D1A44833CFF1 /* ColorPickerView.swift */, 127 | ); 128 | name = Classes; 129 | path = Classes; 130 | sourceTree = ""; 131 | }; 132 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 136 | ); 137 | name = iOS; 138 | sourceTree = ""; 139 | }; 140 | 7DB346D0F39D3F0E887471402A8071AB = { 141 | isa = PBXGroup; 142 | children = ( 143 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 144 | 9FDFFF9BA395C082182BA706FCB5202F /* Development Pods */, 145 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 146 | 0068B2D6D1BA96B0AF4501DCB7781BD1 /* Products */, 147 | FBA896D3D83C9F28DC83D12C097C1B67 /* Targets Support Files */, 148 | ); 149 | sourceTree = ""; 150 | }; 151 | 8DD0B96ADC281C4EDFAA19291B7E2934 /* SVColorPicker */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 3B23AF6CEF2312E82797FC14013D1433 /* Classes */, 155 | ); 156 | name = SVColorPicker; 157 | path = SVColorPicker; 158 | sourceTree = ""; 159 | }; 160 | 92931F6161F735C136463200185EB939 /* Pods-SVColorPicker_Tests */ = { 161 | isa = PBXGroup; 162 | children = ( 163 | 3C1D86BE677BF1F677E77D5E8B53EE00 /* Info.plist */, 164 | 27EADFDDB05E02456945748CD29AD534 /* Pods-SVColorPicker_Tests.modulemap */, 165 | BED2F59528E2629DFE3217216A6A499A /* Pods-SVColorPicker_Tests-acknowledgements.markdown */, 166 | CE0EB48916800D00CF0301464D617B01 /* Pods-SVColorPicker_Tests-acknowledgements.plist */, 167 | EA59FE510976415A4E8D11B67A38D397 /* Pods-SVColorPicker_Tests-dummy.m */, 168 | DB15614F7B6EF266AD8F64E76CE37380 /* Pods-SVColorPicker_Tests-frameworks.sh */, 169 | B13CA347BC2C8943009040EB002A2C34 /* Pods-SVColorPicker_Tests-resources.sh */, 170 | 6534D7E2E69B3348F78BB6663EAB43AE /* Pods-SVColorPicker_Tests-umbrella.h */, 171 | 6E77D1D22A07DEB7F6BE4A56B346E788 /* Pods-SVColorPicker_Tests.debug.xcconfig */, 172 | 229FB28088A1ADC4F85E2286FE5114A9 /* Pods-SVColorPicker_Tests.release.xcconfig */, 173 | ); 174 | name = "Pods-SVColorPicker_Tests"; 175 | path = "Target Support Files/Pods-SVColorPicker_Tests"; 176 | sourceTree = ""; 177 | }; 178 | 9FDFFF9BA395C082182BA706FCB5202F /* Development Pods */ = { 179 | isa = PBXGroup; 180 | children = ( 181 | CDAE81C9959F7689E98C0C8A171AF070 /* SVColorPicker */, 182 | ); 183 | name = "Development Pods"; 184 | sourceTree = ""; 185 | }; 186 | AFD2E6BCEDC558569CDB34D938313F22 /* Support Files */ = { 187 | isa = PBXGroup; 188 | children = ( 189 | 02FC2710347933BB79AF4E1F7B7023C1 /* Info.plist */, 190 | B1B672D10ECB6641493D0A5E056A02BC /* SVColorPicker.modulemap */, 191 | 0624656937DB14A536CD2E327EC25CC3 /* SVColorPicker.xcconfig */, 192 | 0DB56BCAC1AB870F9965EAF149140E51 /* SVColorPicker-dummy.m */, 193 | CAD332EC1B24FA7B624089926C7718DA /* SVColorPicker-prefix.pch */, 194 | 7C8049FEEBC17E36BF561178AACF3BF9 /* SVColorPicker-umbrella.h */, 195 | ); 196 | name = "Support Files"; 197 | path = "Example/Pods/Target Support Files/SVColorPicker"; 198 | sourceTree = ""; 199 | }; 200 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 201 | isa = PBXGroup; 202 | children = ( 203 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 204 | ); 205 | name = Frameworks; 206 | sourceTree = ""; 207 | }; 208 | CDAE81C9959F7689E98C0C8A171AF070 /* SVColorPicker */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | AFD2E6BCEDC558569CDB34D938313F22 /* Support Files */, 212 | 8DD0B96ADC281C4EDFAA19291B7E2934 /* SVColorPicker */, 213 | ); 214 | name = SVColorPicker; 215 | path = ../..; 216 | sourceTree = ""; 217 | }; 218 | FBA896D3D83C9F28DC83D12C097C1B67 /* Targets Support Files */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | 390535742EF23E08C73AA4E239FEC4E8 /* Pods-SVColorPicker_Example */, 222 | 92931F6161F735C136463200185EB939 /* Pods-SVColorPicker_Tests */, 223 | ); 224 | name = "Targets Support Files"; 225 | sourceTree = ""; 226 | }; 227 | /* End PBXGroup section */ 228 | 229 | /* Begin PBXHeadersBuildPhase section */ 230 | 1FE0BE94A3188F7B7483120DAFAEA67C /* Headers */ = { 231 | isa = PBXHeadersBuildPhase; 232 | buildActionMask = 2147483647; 233 | files = ( 234 | 562D968479795EAB7ADB3A405FB4E756 /* Pods-SVColorPicker_Tests-umbrella.h in Headers */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | 315F38BD68491B30A50CC55B1C129DA9 /* Headers */ = { 239 | isa = PBXHeadersBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 00DBD14FD78F4F115DA5E451A8076CFF /* Pods-SVColorPicker_Example-umbrella.h in Headers */, 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | }; 246 | 49BFC1942122CE23F0422B12CCEB1A11 /* Headers */ = { 247 | isa = PBXHeadersBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | 1ACD4606F506B62FA88FFE88B7425704 /* SVColorPicker-umbrella.h in Headers */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | /* End PBXHeadersBuildPhase section */ 255 | 256 | /* Begin PBXNativeTarget section */ 257 | 10506585C4E8D7ADB7BA5ACE72C7CABF /* SVColorPicker */ = { 258 | isa = PBXNativeTarget; 259 | buildConfigurationList = BEDD7824DB11371C18126BB88803EF5B /* Build configuration list for PBXNativeTarget "SVColorPicker" */; 260 | buildPhases = ( 261 | 1F3B4D90E1558CD84D59ADD8D3B75BBA /* Sources */, 262 | C4ABB94387D56545B80EE57034619D48 /* Frameworks */, 263 | 49BFC1942122CE23F0422B12CCEB1A11 /* Headers */, 264 | ); 265 | buildRules = ( 266 | ); 267 | dependencies = ( 268 | ); 269 | name = SVColorPicker; 270 | productName = SVColorPicker; 271 | productReference = 9CDF62143E271A2C28FC9D923441F76E /* SVColorPicker.framework */; 272 | productType = "com.apple.product-type.framework"; 273 | }; 274 | 1A45E3BEAA5B848C0F54C334B649D35D /* Pods-SVColorPicker_Example */ = { 275 | isa = PBXNativeTarget; 276 | buildConfigurationList = 4B3F233FE3EE8585C3C3E18807108E4B /* Build configuration list for PBXNativeTarget "Pods-SVColorPicker_Example" */; 277 | buildPhases = ( 278 | C1B3A6702403B68320554D535111327D /* Sources */, 279 | 8B86AD687E28E6850FD98CC63F3DBF15 /* Frameworks */, 280 | 315F38BD68491B30A50CC55B1C129DA9 /* Headers */, 281 | ); 282 | buildRules = ( 283 | ); 284 | dependencies = ( 285 | 7AC869123A002D7FA724D4E25A326D65 /* PBXTargetDependency */, 286 | ); 287 | name = "Pods-SVColorPicker_Example"; 288 | productName = "Pods-SVColorPicker_Example"; 289 | productReference = C6A61A5E22CFA374ABDC1B02856313C9 /* Pods_SVColorPicker_Example.framework */; 290 | productType = "com.apple.product-type.framework"; 291 | }; 292 | 601A4E847AF64C0D943E397B9D4D17F7 /* Pods-SVColorPicker_Tests */ = { 293 | isa = PBXNativeTarget; 294 | buildConfigurationList = 79C117612805C71BA09A8B1768DA46E7 /* Build configuration list for PBXNativeTarget "Pods-SVColorPicker_Tests" */; 295 | buildPhases = ( 296 | 91BB034AFE6640C1EC38F50F37EA6CF9 /* Sources */, 297 | 7B80B6843D17CECFD2D0C0CFA21BA310 /* Frameworks */, 298 | 1FE0BE94A3188F7B7483120DAFAEA67C /* Headers */, 299 | ); 300 | buildRules = ( 301 | ); 302 | dependencies = ( 303 | ); 304 | name = "Pods-SVColorPicker_Tests"; 305 | productName = "Pods-SVColorPicker_Tests"; 306 | productReference = B70C2B3F78154772872C6BDD029CD741 /* Pods_SVColorPicker_Tests.framework */; 307 | productType = "com.apple.product-type.framework"; 308 | }; 309 | /* End PBXNativeTarget section */ 310 | 311 | /* Begin PBXProject section */ 312 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 313 | isa = PBXProject; 314 | attributes = { 315 | LastSwiftUpdateCheck = 0730; 316 | LastUpgradeCheck = 0700; 317 | }; 318 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 319 | compatibilityVersion = "Xcode 3.2"; 320 | developmentRegion = English; 321 | hasScannedForEncodings = 0; 322 | knownRegions = ( 323 | en, 324 | ); 325 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 326 | productRefGroup = 0068B2D6D1BA96B0AF4501DCB7781BD1 /* Products */; 327 | projectDirPath = ""; 328 | projectRoot = ""; 329 | targets = ( 330 | 1A45E3BEAA5B848C0F54C334B649D35D /* Pods-SVColorPicker_Example */, 331 | 601A4E847AF64C0D943E397B9D4D17F7 /* Pods-SVColorPicker_Tests */, 332 | 10506585C4E8D7ADB7BA5ACE72C7CABF /* SVColorPicker */, 333 | ); 334 | }; 335 | /* End PBXProject section */ 336 | 337 | /* Begin PBXSourcesBuildPhase section */ 338 | 1F3B4D90E1558CD84D59ADD8D3B75BBA /* Sources */ = { 339 | isa = PBXSourcesBuildPhase; 340 | buildActionMask = 2147483647; 341 | files = ( 342 | 769C6326096460F96CCCF42A7BCC4F6B /* ColorPickerView.swift in Sources */, 343 | EAA97ECB1F7B62FBF4FDD7D7DBDD2640 /* SVColorPicker-dummy.m in Sources */, 344 | ); 345 | runOnlyForDeploymentPostprocessing = 0; 346 | }; 347 | 91BB034AFE6640C1EC38F50F37EA6CF9 /* Sources */ = { 348 | isa = PBXSourcesBuildPhase; 349 | buildActionMask = 2147483647; 350 | files = ( 351 | F218FE2419D0AC67137C74C94EC07519 /* Pods-SVColorPicker_Tests-dummy.m in Sources */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | C1B3A6702403B68320554D535111327D /* Sources */ = { 356 | isa = PBXSourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | 8F4062ED13DF42E9FE7E2051258849FC /* Pods-SVColorPicker_Example-dummy.m in Sources */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | /* End PBXSourcesBuildPhase section */ 364 | 365 | /* Begin PBXTargetDependency section */ 366 | 7AC869123A002D7FA724D4E25A326D65 /* PBXTargetDependency */ = { 367 | isa = PBXTargetDependency; 368 | name = SVColorPicker; 369 | target = 10506585C4E8D7ADB7BA5ACE72C7CABF /* SVColorPicker */; 370 | targetProxy = 44F0CC0CE977D62508BEB5C2A3FED547 /* PBXContainerItemProxy */; 371 | }; 372 | /* End PBXTargetDependency section */ 373 | 374 | /* Begin XCBuildConfiguration section */ 375 | 1047A3939F63FAB1BE6E5C0CF246C478 /* Release */ = { 376 | isa = XCBuildConfiguration; 377 | baseConfigurationReference = 998992A572C5CDBE28B3AA3225139CC0 /* Pods-SVColorPicker_Example.release.xcconfig */; 378 | buildSettings = { 379 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 380 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 381 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 382 | CURRENT_PROJECT_VERSION = 1; 383 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 384 | DEFINES_MODULE = YES; 385 | DYLIB_COMPATIBILITY_VERSION = 1; 386 | DYLIB_CURRENT_VERSION = 1; 387 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 388 | ENABLE_STRICT_OBJC_MSGSEND = YES; 389 | GCC_NO_COMMON_BLOCKS = YES; 390 | INFOPLIST_FILE = "Target Support Files/Pods-SVColorPicker_Example/Info.plist"; 391 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 392 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 393 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 394 | MACH_O_TYPE = staticlib; 395 | MODULEMAP_FILE = "Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example.modulemap"; 396 | MTL_ENABLE_DEBUG_INFO = NO; 397 | OTHER_LDFLAGS = ""; 398 | OTHER_LIBTOOLFLAGS = ""; 399 | PODS_ROOT = "$(SRCROOT)"; 400 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 401 | PRODUCT_NAME = Pods_SVColorPicker_Example; 402 | SDKROOT = iphoneos; 403 | SKIP_INSTALL = YES; 404 | TARGETED_DEVICE_FAMILY = "1,2"; 405 | VERSIONING_SYSTEM = "apple-generic"; 406 | VERSION_INFO_PREFIX = ""; 407 | }; 408 | name = Release; 409 | }; 410 | 125A9C2FA69429B57E0DF413C3BD624E /* Debug */ = { 411 | isa = XCBuildConfiguration; 412 | baseConfigurationReference = 1FAEBF1480B39AF7983552C2E954AE09 /* Pods-SVColorPicker_Example.debug.xcconfig */; 413 | buildSettings = { 414 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 415 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 416 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 417 | CURRENT_PROJECT_VERSION = 1; 418 | DEBUG_INFORMATION_FORMAT = dwarf; 419 | DEFINES_MODULE = YES; 420 | DYLIB_COMPATIBILITY_VERSION = 1; 421 | DYLIB_CURRENT_VERSION = 1; 422 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 423 | ENABLE_STRICT_OBJC_MSGSEND = YES; 424 | GCC_NO_COMMON_BLOCKS = YES; 425 | INFOPLIST_FILE = "Target Support Files/Pods-SVColorPicker_Example/Info.plist"; 426 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 427 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 428 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 429 | MACH_O_TYPE = staticlib; 430 | MODULEMAP_FILE = "Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example.modulemap"; 431 | MTL_ENABLE_DEBUG_INFO = YES; 432 | OTHER_LDFLAGS = ""; 433 | OTHER_LIBTOOLFLAGS = ""; 434 | PODS_ROOT = "$(SRCROOT)"; 435 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 436 | PRODUCT_NAME = Pods_SVColorPicker_Example; 437 | SDKROOT = iphoneos; 438 | SKIP_INSTALL = YES; 439 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 440 | TARGETED_DEVICE_FAMILY = "1,2"; 441 | VERSIONING_SYSTEM = "apple-generic"; 442 | VERSION_INFO_PREFIX = ""; 443 | }; 444 | name = Debug; 445 | }; 446 | 12914D756594D15C6F2CA12FE5F89F1B /* Debug */ = { 447 | isa = XCBuildConfiguration; 448 | buildSettings = { 449 | ALWAYS_SEARCH_USER_PATHS = NO; 450 | CLANG_ANALYZER_NONNULL = YES; 451 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 452 | CLANG_CXX_LIBRARY = "libc++"; 453 | CLANG_ENABLE_MODULES = YES; 454 | CLANG_ENABLE_OBJC_ARC = YES; 455 | CLANG_WARN_BOOL_CONVERSION = YES; 456 | CLANG_WARN_CONSTANT_CONVERSION = YES; 457 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 458 | CLANG_WARN_EMPTY_BODY = YES; 459 | CLANG_WARN_ENUM_CONVERSION = YES; 460 | CLANG_WARN_INT_CONVERSION = YES; 461 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 462 | CLANG_WARN_UNREACHABLE_CODE = YES; 463 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 464 | CODE_SIGNING_REQUIRED = NO; 465 | COPY_PHASE_STRIP = NO; 466 | ENABLE_TESTABILITY = YES; 467 | GCC_C_LANGUAGE_STANDARD = gnu99; 468 | GCC_DYNAMIC_NO_PIC = NO; 469 | GCC_OPTIMIZATION_LEVEL = 0; 470 | GCC_PREPROCESSOR_DEFINITIONS = ( 471 | "POD_CONFIGURATION_DEBUG=1", 472 | "DEBUG=1", 473 | "$(inherited)", 474 | ); 475 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 476 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 477 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 478 | GCC_WARN_UNDECLARED_SELECTOR = YES; 479 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 480 | GCC_WARN_UNUSED_FUNCTION = YES; 481 | GCC_WARN_UNUSED_VARIABLE = YES; 482 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 483 | ONLY_ACTIVE_ARCH = YES; 484 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 485 | STRIP_INSTALLED_PRODUCT = NO; 486 | SYMROOT = "${SRCROOT}/../build"; 487 | }; 488 | name = Debug; 489 | }; 490 | 493DCE9C7D3B016911873ED24806DC3F /* Release */ = { 491 | isa = XCBuildConfiguration; 492 | baseConfigurationReference = 0624656937DB14A536CD2E327EC25CC3 /* SVColorPicker.xcconfig */; 493 | buildSettings = { 494 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 495 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 496 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 497 | CURRENT_PROJECT_VERSION = 1; 498 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 499 | DEFINES_MODULE = YES; 500 | DYLIB_COMPATIBILITY_VERSION = 1; 501 | DYLIB_CURRENT_VERSION = 1; 502 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 503 | ENABLE_STRICT_OBJC_MSGSEND = YES; 504 | GCC_NO_COMMON_BLOCKS = YES; 505 | GCC_PREFIX_HEADER = "Target Support Files/SVColorPicker/SVColorPicker-prefix.pch"; 506 | INFOPLIST_FILE = "Target Support Files/SVColorPicker/Info.plist"; 507 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 508 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 509 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 510 | MODULEMAP_FILE = "Target Support Files/SVColorPicker/SVColorPicker.modulemap"; 511 | MTL_ENABLE_DEBUG_INFO = NO; 512 | PRODUCT_NAME = SVColorPicker; 513 | SDKROOT = iphoneos; 514 | SKIP_INSTALL = YES; 515 | SWIFT_VERSION = 3.0; 516 | TARGETED_DEVICE_FAMILY = "1,2"; 517 | VERSIONING_SYSTEM = "apple-generic"; 518 | VERSION_INFO_PREFIX = ""; 519 | }; 520 | name = Release; 521 | }; 522 | 77F3E144095560ADE7A382A97DFE3C62 /* Debug */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = 0624656937DB14A536CD2E327EC25CC3 /* SVColorPicker.xcconfig */; 525 | buildSettings = { 526 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 527 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 528 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 529 | CURRENT_PROJECT_VERSION = 1; 530 | DEBUG_INFORMATION_FORMAT = dwarf; 531 | DEFINES_MODULE = YES; 532 | DYLIB_COMPATIBILITY_VERSION = 1; 533 | DYLIB_CURRENT_VERSION = 1; 534 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 535 | ENABLE_STRICT_OBJC_MSGSEND = YES; 536 | GCC_NO_COMMON_BLOCKS = YES; 537 | GCC_PREFIX_HEADER = "Target Support Files/SVColorPicker/SVColorPicker-prefix.pch"; 538 | INFOPLIST_FILE = "Target Support Files/SVColorPicker/Info.plist"; 539 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 540 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 541 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 542 | MODULEMAP_FILE = "Target Support Files/SVColorPicker/SVColorPicker.modulemap"; 543 | MTL_ENABLE_DEBUG_INFO = YES; 544 | PRODUCT_NAME = SVColorPicker; 545 | SDKROOT = iphoneos; 546 | SKIP_INSTALL = YES; 547 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 548 | SWIFT_VERSION = 3.0; 549 | TARGETED_DEVICE_FAMILY = "1,2"; 550 | VERSIONING_SYSTEM = "apple-generic"; 551 | VERSION_INFO_PREFIX = ""; 552 | }; 553 | name = Debug; 554 | }; 555 | A04E23DCEFE29BE8BEF663EE1BAA8DF9 /* Release */ = { 556 | isa = XCBuildConfiguration; 557 | baseConfigurationReference = 229FB28088A1ADC4F85E2286FE5114A9 /* Pods-SVColorPicker_Tests.release.xcconfig */; 558 | buildSettings = { 559 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 560 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 561 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 562 | CURRENT_PROJECT_VERSION = 1; 563 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 564 | DEFINES_MODULE = YES; 565 | DYLIB_COMPATIBILITY_VERSION = 1; 566 | DYLIB_CURRENT_VERSION = 1; 567 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 568 | ENABLE_STRICT_OBJC_MSGSEND = YES; 569 | GCC_NO_COMMON_BLOCKS = YES; 570 | INFOPLIST_FILE = "Target Support Files/Pods-SVColorPicker_Tests/Info.plist"; 571 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 572 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 573 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 574 | MACH_O_TYPE = staticlib; 575 | MODULEMAP_FILE = "Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests.modulemap"; 576 | MTL_ENABLE_DEBUG_INFO = NO; 577 | OTHER_LDFLAGS = ""; 578 | OTHER_LIBTOOLFLAGS = ""; 579 | PODS_ROOT = "$(SRCROOT)"; 580 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 581 | PRODUCT_NAME = Pods_SVColorPicker_Tests; 582 | SDKROOT = iphoneos; 583 | SKIP_INSTALL = YES; 584 | TARGETED_DEVICE_FAMILY = "1,2"; 585 | VERSIONING_SYSTEM = "apple-generic"; 586 | VERSION_INFO_PREFIX = ""; 587 | }; 588 | name = Release; 589 | }; 590 | D9CF82E5B30E8DD049604FCE63373A99 /* Debug */ = { 591 | isa = XCBuildConfiguration; 592 | baseConfigurationReference = 6E77D1D22A07DEB7F6BE4A56B346E788 /* Pods-SVColorPicker_Tests.debug.xcconfig */; 593 | buildSettings = { 594 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 595 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 596 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 597 | CURRENT_PROJECT_VERSION = 1; 598 | DEBUG_INFORMATION_FORMAT = dwarf; 599 | DEFINES_MODULE = YES; 600 | DYLIB_COMPATIBILITY_VERSION = 1; 601 | DYLIB_CURRENT_VERSION = 1; 602 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 603 | ENABLE_STRICT_OBJC_MSGSEND = YES; 604 | GCC_NO_COMMON_BLOCKS = YES; 605 | INFOPLIST_FILE = "Target Support Files/Pods-SVColorPicker_Tests/Info.plist"; 606 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 607 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 608 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 609 | MACH_O_TYPE = staticlib; 610 | MODULEMAP_FILE = "Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests.modulemap"; 611 | MTL_ENABLE_DEBUG_INFO = YES; 612 | OTHER_LDFLAGS = ""; 613 | OTHER_LIBTOOLFLAGS = ""; 614 | PODS_ROOT = "$(SRCROOT)"; 615 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 616 | PRODUCT_NAME = Pods_SVColorPicker_Tests; 617 | SDKROOT = iphoneos; 618 | SKIP_INSTALL = YES; 619 | TARGETED_DEVICE_FAMILY = "1,2"; 620 | VERSIONING_SYSTEM = "apple-generic"; 621 | VERSION_INFO_PREFIX = ""; 622 | }; 623 | name = Debug; 624 | }; 625 | E72E7977875C2D251FC62736BBDDC389 /* Release */ = { 626 | isa = XCBuildConfiguration; 627 | buildSettings = { 628 | ALWAYS_SEARCH_USER_PATHS = NO; 629 | CLANG_ANALYZER_NONNULL = YES; 630 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 631 | CLANG_CXX_LIBRARY = "libc++"; 632 | CLANG_ENABLE_MODULES = YES; 633 | CLANG_ENABLE_OBJC_ARC = YES; 634 | CLANG_WARN_BOOL_CONVERSION = YES; 635 | CLANG_WARN_CONSTANT_CONVERSION = YES; 636 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 637 | CLANG_WARN_EMPTY_BODY = YES; 638 | CLANG_WARN_ENUM_CONVERSION = YES; 639 | CLANG_WARN_INT_CONVERSION = YES; 640 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 641 | CLANG_WARN_UNREACHABLE_CODE = YES; 642 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 643 | CODE_SIGNING_REQUIRED = NO; 644 | COPY_PHASE_STRIP = YES; 645 | ENABLE_NS_ASSERTIONS = NO; 646 | GCC_C_LANGUAGE_STANDARD = gnu99; 647 | GCC_PREPROCESSOR_DEFINITIONS = ( 648 | "POD_CONFIGURATION_RELEASE=1", 649 | "$(inherited)", 650 | ); 651 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 652 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 653 | GCC_WARN_UNDECLARED_SELECTOR = YES; 654 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 655 | GCC_WARN_UNUSED_FUNCTION = YES; 656 | GCC_WARN_UNUSED_VARIABLE = YES; 657 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 658 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 659 | STRIP_INSTALLED_PRODUCT = NO; 660 | SYMROOT = "${SRCROOT}/../build"; 661 | VALIDATE_PRODUCT = YES; 662 | }; 663 | name = Release; 664 | }; 665 | /* End XCBuildConfiguration section */ 666 | 667 | /* Begin XCConfigurationList section */ 668 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 669 | isa = XCConfigurationList; 670 | buildConfigurations = ( 671 | 12914D756594D15C6F2CA12FE5F89F1B /* Debug */, 672 | E72E7977875C2D251FC62736BBDDC389 /* Release */, 673 | ); 674 | defaultConfigurationIsVisible = 0; 675 | defaultConfigurationName = Release; 676 | }; 677 | 4B3F233FE3EE8585C3C3E18807108E4B /* Build configuration list for PBXNativeTarget "Pods-SVColorPicker_Example" */ = { 678 | isa = XCConfigurationList; 679 | buildConfigurations = ( 680 | 125A9C2FA69429B57E0DF413C3BD624E /* Debug */, 681 | 1047A3939F63FAB1BE6E5C0CF246C478 /* Release */, 682 | ); 683 | defaultConfigurationIsVisible = 0; 684 | defaultConfigurationName = Release; 685 | }; 686 | 79C117612805C71BA09A8B1768DA46E7 /* Build configuration list for PBXNativeTarget "Pods-SVColorPicker_Tests" */ = { 687 | isa = XCConfigurationList; 688 | buildConfigurations = ( 689 | D9CF82E5B30E8DD049604FCE63373A99 /* Debug */, 690 | A04E23DCEFE29BE8BEF663EE1BAA8DF9 /* Release */, 691 | ); 692 | defaultConfigurationIsVisible = 0; 693 | defaultConfigurationName = Release; 694 | }; 695 | BEDD7824DB11371C18126BB88803EF5B /* Build configuration list for PBXNativeTarget "SVColorPicker" */ = { 696 | isa = XCConfigurationList; 697 | buildConfigurations = ( 698 | 77F3E144095560ADE7A382A97DFE3C62 /* Debug */, 699 | 493DCE9C7D3B016911873ED24806DC3F /* Release */, 700 | ); 701 | defaultConfigurationIsVisible = 0; 702 | defaultConfigurationName = Release; 703 | }; 704 | /* End XCConfigurationList section */ 705 | }; 706 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 707 | } 708 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SVColorPicker 5 | 6 | Copyright (c) 2017 sarath 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-SVColorPicker_Example/Pods-SVColorPicker_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2017 sarath <sarath@qburst.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 | SVColorPicker 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-SVColorPicker_Example/Pods-SVColorPicker_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SVColorPicker_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SVColorPicker_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example-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 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/SVColorPicker/SVColorPicker.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/SVColorPicker/SVColorPicker.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example-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 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | 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}" 42 | 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} 43 | ;; 44 | *.xib) 45 | 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}" 46 | 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} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | 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}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double Pods_SVColorPicker_ExampleVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char Pods_SVColorPicker_ExampleVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SVColorPicker" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/SVColorPicker/SVColorPicker.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "SVColorPicker" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SVColorPicker_Example { 2 | umbrella header "Pods-SVColorPicker_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SVColorPicker" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/SVColorPicker/SVColorPicker.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "SVColorPicker" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SVColorPicker_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SVColorPicker_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests-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 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests-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 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | 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}" 42 | 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} 43 | ;; 44 | *.xib) 45 | 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}" 46 | 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} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | 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}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double Pods_SVColorPicker_TestsVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char Pods_SVColorPicker_TestsVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SVColorPicker" 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/SVColorPicker/SVColorPicker.framework/Headers" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SVColorPicker_Tests { 2 | umbrella header "Pods-SVColorPicker_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SVColorPicker" 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/SVColorPicker/SVColorPicker.framework/Headers" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SVColorPicker/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/SVColorPicker/SVColorPicker-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SVColorPicker : NSObject 3 | @end 4 | @implementation PodsDummy_SVColorPicker 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SVColorPicker/SVColorPicker-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SVColorPicker/SVColorPicker-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double SVColorPickerVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char SVColorPickerVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SVColorPicker/SVColorPicker.modulemap: -------------------------------------------------------------------------------- 1 | framework module SVColorPicker { 2 | umbrella header "SVColorPicker-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SVColorPicker/SVColorPicker.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/SVColorPicker 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 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Example/SVColorPicker.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 54BCD5FBFE4357DE394339B7 /* Pods_SVColorPicker_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BBB25E80CD44450DE24AB37C /* Pods_SVColorPicker_Example.framework */; }; 11 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 12 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 13 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 14 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 15 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 01D1F41D69969A24EB7E9553 /* Pods-SVColorPicker_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SVColorPicker_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example.debug.xcconfig"; sourceTree = ""; }; 20 | 1979A7867FED7FC6E27F16D5 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 21 | 21F5FE3EFE24758E6BF6984E /* Pods-SVColorPicker_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SVColorPicker_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests.release.xcconfig"; sourceTree = ""; }; 22 | 23B22ED9F8CD25DACD9109A6 /* Pods-SVColorPicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SVColorPicker_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SVColorPicker_Tests/Pods-SVColorPicker_Tests.debug.xcconfig"; sourceTree = ""; }; 23 | 607FACD01AFB9204008FA782 /* SVColorPicker_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SVColorPicker_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 24 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 25 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 26 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 27 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 28 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 29 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 30 | 6EE62ED6E6921024771D3694 /* Pods-SVColorPicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SVColorPicker_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example.release.xcconfig"; sourceTree = ""; }; 31 | BBB25E80CD44450DE24AB37C /* Pods_SVColorPicker_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SVColorPicker_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | CD56794068D3A8BA03EEF575 /* SVColorPicker.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = SVColorPicker.podspec; path = ../SVColorPicker.podspec; sourceTree = ""; }; 33 | D7D2F43A406AA9DEBF2F8501 /* Pods_SVColorPicker_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SVColorPicker_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 34 | F3620DBE4AF78CD577AB1A01 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 35 | /* End PBXFileReference section */ 36 | 37 | /* Begin PBXFrameworksBuildPhase section */ 38 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 39 | isa = PBXFrameworksBuildPhase; 40 | buildActionMask = 2147483647; 41 | files = ( 42 | 54BCD5FBFE4357DE394339B7 /* Pods_SVColorPicker_Example.framework in Frameworks */, 43 | ); 44 | runOnlyForDeploymentPostprocessing = 0; 45 | }; 46 | /* End PBXFrameworksBuildPhase section */ 47 | 48 | /* Begin PBXGroup section */ 49 | 472A9CBBA80B24503D233493 /* Frameworks */ = { 50 | isa = PBXGroup; 51 | children = ( 52 | BBB25E80CD44450DE24AB37C /* Pods_SVColorPicker_Example.framework */, 53 | D7D2F43A406AA9DEBF2F8501 /* Pods_SVColorPicker_Tests.framework */, 54 | ); 55 | name = Frameworks; 56 | sourceTree = ""; 57 | }; 58 | 607FACC71AFB9204008FA782 = { 59 | isa = PBXGroup; 60 | children = ( 61 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 62 | 607FACD21AFB9204008FA782 /* Example for SVColorPicker */, 63 | 607FACD11AFB9204008FA782 /* Products */, 64 | 83121504D304009B80D1EA4B /* Pods */, 65 | 472A9CBBA80B24503D233493 /* Frameworks */, 66 | ); 67 | sourceTree = ""; 68 | }; 69 | 607FACD11AFB9204008FA782 /* Products */ = { 70 | isa = PBXGroup; 71 | children = ( 72 | 607FACD01AFB9204008FA782 /* SVColorPicker_Example.app */, 73 | ); 74 | name = Products; 75 | sourceTree = ""; 76 | }; 77 | 607FACD21AFB9204008FA782 /* Example for SVColorPicker */ = { 78 | isa = PBXGroup; 79 | children = ( 80 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 81 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 82 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 83 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 84 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 85 | 607FACD31AFB9204008FA782 /* Supporting Files */, 86 | ); 87 | name = "Example for SVColorPicker"; 88 | path = SVColorPicker; 89 | sourceTree = ""; 90 | }; 91 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 607FACD41AFB9204008FA782 /* Info.plist */, 95 | ); 96 | name = "Supporting Files"; 97 | sourceTree = ""; 98 | }; 99 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | CD56794068D3A8BA03EEF575 /* SVColorPicker.podspec */, 103 | F3620DBE4AF78CD577AB1A01 /* README.md */, 104 | 1979A7867FED7FC6E27F16D5 /* LICENSE */, 105 | ); 106 | name = "Podspec Metadata"; 107 | sourceTree = ""; 108 | }; 109 | 83121504D304009B80D1EA4B /* Pods */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 01D1F41D69969A24EB7E9553 /* Pods-SVColorPicker_Example.debug.xcconfig */, 113 | 6EE62ED6E6921024771D3694 /* Pods-SVColorPicker_Example.release.xcconfig */, 114 | 23B22ED9F8CD25DACD9109A6 /* Pods-SVColorPicker_Tests.debug.xcconfig */, 115 | 21F5FE3EFE24758E6BF6984E /* Pods-SVColorPicker_Tests.release.xcconfig */, 116 | ); 117 | name = Pods; 118 | sourceTree = ""; 119 | }; 120 | /* End PBXGroup section */ 121 | 122 | /* Begin PBXNativeTarget section */ 123 | 607FACCF1AFB9204008FA782 /* SVColorPicker_Example */ = { 124 | isa = PBXNativeTarget; 125 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SVColorPicker_Example" */; 126 | buildPhases = ( 127 | 92BD3840EFD8A7F5098117B9 /* [CP] Check Pods Manifest.lock */, 128 | 607FACCC1AFB9204008FA782 /* Sources */, 129 | 607FACCD1AFB9204008FA782 /* Frameworks */, 130 | 607FACCE1AFB9204008FA782 /* Resources */, 131 | 0759C0B6600BE3F5E4DC2763 /* [CP] Embed Pods Frameworks */, 132 | CA852786AA6700A96CA8C129 /* [CP] Copy Pods Resources */, 133 | ); 134 | buildRules = ( 135 | ); 136 | dependencies = ( 137 | ); 138 | name = SVColorPicker_Example; 139 | productName = SVColorPicker; 140 | productReference = 607FACD01AFB9204008FA782 /* SVColorPicker_Example.app */; 141 | productType = "com.apple.product-type.application"; 142 | }; 143 | /* End PBXNativeTarget section */ 144 | 145 | /* Begin PBXProject section */ 146 | 607FACC81AFB9204008FA782 /* Project object */ = { 147 | isa = PBXProject; 148 | attributes = { 149 | LastSwiftUpdateCheck = 0720; 150 | LastUpgradeCheck = 0720; 151 | ORGANIZATIONNAME = CocoaPods; 152 | TargetAttributes = { 153 | 607FACCF1AFB9204008FA782 = { 154 | CreatedOnToolsVersion = 6.3.1; 155 | LastSwiftMigration = 0800; 156 | }; 157 | }; 158 | }; 159 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SVColorPicker" */; 160 | compatibilityVersion = "Xcode 3.2"; 161 | developmentRegion = English; 162 | hasScannedForEncodings = 0; 163 | knownRegions = ( 164 | en, 165 | Base, 166 | ); 167 | mainGroup = 607FACC71AFB9204008FA782; 168 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 169 | projectDirPath = ""; 170 | projectRoot = ""; 171 | targets = ( 172 | 607FACCF1AFB9204008FA782 /* SVColorPicker_Example */, 173 | ); 174 | }; 175 | /* End PBXProject section */ 176 | 177 | /* Begin PBXResourcesBuildPhase section */ 178 | 607FACCE1AFB9204008FA782 /* Resources */ = { 179 | isa = PBXResourcesBuildPhase; 180 | buildActionMask = 2147483647; 181 | files = ( 182 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 183 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 184 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 185 | ); 186 | runOnlyForDeploymentPostprocessing = 0; 187 | }; 188 | /* End PBXResourcesBuildPhase section */ 189 | 190 | /* Begin PBXShellScriptBuildPhase section */ 191 | 0759C0B6600BE3F5E4DC2763 /* [CP] Embed Pods Frameworks */ = { 192 | isa = PBXShellScriptBuildPhase; 193 | buildActionMask = 2147483647; 194 | files = ( 195 | ); 196 | inputPaths = ( 197 | ); 198 | name = "[CP] Embed Pods Frameworks"; 199 | outputPaths = ( 200 | ); 201 | runOnlyForDeploymentPostprocessing = 0; 202 | shellPath = /bin/sh; 203 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example-frameworks.sh\"\n"; 204 | showEnvVarsInLog = 0; 205 | }; 206 | 92BD3840EFD8A7F5098117B9 /* [CP] Check Pods Manifest.lock */ = { 207 | isa = PBXShellScriptBuildPhase; 208 | buildActionMask = 2147483647; 209 | files = ( 210 | ); 211 | inputPaths = ( 212 | ); 213 | name = "[CP] Check Pods Manifest.lock"; 214 | outputPaths = ( 215 | ); 216 | runOnlyForDeploymentPostprocessing = 0; 217 | shellPath = /bin/sh; 218 | 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"; 219 | showEnvVarsInLog = 0; 220 | }; 221 | CA852786AA6700A96CA8C129 /* [CP] Copy Pods Resources */ = { 222 | isa = PBXShellScriptBuildPhase; 223 | buildActionMask = 2147483647; 224 | files = ( 225 | ); 226 | inputPaths = ( 227 | ); 228 | name = "[CP] Copy Pods Resources"; 229 | outputPaths = ( 230 | ); 231 | runOnlyForDeploymentPostprocessing = 0; 232 | shellPath = /bin/sh; 233 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SVColorPicker_Example/Pods-SVColorPicker_Example-resources.sh\"\n"; 234 | showEnvVarsInLog = 0; 235 | }; 236 | /* End PBXShellScriptBuildPhase section */ 237 | 238 | /* Begin PBXSourcesBuildPhase section */ 239 | 607FACCC1AFB9204008FA782 /* Sources */ = { 240 | isa = PBXSourcesBuildPhase; 241 | buildActionMask = 2147483647; 242 | files = ( 243 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 244 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 245 | ); 246 | runOnlyForDeploymentPostprocessing = 0; 247 | }; 248 | /* End PBXSourcesBuildPhase section */ 249 | 250 | /* Begin PBXVariantGroup section */ 251 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 252 | isa = PBXVariantGroup; 253 | children = ( 254 | 607FACDA1AFB9204008FA782 /* Base */, 255 | ); 256 | name = Main.storyboard; 257 | sourceTree = ""; 258 | }; 259 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 260 | isa = PBXVariantGroup; 261 | children = ( 262 | 607FACDF1AFB9204008FA782 /* Base */, 263 | ); 264 | name = LaunchScreen.xib; 265 | sourceTree = ""; 266 | }; 267 | /* End PBXVariantGroup section */ 268 | 269 | /* Begin XCBuildConfiguration section */ 270 | 607FACED1AFB9204008FA782 /* Debug */ = { 271 | isa = XCBuildConfiguration; 272 | buildSettings = { 273 | ALWAYS_SEARCH_USER_PATHS = NO; 274 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 275 | CLANG_CXX_LIBRARY = "libc++"; 276 | CLANG_ENABLE_MODULES = YES; 277 | CLANG_ENABLE_OBJC_ARC = YES; 278 | CLANG_WARN_BOOL_CONVERSION = YES; 279 | CLANG_WARN_CONSTANT_CONVERSION = YES; 280 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 281 | CLANG_WARN_EMPTY_BODY = YES; 282 | CLANG_WARN_ENUM_CONVERSION = YES; 283 | CLANG_WARN_INT_CONVERSION = YES; 284 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 285 | CLANG_WARN_UNREACHABLE_CODE = YES; 286 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 287 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 288 | COPY_PHASE_STRIP = NO; 289 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 290 | ENABLE_STRICT_OBJC_MSGSEND = YES; 291 | ENABLE_TESTABILITY = YES; 292 | GCC_C_LANGUAGE_STANDARD = gnu99; 293 | GCC_DYNAMIC_NO_PIC = NO; 294 | GCC_NO_COMMON_BLOCKS = YES; 295 | GCC_OPTIMIZATION_LEVEL = 0; 296 | GCC_PREPROCESSOR_DEFINITIONS = ( 297 | "DEBUG=1", 298 | "$(inherited)", 299 | ); 300 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 301 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 302 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 303 | GCC_WARN_UNDECLARED_SELECTOR = YES; 304 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 305 | GCC_WARN_UNUSED_FUNCTION = YES; 306 | GCC_WARN_UNUSED_VARIABLE = YES; 307 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 308 | MTL_ENABLE_DEBUG_INFO = YES; 309 | ONLY_ACTIVE_ARCH = YES; 310 | SDKROOT = iphoneos; 311 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 312 | }; 313 | name = Debug; 314 | }; 315 | 607FACEE1AFB9204008FA782 /* Release */ = { 316 | isa = XCBuildConfiguration; 317 | buildSettings = { 318 | ALWAYS_SEARCH_USER_PATHS = NO; 319 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 320 | CLANG_CXX_LIBRARY = "libc++"; 321 | CLANG_ENABLE_MODULES = YES; 322 | CLANG_ENABLE_OBJC_ARC = YES; 323 | CLANG_WARN_BOOL_CONVERSION = YES; 324 | CLANG_WARN_CONSTANT_CONVERSION = YES; 325 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 326 | CLANG_WARN_EMPTY_BODY = YES; 327 | CLANG_WARN_ENUM_CONVERSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 330 | CLANG_WARN_UNREACHABLE_CODE = YES; 331 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 332 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 333 | COPY_PHASE_STRIP = NO; 334 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 335 | ENABLE_NS_ASSERTIONS = NO; 336 | ENABLE_STRICT_OBJC_MSGSEND = YES; 337 | GCC_C_LANGUAGE_STANDARD = gnu99; 338 | GCC_NO_COMMON_BLOCKS = YES; 339 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 340 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 341 | GCC_WARN_UNDECLARED_SELECTOR = YES; 342 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 343 | GCC_WARN_UNUSED_FUNCTION = YES; 344 | GCC_WARN_UNUSED_VARIABLE = YES; 345 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 346 | MTL_ENABLE_DEBUG_INFO = NO; 347 | SDKROOT = iphoneos; 348 | VALIDATE_PRODUCT = YES; 349 | }; 350 | name = Release; 351 | }; 352 | 607FACF01AFB9204008FA782 /* Debug */ = { 353 | isa = XCBuildConfiguration; 354 | baseConfigurationReference = 01D1F41D69969A24EB7E9553 /* Pods-SVColorPicker_Example.debug.xcconfig */; 355 | buildSettings = { 356 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 357 | INFOPLIST_FILE = SVColorPicker/Info.plist; 358 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 359 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 360 | MODULE_NAME = ExampleApp; 361 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 362 | PRODUCT_NAME = "$(TARGET_NAME)"; 363 | SWIFT_VERSION = 3.0; 364 | }; 365 | name = Debug; 366 | }; 367 | 607FACF11AFB9204008FA782 /* Release */ = { 368 | isa = XCBuildConfiguration; 369 | baseConfigurationReference = 6EE62ED6E6921024771D3694 /* Pods-SVColorPicker_Example.release.xcconfig */; 370 | buildSettings = { 371 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 372 | INFOPLIST_FILE = SVColorPicker/Info.plist; 373 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 374 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 375 | MODULE_NAME = ExampleApp; 376 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 377 | PRODUCT_NAME = "$(TARGET_NAME)"; 378 | SWIFT_VERSION = 3.0; 379 | }; 380 | name = Release; 381 | }; 382 | /* End XCBuildConfiguration section */ 383 | 384 | /* Begin XCConfigurationList section */ 385 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SVColorPicker" */ = { 386 | isa = XCConfigurationList; 387 | buildConfigurations = ( 388 | 607FACED1AFB9204008FA782 /* Debug */, 389 | 607FACEE1AFB9204008FA782 /* Release */, 390 | ); 391 | defaultConfigurationIsVisible = 0; 392 | defaultConfigurationName = Release; 393 | }; 394 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SVColorPicker_Example" */ = { 395 | isa = XCConfigurationList; 396 | buildConfigurations = ( 397 | 607FACF01AFB9204008FA782 /* Debug */, 398 | 607FACF11AFB9204008FA782 /* Release */, 399 | ); 400 | defaultConfigurationIsVisible = 0; 401 | defaultConfigurationName = Release; 402 | }; 403 | /* End XCConfigurationList section */ 404 | }; 405 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 406 | } 407 | -------------------------------------------------------------------------------- /Example/SVColorPicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/SVColorPicker.xcodeproj/xcshareddata/xcschemes/SVColorPicker-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /Example/SVColorPicker.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SVColorPicker/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SVColorPicker 4 | // 5 | // Created by sarath on 02/05/2017. 6 | // Copyright (c) 2017 sarath. 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/SVColorPicker/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/SVColorPicker/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /Example/SVColorPicker/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/SVColorPicker/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 | 2.0.1 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/SVColorPicker/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SVColorPicker 4 | // 5 | // Created by sarath on 02/05/2017. 6 | // Copyright (c) 2017 sarath. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SVColorPicker 11 | 12 | class ViewController: UIViewController { 13 | 14 | @IBOutlet weak var sliderContainerView: UIView! 15 | @IBOutlet weak var colorDisplayView: UIView! 16 | 17 | override func viewDidLoad() { 18 | super.viewDidLoad() 19 | } 20 | 21 | override func didReceiveMemoryWarning() { 22 | super.didReceiveMemoryWarning() 23 | } 24 | 25 | override func viewDidAppear(_ animated: Bool) { 26 | super.viewDidAppear(animated) 27 | 28 | colorDisplayView.layer.cornerRadius = colorDisplayView.frame.width * 0.5 29 | colorDisplayView.layer.borderColor = UIColor.black.cgColor 30 | colorDisplayView.layer.borderWidth = 2 31 | 32 | // ColorPickerView initialisation 33 | let colorPickerframe = sliderContainerView.bounds 34 | let colorPicker = ColorPickerView(frame: colorPickerframe) 35 | colorPicker.didChangeColor = { [unowned self] color in 36 | self.colorDisplayView.backgroundColor = color 37 | } 38 | sliderContainerView.addSubview(colorPicker) 39 | 40 | } 41 | 42 | } 43 | 44 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 sarath 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 | # SVColorPicker 2 | 3 | [![CI Status](http://img.shields.io/travis/sarath/SVColorPicker.svg?style=flat)](https://travis-ci.org/sarath/SVColorPicker) 4 | [![Version](https://img.shields.io/cocoapods/v/SVColorPicker.svg?style=flat)](http://cocoapods.org/pods/SVColorPicker) 5 | [![License](https://img.shields.io/cocoapods/l/SVColorPicker.svg?style=flat)](http://cocoapods.org/pods/SVColorPicker) 6 | [![Platform](https://img.shields.io/cocoapods/p/SVColorPicker.svg?style=flat)](http://cocoapods.org/pods/SVColorPicker) 7 | 8 | SVColorPicker is a lightweight color picker library written in swift. User will be presented with a slider and on sliding, user can select required color. 9 | 10 | ![sample_gif](https://github.com/sarath-vijay/SVColorPicker/blob/master/Demo.gif) 11 | 12 | ## Requirements 13 | 14 | - Xcode 8 15 | - Swift 3 16 | - iOS 10+ 17 | 18 | ## Installation 19 | 20 | ### Using CocoaPods: 21 | 22 | To integrate SVColorPicker into your Xcode project using CocoaPods, specify it in your Podfile: 23 | ```swift 24 | 25 | source 'https://github.com/CocoaPods/Specs.git' 26 | platform :ios, '10.0' 27 | use_frameworks! 28 | 29 | target '' do 30 | pod ’SVColorPicker’, '2.0.1' 31 | end 32 | ``` 33 | 34 | Then, run the following command: 35 | ```swift 36 | $ pod install 37 | ``` 38 | 39 | ### Manually: 40 | 41 | * Download SVColorPicker. 42 | * Drag and drop SVColorPicker directory to your project 43 | ## Usage 44 | 45 | For including color picker in your view, add the following code 46 | 47 | ```swift 48 | let colorPickerframe = __REQUIRED_FRAME__ 49 | let colorPicker = ColorPickerView(frame: colorPickerframe) 50 | colorPicker.colorChangeBlock = { color in 51 | //Use color and do the requied. 52 | } 53 | self.view.addSubview(colorPicker) 54 | ``` 55 | 56 | ## Author 57 | 58 | sarath, sarathvijayp@gmail.com 59 | 60 | ## License 61 | 62 | SVColorPicker is available under the MIT license. See the LICENSE file for more info. 63 | -------------------------------------------------------------------------------- /SVColorPicker.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'SVColorPicker' 3 | s.version = '2.0.1' 4 | s.summary = 'A subclass of UIView wich privide a color picker slider for user.' 5 | s.description = <<-DESC 6 | TODO: This CocoaPods provide a color picker slider for user and user can move the slider point to required color position. A callback block is invoked during the slider position chang and the selected color value will be available as a param in callback block. 7 | DESC 8 | 9 | s.homepage = 'https://github.com/sarath-vijay/SVColorPicker' 10 | s.license = { :type => 'MIT', :file => 'LICENSE' } 11 | s.author = { 'sarath' => 'sarathvijayp@gmail.com' } 12 | s.source = { :git => 'https://github.com/sarath-vijay/SVColorPicker.git', :tag => s.version.to_s } 13 | 14 | s.ios.deployment_target = '10.0' 15 | s.source_files = 'SVColorPicker/Classes/**/*' 16 | end 17 | 18 | -------------------------------------------------------------------------------- /SVColorPicker/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarath-vijay/SVColorPicker/6c5031fc24510c2d5c0374573c0d4c294f5135cd/SVColorPicker/Assets/.gitkeep -------------------------------------------------------------------------------- /SVColorPicker/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sarath-vijay/SVColorPicker/6c5031fc24510c2d5c0374573c0d4c294f5135cd/SVColorPicker/Classes/.gitkeep -------------------------------------------------------------------------------- /SVColorPicker/Classes/ColorPickerView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ColorPickerView.swift 3 | // TestColorPicker 4 | // 5 | // Created by Sarath Vijay on 20/10/16. 6 | // Copyright © 2016 jango. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | fileprivate enum ColorPickerViewConstant { 12 | static let colorPickerSliderHeightMin: CGFloat = 2.0 13 | static let uiSliderHeightDefault: CGFloat = 31.0 14 | } 15 | 16 | public typealias ColorChangeBlock = (_ color: UIColor?) -> Void 17 | 18 | open class ColorPickerView: UIView { 19 | 20 | //MARK:- Open constant 21 | //MARK:- 22 | /** 23 | User can use this value to change the slider height. 24 | */ 25 | open var colorPickerSliderHeight: CGFloat = 2.0 //Min value 26 | 27 | //MARK:- Private variables 28 | //MARK:- 29 | fileprivate var currentHueValue : CGFloat = 0.0 30 | fileprivate var currentSliderColor = UIColor.red 31 | fileprivate var hueImage: UIImage! 32 | fileprivate var slider: UISlider! 33 | 34 | //MARK:- Open variables 35 | //MARK:- 36 | open var didChangeColor: ColorChangeBlock? 37 | 38 | //MARK:- Override Functions 39 | //MARK:- 40 | override open func layoutSubviews() { 41 | 42 | super.layoutSubviews() 43 | backgroundColor = UIColor.clear 44 | update() 45 | } 46 | 47 | override open func draw(_ rect: CGRect) { 48 | 49 | super.draw(rect) 50 | if slider == nil { 51 | let sliderRect = CGRect(x: rect.origin.x, y: (rect.size.height - ColorPickerViewConstant.uiSliderHeightDefault) * 0.5, 52 | width: rect.width, height: ColorPickerViewConstant.uiSliderHeightDefault) 53 | slider = UISlider(frame: sliderRect) 54 | slider.setValue(0, animated: false) 55 | slider.addTarget(self, action: #selector(onSliderValueChange), for: UIControlEvents.valueChanged) 56 | slider.minimumTrackTintColor = UIColor.clear 57 | slider.maximumTrackTintColor = UIColor.clear 58 | 59 | addSubview(slider) 60 | 61 | slider.translatesAutoresizingMaskIntoConstraints = false 62 | slider.leadingAnchor.constraint(equalTo: slider.superview!.leadingAnchor, constant: 0).isActive = true 63 | slider.topAnchor.constraint(equalTo: slider.superview!.topAnchor, constant: 0).isActive = true 64 | slider.trailingAnchor.constraint(equalTo: slider.superview!.trailingAnchor, constant: 0).isActive = true 65 | slider.bottomAnchor.constraint(equalTo: slider.superview!.bottomAnchor, constant: 0).isActive = true 66 | 67 | 68 | } 69 | 70 | let heigthForSliderImage = max(colorPickerSliderHeight, ColorPickerViewConstant.colorPickerSliderHeightMin) 71 | let sliderImageRect = CGRect(x: rect.origin.x, y: (rect.size.height - heigthForSliderImage) * 0.5, 72 | width: rect.width, height: heigthForSliderImage) 73 | if hueImage != nil { 74 | hueImage.draw(in: sliderImageRect) 75 | } 76 | 77 | } 78 | 79 | //MARK:- Internal Functions 80 | //MARK:- 81 | func onSliderValueChange(slider: UISlider) { 82 | 83 | currentHueValue = CGFloat(slider.value) 84 | currentSliderColor = UIColor(hue: currentHueValue, saturation: 1, brightness: 1, alpha: 1) 85 | self.didChangeColor?(currentSliderColor) 86 | } 87 | } 88 | 89 | fileprivate extension ColorPickerView { 90 | 91 | func update() { 92 | 93 | if hueImage == nil { 94 | let heigthForSliderImage = max(colorPickerSliderHeight, ColorPickerViewConstant.colorPickerSliderHeightMin) 95 | let size: CGSize = CGSize(width: frame.width, height: heigthForSliderImage) 96 | hueImage = generateHUEImage(size) 97 | } 98 | } 99 | 100 | func generateHUEImage(_ size: CGSize) -> UIImage { 101 | 102 | let rect = CGRect(x: 0, y: 0, width: size.width, height: size.height) 103 | let heigthForSliderImage = max(colorPickerSliderHeight, ColorPickerViewConstant.colorPickerSliderHeightMin) 104 | UIGraphicsBeginImageContextWithOptions(size, false, 0) 105 | UIBezierPath(roundedRect: rect, cornerRadius: heigthForSliderImage * 0.5).addClip() 106 | for x: Int in 0 ..< Int(size.width) { 107 | UIColor(hue: CGFloat(CGFloat(x) / size.width), saturation: 1.0, brightness: 1.0, alpha: 1.0).set() 108 | let temp = CGRect(x: CGFloat(x), y: 0, width: 1, height: size.height) 109 | UIRectFill(temp) 110 | } 111 | let image: UIImage = UIGraphicsGetImageFromCurrentImageContext()! 112 | UIGraphicsEndImageContext() 113 | return image 114 | } 115 | } 116 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------