├── .circleci └── config.yml ├── .gitattributes ├── .gitignore ├── .travis.yml ├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── SegmentedProgressView.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── Pods-SegmentedProgressView_Example │ │ ├── Info.plist │ │ ├── Pods-SegmentedProgressView_Example-acknowledgements.markdown │ │ ├── Pods-SegmentedProgressView_Example-acknowledgements.plist │ │ ├── Pods-SegmentedProgressView_Example-dummy.m │ │ ├── Pods-SegmentedProgressView_Example-frameworks.sh │ │ ├── Pods-SegmentedProgressView_Example-resources.sh │ │ ├── Pods-SegmentedProgressView_Example-umbrella.h │ │ ├── Pods-SegmentedProgressView_Example.debug.xcconfig │ │ ├── Pods-SegmentedProgressView_Example.modulemap │ │ └── Pods-SegmentedProgressView_Example.release.xcconfig │ │ ├── Pods-SegmentedProgressView_Tests │ │ ├── Info.plist │ │ ├── Pods-SegmentedProgressView_Tests-acknowledgements.markdown │ │ ├── Pods-SegmentedProgressView_Tests-acknowledgements.plist │ │ ├── Pods-SegmentedProgressView_Tests-dummy.m │ │ ├── Pods-SegmentedProgressView_Tests-frameworks.sh │ │ ├── Pods-SegmentedProgressView_Tests-resources.sh │ │ ├── Pods-SegmentedProgressView_Tests-umbrella.h │ │ ├── Pods-SegmentedProgressView_Tests.debug.xcconfig │ │ ├── Pods-SegmentedProgressView_Tests.modulemap │ │ └── Pods-SegmentedProgressView_Tests.release.xcconfig │ │ └── SegmentedProgressView │ │ ├── Info.plist │ │ ├── SegmentedProgressView-dummy.m │ │ ├── SegmentedProgressView-prefix.pch │ │ ├── SegmentedProgressView-umbrella.h │ │ ├── SegmentedProgressView.modulemap │ │ └── SegmentedProgressView.xcconfig ├── SegmentedProgressView.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── SegmentedProgressView-Example.xcscheme ├── SegmentedProgressView.xcworkspace │ └── contents.xcworkspacedata ├── SegmentedProgressView │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift └── Tests │ ├── Info.plist │ └── Tests.swift ├── LICENSE ├── README.md ├── Resources └── img.png ├── SegmentedProgressView.podspec ├── SegmentedProgressView ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ ├── ProgressItem.swift │ ├── SegmentView.swift │ └── SegmentedProgressView.swift └── _Pods.xcodeproj /.circleci/config.yml: -------------------------------------------------------------------------------- 1 | # iOS CircleCI 2.0 configuration file 2 | # 3 | # Check https://circleci.com/docs/2.0/ios-migrating-from-1-2/ for more details 4 | # 5 | version: 2 6 | jobs: 7 | build: 8 | 9 | # Specify the Xcode version to use 10 | macos: 11 | xcode: "8.3.3" 12 | 13 | steps: 14 | - checkout 15 | 16 | # Install CocoaPods 17 | - run: 18 | name: Install CocoaPods 19 | command: pod install 20 | 21 | # Build the app and run tests 22 | - run: 23 | name: Build and run tests 24 | command: fastlane scan 25 | environment: 26 | SCAN_DEVICE: iPhone 7 27 | SCAN_SCHEME: WebTests 28 | 29 | # Collect XML test results data to show in the UI, 30 | # and save the same XML files under test-results folder 31 | # in the Artifacts tab 32 | - store_test_results: 33 | path: test_output/report.xml 34 | - store_artifacts: 35 | path: /tmp/test-results 36 | destination: scan-test-results 37 | - store_artifacts: 38 | path: ~/Library/Logs/scan 39 | destination: scan-logs 40 | 41 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.sh linguist-language=Swift 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | ## Playgrounds 31 | timeline.xctimeline 32 | playground.xcworkspace 33 | 34 | # Swift Package Manager 35 | # 36 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 37 | # Packages/ 38 | .build/ 39 | 40 | # CocoaPods 41 | # 42 | # We recommend against adding the Pods directory to your .gitignore. However 43 | # you should judge for yourself, the pros and cons are mentioned at: 44 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 45 | # 46 | # Pods/ 47 | 48 | # Carthage 49 | # 50 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 51 | # Carthage/Checkouts 52 | 53 | Carthage/Build 54 | 55 | # fastlane 56 | # 57 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 58 | # screenshots whenever they are needed. 59 | # For more information about the recommended setup visit: 60 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 61 | 62 | fastlane/report.xml 63 | fastlane/Preview.html 64 | fastlane/screenshots 65 | fastlane/test_output 66 | -------------------------------------------------------------------------------- /.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: xcode9 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/SegmentedProgressView.xcworkspace -scheme SegmentedProgressView-Example -destination 'platform=iOS Simulator,name=iPhone 7,OS=10.2' ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint --allow-warnings 15 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'SegmentedProgressView_Example' do 4 | pod 'SegmentedProgressView', :path => '../' 5 | 6 | target 'SegmentedProgressView_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SegmentedProgressView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - SegmentedProgressView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SegmentedProgressView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SegmentedProgressView: 938b027b1df2249211b2a71fb6c10bdf1db2d117 13 | 14 | PODFILE CHECKSUM: 631b21ba191d1241ab06a348207e688e3181fc2d 15 | 16 | COCOAPODS: 1.2.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/SegmentedProgressView.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "SegmentedProgressView", 3 | "version": "0.1.0", 4 | "summary": "A short description of SegmentedProgressView.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/isapozhnik/SegmentedProgressView", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "isapozhnik": "sapozhnik.ivan@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/isapozhnik/SegmentedProgressView.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "SegmentedProgressView/Classes/**/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SegmentedProgressView (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - SegmentedProgressView (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | SegmentedProgressView: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | SegmentedProgressView: 938b027b1df2249211b2a71fb6c10bdf1db2d117 13 | 14 | PODFILE CHECKSUM: 631b21ba191d1241ab06a348207e688e3181fc2d 15 | 16 | COCOAPODS: 1.2.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 03104857482A70C7694CF423E1B10331 /* ProgressItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 023DDFB1EBA315DC7E0CF15D009EEE05 /* ProgressItem.swift */; }; 11 | 2D8EBE40505A23748616B2ACFA516F8F /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 12 | 4223361A0C0EE8735B19F63CB0FA953A /* SegmentedProgressView-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 634AE2E65F535B9AB77407B57B610572 /* SegmentedProgressView-dummy.m */; }; 13 | 65626E78B8BE6807A17605B79BB7129D /* SegmentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20E5A5AA8A8C7C7A27D8BE3DBBAD8875 /* SegmentView.swift */; }; 14 | 6C7D69737EA26C53A3632F386C1C2F67 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 15 | 7281EF2827DDF2FFFB1AA407658CFEE1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */; }; 16 | 824E9AD4257D145E15D428CD16ABEF35 /* Pods-SegmentedProgressView_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = F52EF94608BCE7B0B256893BD43956EA /* Pods-SegmentedProgressView_Tests-dummy.m */; }; 17 | A83D7D1F7B38A3D7F6931BEB6F85DFF1 /* SegmentedProgressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9CC1A8428FA630E60ABDC192D7F74DC6 /* SegmentedProgressView.swift */; }; 18 | AB4E10A627744774CB94562EAB2E95DC /* Pods-SegmentedProgressView_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C7F4359DA9D8FC12C37687BFF656D30F /* Pods-SegmentedProgressView_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | E0D6EDF20B4F03C73D5F3390EEBBF1A3 /* Pods-SegmentedProgressView_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F961A788D1A5D3D68D36B64A290ED9E7 /* Pods-SegmentedProgressView_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 20 | EAB81993023E9D836250269C862A1271 /* Pods-SegmentedProgressView_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 22B3B271E2402A1E66FCDDD790EE7971 /* Pods-SegmentedProgressView_Example-dummy.m */; }; 21 | F1807733609D1703B9E552CDF7EDB8E8 /* SegmentedProgressView-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 2CF6CD7002163BD8AB819328BB3A655B /* SegmentedProgressView-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | FEB593AFFCE76FB5DB22ACE9651749C7 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 3E244A50100868CD709639393F12584F; 30 | remoteInfo = SegmentedProgressView; 31 | }; 32 | /* End PBXContainerItemProxy section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 023DDFB1EBA315DC7E0CF15D009EEE05 /* ProgressItem.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ProgressItem.swift; sourceTree = ""; }; 36 | 0DBB931149EA9521701C2E041380FC0D /* SegmentedProgressView-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SegmentedProgressView-prefix.pch"; sourceTree = ""; }; 37 | 121E6B07793315B97A12223BC9AE25E4 /* SegmentedProgressView.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = SegmentedProgressView.xcconfig; sourceTree = ""; }; 38 | 1E4DFCF7BD492EFE6735B2D13CBACB66 /* Pods-SegmentedProgressView_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-SegmentedProgressView_Tests.modulemap"; sourceTree = ""; }; 39 | 20E5A5AA8A8C7C7A27D8BE3DBBAD8875 /* SegmentView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SegmentView.swift; sourceTree = ""; }; 40 | 22B3B271E2402A1E66FCDDD790EE7971 /* Pods-SegmentedProgressView_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SegmentedProgressView_Example-dummy.m"; sourceTree = ""; }; 41 | 2CF6CD7002163BD8AB819328BB3A655B /* SegmentedProgressView-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "SegmentedProgressView-umbrella.h"; sourceTree = ""; }; 42 | 3E102B2A55E6E7692453B305F0CFBA7E /* Pods-SegmentedProgressView_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SegmentedProgressView_Tests-acknowledgements.plist"; sourceTree = ""; }; 43 | 4B2C5799A04FD649F8D9EB2CD44E2071 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 5B315CFF97B036B65D1AB07841B55F05 /* SegmentedProgressView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = SegmentedProgressView.framework; path = SegmentedProgressView.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 601C0F86644F3BCDED39A8BA252ED167 /* Pods-SegmentedProgressView_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SegmentedProgressView_Example-resources.sh"; sourceTree = ""; }; 46 | 61CB3C7E9EB5680B00EB1DB8A40A447C /* Pods_SegmentedProgressView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_SegmentedProgressView_Tests.framework; path = "Pods-SegmentedProgressView_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 634AE2E65F535B9AB77407B57B610572 /* SegmentedProgressView-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "SegmentedProgressView-dummy.m"; sourceTree = ""; }; 48 | 65237043C0E6E6C4C4859947B1930634 /* Pods_SegmentedProgressView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_SegmentedProgressView_Example.framework; path = "Pods-SegmentedProgressView_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 50 | 74359BEB07713728C82C14AD54EB7716 /* Pods-SegmentedProgressView_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-SegmentedProgressView_Example-acknowledgements.plist"; sourceTree = ""; }; 51 | 755BCE1E886E9613EDB73F6F271A1D39 /* SegmentedProgressView.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = SegmentedProgressView.modulemap; sourceTree = ""; }; 52 | 78D5DD52608F7E2D0391844663BC5A91 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 53 | 796F03B64104E0ECAE5C9DCB12E63E75 /* Pods-SegmentedProgressView_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SegmentedProgressView_Example-acknowledgements.markdown"; sourceTree = ""; }; 54 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 55 | 9CC1A8428FA630E60ABDC192D7F74DC6 /* SegmentedProgressView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = SegmentedProgressView.swift; sourceTree = ""; }; 56 | AE628C8B1B91EE2E9BEA335341594930 /* Pods-SegmentedProgressView_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-SegmentedProgressView_Tests-acknowledgements.markdown"; sourceTree = ""; }; 57 | BD4078E40A52307C078AA28A65453173 /* Pods-SegmentedProgressView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SegmentedProgressView_Example.release.xcconfig"; sourceTree = ""; }; 58 | BD6FB4E2C5E215DD3FE02FE6B3739C12 /* Pods-SegmentedProgressView_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-SegmentedProgressView_Example.modulemap"; sourceTree = ""; }; 59 | C7F4359DA9D8FC12C37687BFF656D30F /* Pods-SegmentedProgressView_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SegmentedProgressView_Tests-umbrella.h"; sourceTree = ""; }; 60 | D6966CA274CAF030FB67327120EED577 /* Pods-SegmentedProgressView_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SegmentedProgressView_Tests-resources.sh"; sourceTree = ""; }; 61 | DAD6E31BA647A0AFA48BE41B62FFED40 /* Pods-SegmentedProgressView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SegmentedProgressView_Tests.release.xcconfig"; sourceTree = ""; }; 62 | DD1F462C6276517A6CBC99D1E12A6556 /* Pods-SegmentedProgressView_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SegmentedProgressView_Tests-frameworks.sh"; sourceTree = ""; }; 63 | E8C785F4C5CA25448882F96122382501 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 64 | ED61AD592A7EFBB05504A40BACC70DCA /* Pods-SegmentedProgressView_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-SegmentedProgressView_Example-frameworks.sh"; sourceTree = ""; }; 65 | F3AF31CE6C6498984C768BBE7516D69C /* Pods-SegmentedProgressView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SegmentedProgressView_Example.debug.xcconfig"; sourceTree = ""; }; 66 | F52EF94608BCE7B0B256893BD43956EA /* Pods-SegmentedProgressView_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-SegmentedProgressView_Tests-dummy.m"; sourceTree = ""; }; 67 | F961A788D1A5D3D68D36B64A290ED9E7 /* Pods-SegmentedProgressView_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-SegmentedProgressView_Example-umbrella.h"; sourceTree = ""; }; 68 | FA8D3F05BD7CE97B3CD61A9828B76166 /* Pods-SegmentedProgressView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-SegmentedProgressView_Tests.debug.xcconfig"; sourceTree = ""; }; 69 | /* End PBXFileReference section */ 70 | 71 | /* Begin PBXFrameworksBuildPhase section */ 72 | 19C443A5B7B81417707ED81DA7314B4B /* Frameworks */ = { 73 | isa = PBXFrameworksBuildPhase; 74 | buildActionMask = 2147483647; 75 | files = ( 76 | 2D8EBE40505A23748616B2ACFA516F8F /* Foundation.framework in Frameworks */, 77 | ); 78 | runOnlyForDeploymentPostprocessing = 0; 79 | }; 80 | 69A28AFB33AD5D48E991DF67A232EEF1 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | 7281EF2827DDF2FFFB1AA407658CFEE1 /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | 930FE80B4ADCB37739CBFB32D5BB6C5A /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | 6C7D69737EA26C53A3632F386C1C2F67 /* Foundation.framework in Frameworks */, 93 | ); 94 | runOnlyForDeploymentPostprocessing = 0; 95 | }; 96 | /* End PBXFrameworksBuildPhase section */ 97 | 98 | /* Begin PBXGroup section */ 99 | 1A2A4243B1393A979ED91CA893FDFAEB /* SegmentedProgressView */ = { 100 | isa = PBXGroup; 101 | children = ( 102 | F6C8C0F0EF4658F075FCC8B0843C0FE9 /* SegmentedProgressView */, 103 | 854100C422827520BEC20CC7DCF1BD43 /* Support Files */, 104 | ); 105 | name = SegmentedProgressView; 106 | path = ../..; 107 | sourceTree = ""; 108 | }; 109 | 2F80135656588EFC9A863547B7A1A27F /* Pods-SegmentedProgressView_Example */ = { 110 | isa = PBXGroup; 111 | children = ( 112 | 4B2C5799A04FD649F8D9EB2CD44E2071 /* Info.plist */, 113 | BD6FB4E2C5E215DD3FE02FE6B3739C12 /* Pods-SegmentedProgressView_Example.modulemap */, 114 | 796F03B64104E0ECAE5C9DCB12E63E75 /* Pods-SegmentedProgressView_Example-acknowledgements.markdown */, 115 | 74359BEB07713728C82C14AD54EB7716 /* Pods-SegmentedProgressView_Example-acknowledgements.plist */, 116 | 22B3B271E2402A1E66FCDDD790EE7971 /* Pods-SegmentedProgressView_Example-dummy.m */, 117 | ED61AD592A7EFBB05504A40BACC70DCA /* Pods-SegmentedProgressView_Example-frameworks.sh */, 118 | 601C0F86644F3BCDED39A8BA252ED167 /* Pods-SegmentedProgressView_Example-resources.sh */, 119 | F961A788D1A5D3D68D36B64A290ED9E7 /* Pods-SegmentedProgressView_Example-umbrella.h */, 120 | F3AF31CE6C6498984C768BBE7516D69C /* Pods-SegmentedProgressView_Example.debug.xcconfig */, 121 | BD4078E40A52307C078AA28A65453173 /* Pods-SegmentedProgressView_Example.release.xcconfig */, 122 | ); 123 | name = "Pods-SegmentedProgressView_Example"; 124 | path = "Target Support Files/Pods-SegmentedProgressView_Example"; 125 | sourceTree = ""; 126 | }; 127 | 46B0797C59276C313FA069C6FD7933A4 /* Development Pods */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 1A2A4243B1393A979ED91CA893FDFAEB /* SegmentedProgressView */, 131 | ); 132 | name = "Development Pods"; 133 | sourceTree = ""; 134 | }; 135 | 4E8BFF7B95D0CB727C72D026CC902306 /* Products */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 65237043C0E6E6C4C4859947B1930634 /* Pods_SegmentedProgressView_Example.framework */, 139 | 61CB3C7E9EB5680B00EB1DB8A40A447C /* Pods_SegmentedProgressView_Tests.framework */, 140 | 5B315CFF97B036B65D1AB07841B55F05 /* SegmentedProgressView.framework */, 141 | ); 142 | name = Products; 143 | sourceTree = ""; 144 | }; 145 | 5636AAAF25221ACAFFBB82803CF2E9AB /* Pods-SegmentedProgressView_Tests */ = { 146 | isa = PBXGroup; 147 | children = ( 148 | E8C785F4C5CA25448882F96122382501 /* Info.plist */, 149 | 1E4DFCF7BD492EFE6735B2D13CBACB66 /* Pods-SegmentedProgressView_Tests.modulemap */, 150 | AE628C8B1B91EE2E9BEA335341594930 /* Pods-SegmentedProgressView_Tests-acknowledgements.markdown */, 151 | 3E102B2A55E6E7692453B305F0CFBA7E /* Pods-SegmentedProgressView_Tests-acknowledgements.plist */, 152 | F52EF94608BCE7B0B256893BD43956EA /* Pods-SegmentedProgressView_Tests-dummy.m */, 153 | DD1F462C6276517A6CBC99D1E12A6556 /* Pods-SegmentedProgressView_Tests-frameworks.sh */, 154 | D6966CA274CAF030FB67327120EED577 /* Pods-SegmentedProgressView_Tests-resources.sh */, 155 | C7F4359DA9D8FC12C37687BFF656D30F /* Pods-SegmentedProgressView_Tests-umbrella.h */, 156 | FA8D3F05BD7CE97B3CD61A9828B76166 /* Pods-SegmentedProgressView_Tests.debug.xcconfig */, 157 | DAD6E31BA647A0AFA48BE41B62FFED40 /* Pods-SegmentedProgressView_Tests.release.xcconfig */, 158 | ); 159 | name = "Pods-SegmentedProgressView_Tests"; 160 | path = "Target Support Files/Pods-SegmentedProgressView_Tests"; 161 | sourceTree = ""; 162 | }; 163 | 6E915B635645A006D22644249DAF5732 /* Targets Support Files */ = { 164 | isa = PBXGroup; 165 | children = ( 166 | 2F80135656588EFC9A863547B7A1A27F /* Pods-SegmentedProgressView_Example */, 167 | 5636AAAF25221ACAFFBB82803CF2E9AB /* Pods-SegmentedProgressView_Tests */, 168 | ); 169 | name = "Targets Support Files"; 170 | sourceTree = ""; 171 | }; 172 | 7376AD9C39E8678C7DC3D9D5C8648C79 /* Classes */ = { 173 | isa = PBXGroup; 174 | children = ( 175 | 023DDFB1EBA315DC7E0CF15D009EEE05 /* ProgressItem.swift */, 176 | 9CC1A8428FA630E60ABDC192D7F74DC6 /* SegmentedProgressView.swift */, 177 | 20E5A5AA8A8C7C7A27D8BE3DBBAD8875 /* SegmentView.swift */, 178 | ); 179 | name = Classes; 180 | path = Classes; 181 | sourceTree = ""; 182 | }; 183 | 7DB346D0F39D3F0E887471402A8071AB = { 184 | isa = PBXGroup; 185 | children = ( 186 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 187 | 46B0797C59276C313FA069C6FD7933A4 /* Development Pods */, 188 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 189 | 4E8BFF7B95D0CB727C72D026CC902306 /* Products */, 190 | 6E915B635645A006D22644249DAF5732 /* Targets Support Files */, 191 | ); 192 | sourceTree = ""; 193 | }; 194 | 854100C422827520BEC20CC7DCF1BD43 /* Support Files */ = { 195 | isa = PBXGroup; 196 | children = ( 197 | 78D5DD52608F7E2D0391844663BC5A91 /* Info.plist */, 198 | 755BCE1E886E9613EDB73F6F271A1D39 /* SegmentedProgressView.modulemap */, 199 | 121E6B07793315B97A12223BC9AE25E4 /* SegmentedProgressView.xcconfig */, 200 | 634AE2E65F535B9AB77407B57B610572 /* SegmentedProgressView-dummy.m */, 201 | 0DBB931149EA9521701C2E041380FC0D /* SegmentedProgressView-prefix.pch */, 202 | 2CF6CD7002163BD8AB819328BB3A655B /* SegmentedProgressView-umbrella.h */, 203 | ); 204 | name = "Support Files"; 205 | path = "Example/Pods/Target Support Files/SegmentedProgressView"; 206 | sourceTree = ""; 207 | }; 208 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 209 | isa = PBXGroup; 210 | children = ( 211 | D35AF013A5F0BAD4F32504907A52519E /* iOS */, 212 | ); 213 | name = Frameworks; 214 | sourceTree = ""; 215 | }; 216 | D35AF013A5F0BAD4F32504907A52519E /* iOS */ = { 217 | isa = PBXGroup; 218 | children = ( 219 | 6604A7D69453B4569E4E4827FB9155A9 /* Foundation.framework */, 220 | ); 221 | name = iOS; 222 | sourceTree = ""; 223 | }; 224 | F6C8C0F0EF4658F075FCC8B0843C0FE9 /* SegmentedProgressView */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | 7376AD9C39E8678C7DC3D9D5C8648C79 /* Classes */, 228 | ); 229 | name = SegmentedProgressView; 230 | path = SegmentedProgressView; 231 | sourceTree = ""; 232 | }; 233 | /* End PBXGroup section */ 234 | 235 | /* Begin PBXHeadersBuildPhase section */ 236 | 1AAF7D0CA1A4BF9B044DAE87F1102EB3 /* Headers */ = { 237 | isa = PBXHeadersBuildPhase; 238 | buildActionMask = 2147483647; 239 | files = ( 240 | E0D6EDF20B4F03C73D5F3390EEBBF1A3 /* Pods-SegmentedProgressView_Example-umbrella.h in Headers */, 241 | ); 242 | runOnlyForDeploymentPostprocessing = 0; 243 | }; 244 | 5DF389915D15F0D97A93C99DE6EAC65E /* Headers */ = { 245 | isa = PBXHeadersBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | F1807733609D1703B9E552CDF7EDB8E8 /* SegmentedProgressView-umbrella.h in Headers */, 249 | ); 250 | runOnlyForDeploymentPostprocessing = 0; 251 | }; 252 | E8EDA7BC363B89C317FE15BC5BC0C73A /* Headers */ = { 253 | isa = PBXHeadersBuildPhase; 254 | buildActionMask = 2147483647; 255 | files = ( 256 | AB4E10A627744774CB94562EAB2E95DC /* Pods-SegmentedProgressView_Tests-umbrella.h in Headers */, 257 | ); 258 | runOnlyForDeploymentPostprocessing = 0; 259 | }; 260 | /* End PBXHeadersBuildPhase section */ 261 | 262 | /* Begin PBXNativeTarget section */ 263 | 3E244A50100868CD709639393F12584F /* SegmentedProgressView */ = { 264 | isa = PBXNativeTarget; 265 | buildConfigurationList = 278F180180CA2C8C82B43CA6B18C8547 /* Build configuration list for PBXNativeTarget "SegmentedProgressView" */; 266 | buildPhases = ( 267 | FC629F4262A03AC769AB373E1901AF41 /* Sources */, 268 | 930FE80B4ADCB37739CBFB32D5BB6C5A /* Frameworks */, 269 | 5DF389915D15F0D97A93C99DE6EAC65E /* Headers */, 270 | ); 271 | buildRules = ( 272 | ); 273 | dependencies = ( 274 | ); 275 | name = SegmentedProgressView; 276 | productName = SegmentedProgressView; 277 | productReference = 5B315CFF97B036B65D1AB07841B55F05 /* SegmentedProgressView.framework */; 278 | productType = "com.apple.product-type.framework"; 279 | }; 280 | 83E203A0CED14A823BA0FC189C0DB959 /* Pods-SegmentedProgressView_Example */ = { 281 | isa = PBXNativeTarget; 282 | buildConfigurationList = D8B8B46C027E2C1BB4A849163FAD92A2 /* Build configuration list for PBXNativeTarget "Pods-SegmentedProgressView_Example" */; 283 | buildPhases = ( 284 | 89C3E1FE8CBD014B84067FB7719ED7B3 /* Sources */, 285 | 19C443A5B7B81417707ED81DA7314B4B /* Frameworks */, 286 | 1AAF7D0CA1A4BF9B044DAE87F1102EB3 /* Headers */, 287 | ); 288 | buildRules = ( 289 | ); 290 | dependencies = ( 291 | AEC4A2BECB760B689090401096C5249B /* PBXTargetDependency */, 292 | ); 293 | name = "Pods-SegmentedProgressView_Example"; 294 | productName = "Pods-SegmentedProgressView_Example"; 295 | productReference = 65237043C0E6E6C4C4859947B1930634 /* Pods_SegmentedProgressView_Example.framework */; 296 | productType = "com.apple.product-type.framework"; 297 | }; 298 | EF41B6F4D6700FAE0791B9165AA06338 /* Pods-SegmentedProgressView_Tests */ = { 299 | isa = PBXNativeTarget; 300 | buildConfigurationList = A1CAFB327648391C5B04630EA19F5060 /* Build configuration list for PBXNativeTarget "Pods-SegmentedProgressView_Tests" */; 301 | buildPhases = ( 302 | E69D075ACA3091EDD3D0CC67E761B84E /* Sources */, 303 | 69A28AFB33AD5D48E991DF67A232EEF1 /* Frameworks */, 304 | E8EDA7BC363B89C317FE15BC5BC0C73A /* Headers */, 305 | ); 306 | buildRules = ( 307 | ); 308 | dependencies = ( 309 | ); 310 | name = "Pods-SegmentedProgressView_Tests"; 311 | productName = "Pods-SegmentedProgressView_Tests"; 312 | productReference = 61CB3C7E9EB5680B00EB1DB8A40A447C /* Pods_SegmentedProgressView_Tests.framework */; 313 | productType = "com.apple.product-type.framework"; 314 | }; 315 | /* End PBXNativeTarget section */ 316 | 317 | /* Begin PBXProject section */ 318 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 319 | isa = PBXProject; 320 | attributes = { 321 | LastSwiftUpdateCheck = 0830; 322 | LastUpgradeCheck = 0700; 323 | }; 324 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 325 | compatibilityVersion = "Xcode 3.2"; 326 | developmentRegion = English; 327 | hasScannedForEncodings = 0; 328 | knownRegions = ( 329 | en, 330 | ); 331 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 332 | productRefGroup = 4E8BFF7B95D0CB727C72D026CC902306 /* Products */; 333 | projectDirPath = ""; 334 | projectRoot = ""; 335 | targets = ( 336 | 83E203A0CED14A823BA0FC189C0DB959 /* Pods-SegmentedProgressView_Example */, 337 | EF41B6F4D6700FAE0791B9165AA06338 /* Pods-SegmentedProgressView_Tests */, 338 | 3E244A50100868CD709639393F12584F /* SegmentedProgressView */, 339 | ); 340 | }; 341 | /* End PBXProject section */ 342 | 343 | /* Begin PBXSourcesBuildPhase section */ 344 | 89C3E1FE8CBD014B84067FB7719ED7B3 /* Sources */ = { 345 | isa = PBXSourcesBuildPhase; 346 | buildActionMask = 2147483647; 347 | files = ( 348 | EAB81993023E9D836250269C862A1271 /* Pods-SegmentedProgressView_Example-dummy.m in Sources */, 349 | ); 350 | runOnlyForDeploymentPostprocessing = 0; 351 | }; 352 | E69D075ACA3091EDD3D0CC67E761B84E /* Sources */ = { 353 | isa = PBXSourcesBuildPhase; 354 | buildActionMask = 2147483647; 355 | files = ( 356 | 824E9AD4257D145E15D428CD16ABEF35 /* Pods-SegmentedProgressView_Tests-dummy.m in Sources */, 357 | ); 358 | runOnlyForDeploymentPostprocessing = 0; 359 | }; 360 | FC629F4262A03AC769AB373E1901AF41 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 03104857482A70C7694CF423E1B10331 /* ProgressItem.swift in Sources */, 365 | 4223361A0C0EE8735B19F63CB0FA953A /* SegmentedProgressView-dummy.m in Sources */, 366 | A83D7D1F7B38A3D7F6931BEB6F85DFF1 /* SegmentedProgressView.swift in Sources */, 367 | 65626E78B8BE6807A17605B79BB7129D /* SegmentView.swift in Sources */, 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | }; 371 | /* End PBXSourcesBuildPhase section */ 372 | 373 | /* Begin PBXTargetDependency section */ 374 | AEC4A2BECB760B689090401096C5249B /* PBXTargetDependency */ = { 375 | isa = PBXTargetDependency; 376 | name = SegmentedProgressView; 377 | target = 3E244A50100868CD709639393F12584F /* SegmentedProgressView */; 378 | targetProxy = FEB593AFFCE76FB5DB22ACE9651749C7 /* PBXContainerItemProxy */; 379 | }; 380 | /* End PBXTargetDependency section */ 381 | 382 | /* Begin XCBuildConfiguration section */ 383 | 1180400FD6A3B201FB176114CDA58546 /* Release */ = { 384 | isa = XCBuildConfiguration; 385 | baseConfigurationReference = DAD6E31BA647A0AFA48BE41B62FFED40 /* Pods-SegmentedProgressView_Tests.release.xcconfig */; 386 | buildSettings = { 387 | CODE_SIGN_IDENTITY = ""; 388 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 389 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 390 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 391 | CURRENT_PROJECT_VERSION = 1; 392 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 393 | DEFINES_MODULE = YES; 394 | DYLIB_COMPATIBILITY_VERSION = 1; 395 | DYLIB_CURRENT_VERSION = 1; 396 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 397 | ENABLE_STRICT_OBJC_MSGSEND = YES; 398 | GCC_NO_COMMON_BLOCKS = YES; 399 | INFOPLIST_FILE = "Target Support Files/Pods-SegmentedProgressView_Tests/Info.plist"; 400 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 401 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 402 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 403 | MACH_O_TYPE = staticlib; 404 | MODULEMAP_FILE = "Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests.modulemap"; 405 | MTL_ENABLE_DEBUG_INFO = NO; 406 | OTHER_LDFLAGS = ""; 407 | OTHER_LIBTOOLFLAGS = ""; 408 | PODS_ROOT = "$(SRCROOT)"; 409 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 410 | PRODUCT_NAME = Pods_SegmentedProgressView_Tests; 411 | SDKROOT = iphoneos; 412 | SKIP_INSTALL = YES; 413 | TARGETED_DEVICE_FAMILY = "1,2"; 414 | VERSIONING_SYSTEM = "apple-generic"; 415 | VERSION_INFO_PREFIX = ""; 416 | }; 417 | name = Release; 418 | }; 419 | 3187128EFEF539C917D6BC0C4E3BEB21 /* Release */ = { 420 | isa = XCBuildConfiguration; 421 | baseConfigurationReference = BD4078E40A52307C078AA28A65453173 /* Pods-SegmentedProgressView_Example.release.xcconfig */; 422 | buildSettings = { 423 | CODE_SIGN_IDENTITY = ""; 424 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 425 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 426 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 427 | CURRENT_PROJECT_VERSION = 1; 428 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 429 | DEFINES_MODULE = YES; 430 | DYLIB_COMPATIBILITY_VERSION = 1; 431 | DYLIB_CURRENT_VERSION = 1; 432 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 433 | ENABLE_STRICT_OBJC_MSGSEND = YES; 434 | GCC_NO_COMMON_BLOCKS = YES; 435 | INFOPLIST_FILE = "Target Support Files/Pods-SegmentedProgressView_Example/Info.plist"; 436 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 437 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 438 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 439 | MACH_O_TYPE = staticlib; 440 | MODULEMAP_FILE = "Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example.modulemap"; 441 | MTL_ENABLE_DEBUG_INFO = NO; 442 | OTHER_LDFLAGS = ""; 443 | OTHER_LIBTOOLFLAGS = ""; 444 | PODS_ROOT = "$(SRCROOT)"; 445 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 446 | PRODUCT_NAME = Pods_SegmentedProgressView_Example; 447 | SDKROOT = iphoneos; 448 | SKIP_INSTALL = YES; 449 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 450 | SWIFT_VERSION = 3.0; 451 | TARGETED_DEVICE_FAMILY = "1,2"; 452 | VERSIONING_SYSTEM = "apple-generic"; 453 | VERSION_INFO_PREFIX = ""; 454 | }; 455 | name = Release; 456 | }; 457 | 32CD161D14015B1C16130D6FCA1C1FE0 /* Debug */ = { 458 | isa = XCBuildConfiguration; 459 | baseConfigurationReference = F3AF31CE6C6498984C768BBE7516D69C /* Pods-SegmentedProgressView_Example.debug.xcconfig */; 460 | buildSettings = { 461 | CODE_SIGN_IDENTITY = ""; 462 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 463 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 464 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 465 | CURRENT_PROJECT_VERSION = 1; 466 | DEBUG_INFORMATION_FORMAT = dwarf; 467 | DEFINES_MODULE = YES; 468 | DYLIB_COMPATIBILITY_VERSION = 1; 469 | DYLIB_CURRENT_VERSION = 1; 470 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 471 | ENABLE_STRICT_OBJC_MSGSEND = YES; 472 | GCC_NO_COMMON_BLOCKS = YES; 473 | INFOPLIST_FILE = "Target Support Files/Pods-SegmentedProgressView_Example/Info.plist"; 474 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 475 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 476 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 477 | MACH_O_TYPE = staticlib; 478 | MODULEMAP_FILE = "Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example.modulemap"; 479 | MTL_ENABLE_DEBUG_INFO = YES; 480 | OTHER_LDFLAGS = ""; 481 | OTHER_LIBTOOLFLAGS = ""; 482 | PODS_ROOT = "$(SRCROOT)"; 483 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 484 | PRODUCT_NAME = Pods_SegmentedProgressView_Example; 485 | SDKROOT = iphoneos; 486 | SKIP_INSTALL = YES; 487 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 488 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 489 | SWIFT_VERSION = 3.0; 490 | TARGETED_DEVICE_FAMILY = "1,2"; 491 | VERSIONING_SYSTEM = "apple-generic"; 492 | VERSION_INFO_PREFIX = ""; 493 | }; 494 | name = Debug; 495 | }; 496 | 345CC476DF4A7516DBD2220CF5035FF3 /* Debug */ = { 497 | isa = XCBuildConfiguration; 498 | buildSettings = { 499 | ALWAYS_SEARCH_USER_PATHS = NO; 500 | CLANG_ANALYZER_NONNULL = YES; 501 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 502 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 503 | CLANG_CXX_LIBRARY = "libc++"; 504 | CLANG_ENABLE_MODULES = YES; 505 | CLANG_ENABLE_OBJC_ARC = YES; 506 | CLANG_WARN_BOOL_CONVERSION = YES; 507 | CLANG_WARN_CONSTANT_CONVERSION = YES; 508 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 509 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 510 | CLANG_WARN_EMPTY_BODY = YES; 511 | CLANG_WARN_ENUM_CONVERSION = YES; 512 | CLANG_WARN_INFINITE_RECURSION = YES; 513 | CLANG_WARN_INT_CONVERSION = YES; 514 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 515 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 516 | CLANG_WARN_UNREACHABLE_CODE = YES; 517 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 518 | CODE_SIGNING_REQUIRED = NO; 519 | COPY_PHASE_STRIP = NO; 520 | ENABLE_TESTABILITY = YES; 521 | GCC_C_LANGUAGE_STANDARD = gnu99; 522 | GCC_DYNAMIC_NO_PIC = NO; 523 | GCC_OPTIMIZATION_LEVEL = 0; 524 | GCC_PREPROCESSOR_DEFINITIONS = ( 525 | "POD_CONFIGURATION_DEBUG=1", 526 | "DEBUG=1", 527 | "$(inherited)", 528 | ); 529 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 530 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 531 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 532 | GCC_WARN_UNDECLARED_SELECTOR = YES; 533 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 534 | GCC_WARN_UNUSED_FUNCTION = YES; 535 | GCC_WARN_UNUSED_VARIABLE = YES; 536 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 537 | ONLY_ACTIVE_ARCH = YES; 538 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 539 | STRIP_INSTALLED_PRODUCT = NO; 540 | SYMROOT = "${SRCROOT}/../build"; 541 | }; 542 | name = Debug; 543 | }; 544 | 4E5ACFD3587DF3F9D29FA9EDE283F3EA /* Debug */ = { 545 | isa = XCBuildConfiguration; 546 | baseConfigurationReference = FA8D3F05BD7CE97B3CD61A9828B76166 /* Pods-SegmentedProgressView_Tests.debug.xcconfig */; 547 | buildSettings = { 548 | CODE_SIGN_IDENTITY = ""; 549 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 550 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 551 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 552 | CURRENT_PROJECT_VERSION = 1; 553 | DEBUG_INFORMATION_FORMAT = dwarf; 554 | DEFINES_MODULE = YES; 555 | DYLIB_COMPATIBILITY_VERSION = 1; 556 | DYLIB_CURRENT_VERSION = 1; 557 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 558 | ENABLE_STRICT_OBJC_MSGSEND = YES; 559 | GCC_NO_COMMON_BLOCKS = YES; 560 | INFOPLIST_FILE = "Target Support Files/Pods-SegmentedProgressView_Tests/Info.plist"; 561 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 562 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 563 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 564 | MACH_O_TYPE = staticlib; 565 | MODULEMAP_FILE = "Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests.modulemap"; 566 | MTL_ENABLE_DEBUG_INFO = YES; 567 | OTHER_LDFLAGS = ""; 568 | OTHER_LIBTOOLFLAGS = ""; 569 | PODS_ROOT = "$(SRCROOT)"; 570 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 571 | PRODUCT_NAME = Pods_SegmentedProgressView_Tests; 572 | SDKROOT = iphoneos; 573 | SKIP_INSTALL = YES; 574 | TARGETED_DEVICE_FAMILY = "1,2"; 575 | VERSIONING_SYSTEM = "apple-generic"; 576 | VERSION_INFO_PREFIX = ""; 577 | }; 578 | name = Debug; 579 | }; 580 | 717E77604BFBB04BEAF56608A1CB2EDE /* Release */ = { 581 | isa = XCBuildConfiguration; 582 | buildSettings = { 583 | ALWAYS_SEARCH_USER_PATHS = NO; 584 | CLANG_ANALYZER_NONNULL = YES; 585 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES; 586 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 587 | CLANG_CXX_LIBRARY = "libc++"; 588 | CLANG_ENABLE_MODULES = YES; 589 | CLANG_ENABLE_OBJC_ARC = YES; 590 | CLANG_WARN_BOOL_CONVERSION = YES; 591 | CLANG_WARN_CONSTANT_CONVERSION = YES; 592 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 593 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 594 | CLANG_WARN_EMPTY_BODY = YES; 595 | CLANG_WARN_ENUM_CONVERSION = YES; 596 | CLANG_WARN_INFINITE_RECURSION = YES; 597 | CLANG_WARN_INT_CONVERSION = YES; 598 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 599 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 600 | CLANG_WARN_UNREACHABLE_CODE = YES; 601 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 602 | CODE_SIGNING_REQUIRED = NO; 603 | COPY_PHASE_STRIP = YES; 604 | ENABLE_NS_ASSERTIONS = NO; 605 | GCC_C_LANGUAGE_STANDARD = gnu99; 606 | GCC_PREPROCESSOR_DEFINITIONS = ( 607 | "POD_CONFIGURATION_RELEASE=1", 608 | "$(inherited)", 609 | ); 610 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 611 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 612 | GCC_WARN_UNDECLARED_SELECTOR = YES; 613 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 614 | GCC_WARN_UNUSED_FUNCTION = YES; 615 | GCC_WARN_UNUSED_VARIABLE = YES; 616 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 617 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 618 | STRIP_INSTALLED_PRODUCT = NO; 619 | SYMROOT = "${SRCROOT}/../build"; 620 | VALIDATE_PRODUCT = YES; 621 | }; 622 | name = Release; 623 | }; 624 | 90FEE3641726B24BDA3FAFE1EFD9FFDD /* Release */ = { 625 | isa = XCBuildConfiguration; 626 | baseConfigurationReference = 121E6B07793315B97A12223BC9AE25E4 /* SegmentedProgressView.xcconfig */; 627 | buildSettings = { 628 | CODE_SIGN_IDENTITY = ""; 629 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 630 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 631 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 632 | CURRENT_PROJECT_VERSION = 1; 633 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 634 | DEFINES_MODULE = YES; 635 | DYLIB_COMPATIBILITY_VERSION = 1; 636 | DYLIB_CURRENT_VERSION = 1; 637 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 638 | ENABLE_STRICT_OBJC_MSGSEND = YES; 639 | GCC_NO_COMMON_BLOCKS = YES; 640 | GCC_PREFIX_HEADER = "Target Support Files/SegmentedProgressView/SegmentedProgressView-prefix.pch"; 641 | INFOPLIST_FILE = "Target Support Files/SegmentedProgressView/Info.plist"; 642 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 643 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 644 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 645 | MODULEMAP_FILE = "Target Support Files/SegmentedProgressView/SegmentedProgressView.modulemap"; 646 | MTL_ENABLE_DEBUG_INFO = NO; 647 | PRODUCT_NAME = SegmentedProgressView; 648 | SDKROOT = iphoneos; 649 | SKIP_INSTALL = YES; 650 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 651 | SWIFT_VERSION = 3.0; 652 | TARGETED_DEVICE_FAMILY = "1,2"; 653 | VERSIONING_SYSTEM = "apple-generic"; 654 | VERSION_INFO_PREFIX = ""; 655 | }; 656 | name = Release; 657 | }; 658 | 91134A6DA6415DF8CF4DD50A7CA328EC /* Debug */ = { 659 | isa = XCBuildConfiguration; 660 | baseConfigurationReference = 121E6B07793315B97A12223BC9AE25E4 /* SegmentedProgressView.xcconfig */; 661 | buildSettings = { 662 | CODE_SIGN_IDENTITY = ""; 663 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 664 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 665 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 666 | CURRENT_PROJECT_VERSION = 1; 667 | DEBUG_INFORMATION_FORMAT = dwarf; 668 | DEFINES_MODULE = YES; 669 | DYLIB_COMPATIBILITY_VERSION = 1; 670 | DYLIB_CURRENT_VERSION = 1; 671 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 672 | ENABLE_STRICT_OBJC_MSGSEND = YES; 673 | GCC_NO_COMMON_BLOCKS = YES; 674 | GCC_PREFIX_HEADER = "Target Support Files/SegmentedProgressView/SegmentedProgressView-prefix.pch"; 675 | INFOPLIST_FILE = "Target Support Files/SegmentedProgressView/Info.plist"; 676 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 677 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 678 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 679 | MODULEMAP_FILE = "Target Support Files/SegmentedProgressView/SegmentedProgressView.modulemap"; 680 | MTL_ENABLE_DEBUG_INFO = YES; 681 | PRODUCT_NAME = SegmentedProgressView; 682 | SDKROOT = iphoneos; 683 | SKIP_INSTALL = YES; 684 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 685 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 686 | SWIFT_VERSION = 3.0; 687 | TARGETED_DEVICE_FAMILY = "1,2"; 688 | VERSIONING_SYSTEM = "apple-generic"; 689 | VERSION_INFO_PREFIX = ""; 690 | }; 691 | name = Debug; 692 | }; 693 | /* End XCBuildConfiguration section */ 694 | 695 | /* Begin XCConfigurationList section */ 696 | 278F180180CA2C8C82B43CA6B18C8547 /* Build configuration list for PBXNativeTarget "SegmentedProgressView" */ = { 697 | isa = XCConfigurationList; 698 | buildConfigurations = ( 699 | 91134A6DA6415DF8CF4DD50A7CA328EC /* Debug */, 700 | 90FEE3641726B24BDA3FAFE1EFD9FFDD /* Release */, 701 | ); 702 | defaultConfigurationIsVisible = 0; 703 | defaultConfigurationName = Release; 704 | }; 705 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 706 | isa = XCConfigurationList; 707 | buildConfigurations = ( 708 | 345CC476DF4A7516DBD2220CF5035FF3 /* Debug */, 709 | 717E77604BFBB04BEAF56608A1CB2EDE /* Release */, 710 | ); 711 | defaultConfigurationIsVisible = 0; 712 | defaultConfigurationName = Release; 713 | }; 714 | A1CAFB327648391C5B04630EA19F5060 /* Build configuration list for PBXNativeTarget "Pods-SegmentedProgressView_Tests" */ = { 715 | isa = XCConfigurationList; 716 | buildConfigurations = ( 717 | 4E5ACFD3587DF3F9D29FA9EDE283F3EA /* Debug */, 718 | 1180400FD6A3B201FB176114CDA58546 /* Release */, 719 | ); 720 | defaultConfigurationIsVisible = 0; 721 | defaultConfigurationName = Release; 722 | }; 723 | D8B8B46C027E2C1BB4A849163FAD92A2 /* Build configuration list for PBXNativeTarget "Pods-SegmentedProgressView_Example" */ = { 724 | isa = XCConfigurationList; 725 | buildConfigurations = ( 726 | 32CD161D14015B1C16130D6FCA1C1FE0 /* Debug */, 727 | 3187128EFEF539C917D6BC0C4E3BEB21 /* Release */, 728 | ); 729 | defaultConfigurationIsVisible = 0; 730 | defaultConfigurationName = Release; 731 | }; 732 | /* End XCConfigurationList section */ 733 | }; 734 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 735 | } 736 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_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-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SegmentedProgressView 5 | 6 | Copyright (c) 2017 isapozhnik 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-SegmentedProgressView_Example/Pods-SegmentedProgressView_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 isapozhnik <sapozhnik.ivan@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | SegmentedProgressView 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-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SegmentedProgressView_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SegmentedProgressView_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_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 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/SegmentedProgressView/SegmentedProgressView.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/SegmentedProgressView/SegmentedProgressView.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_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 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 25 | TARGET_DEVICE_ARGS="--target-device mac" 26 | ;; 27 | esac 28 | 29 | install_resource() 30 | { 31 | if [[ "$1" = /* ]] ; then 32 | RESOURCE_PATH="$1" 33 | else 34 | RESOURCE_PATH="${PODS_ROOT}/$1" 35 | fi 36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 37 | cat << EOM 38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 39 | EOM 40 | exit 1 41 | fi 42 | case $RESOURCE_PATH in 43 | *.storyboard) 44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 46 | ;; 47 | *.xib) 48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 50 | ;; 51 | *.framework) 52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | ;; 57 | *.xcdatamodel) 58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 60 | ;; 61 | *.xcdatamodeld) 62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 64 | ;; 65 | *.xcmappingmodel) 66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 68 | ;; 69 | *.xcassets) 70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 72 | ;; 73 | *) 74 | echo "$RESOURCE_PATH" 75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 76 | ;; 77 | esac 78 | } 79 | 80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | fi 86 | rm -f "$RESOURCES_TO_COPY" 87 | 88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 89 | then 90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 92 | while read line; do 93 | if [[ $line != "${PODS_ROOT}*" ]]; then 94 | XCASSET_FILES+=("$line") 95 | fi 96 | done <<<"$OTHER_XCASSETS" 97 | 98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_SegmentedProgressView_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_SegmentedProgressView_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SegmentedProgressView" 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/SegmentedProgressView/SegmentedProgressView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "SegmentedProgressView" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SegmentedProgressView_Example { 2 | umbrella header "Pods-SegmentedProgressView_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SegmentedProgressView" 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/SegmentedProgressView/SegmentedProgressView.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "SegmentedProgressView" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_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-SegmentedProgressView_Tests/Pods-SegmentedProgressView_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-SegmentedProgressView_Tests/Pods-SegmentedProgressView_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-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_SegmentedProgressView_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_SegmentedProgressView_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_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 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_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 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 25 | TARGET_DEVICE_ARGS="--target-device mac" 26 | ;; 27 | esac 28 | 29 | install_resource() 30 | { 31 | if [[ "$1" = /* ]] ; then 32 | RESOURCE_PATH="$1" 33 | else 34 | RESOURCE_PATH="${PODS_ROOT}/$1" 35 | fi 36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 37 | cat << EOM 38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 39 | EOM 40 | exit 1 41 | fi 42 | case $RESOURCE_PATH in 43 | *.storyboard) 44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 46 | ;; 47 | *.xib) 48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 50 | ;; 51 | *.framework) 52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | ;; 57 | *.xcdatamodel) 58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 60 | ;; 61 | *.xcdatamodeld) 62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 64 | ;; 65 | *.xcmappingmodel) 66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 68 | ;; 69 | *.xcassets) 70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 72 | ;; 73 | *) 74 | echo "$RESOURCE_PATH" 75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 76 | ;; 77 | esac 78 | } 79 | 80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | fi 86 | rm -f "$RESOURCES_TO_COPY" 87 | 88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 89 | then 90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 92 | while read line; do 93 | if [[ $line != "${PODS_ROOT}*" ]]; then 94 | XCASSET_FILES+=("$line") 95 | fi 96 | done <<<"$OTHER_XCASSETS" 97 | 98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_SegmentedProgressView_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_SegmentedProgressView_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SegmentedProgressView" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/SegmentedProgressView/SegmentedProgressView.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_SegmentedProgressView_Tests { 2 | umbrella header "Pods-SegmentedProgressView_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/SegmentedProgressView" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/SegmentedProgressView/SegmentedProgressView.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SegmentedProgressView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SegmentedProgressView/SegmentedProgressView-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_SegmentedProgressView : NSObject 3 | @end 4 | @implementation PodsDummy_SegmentedProgressView 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SegmentedProgressView/SegmentedProgressView-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SegmentedProgressView/SegmentedProgressView-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double SegmentedProgressViewVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char SegmentedProgressViewVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SegmentedProgressView/SegmentedProgressView.modulemap: -------------------------------------------------------------------------------- 1 | framework module SegmentedProgressView { 2 | umbrella header "SegmentedProgressView-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/SegmentedProgressView/SegmentedProgressView.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/SegmentedProgressView 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/SegmentedProgressView.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 03AC50A14B2183974C8EC252 /* Pods_SegmentedProgressView_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3E8888A91F92AF7E4B6ED7F1 /* Pods_SegmentedProgressView_Tests.framework */; }; 11 | 405B0F1B63EC35F2371AEABF /* Pods_SegmentedProgressView_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CEF319EAFAB0544D166C0CE5 /* Pods_SegmentedProgressView_Example.framework */; }; 12 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 13 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 14 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 15 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 16 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 17 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = SegmentedProgressView; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 22F5D368784ECF581715F99E /* Pods-SegmentedProgressView_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SegmentedProgressView_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example.debug.xcconfig"; sourceTree = ""; }; 32 | 3E8888A91F92AF7E4B6ED7F1 /* Pods_SegmentedProgressView_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SegmentedProgressView_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 435A290189288F1CEAF9DE65 /* SegmentedProgressView.podspec */ = {isa = PBXFileReference; includeInIndex = 1; name = SegmentedProgressView.podspec; path = ../SegmentedProgressView.podspec; sourceTree = ""; }; 34 | 607FACD01AFB9204008FA782 /* SegmentedProgressView_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SegmentedProgressView_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 35 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 36 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 37 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 38 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 39 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 40 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 41 | 607FACE51AFB9204008FA782 /* SegmentedProgressView_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SegmentedProgressView_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 42 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 44 | 64D29640E0FC33B06E978DC7 /* Pods-SegmentedProgressView_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SegmentedProgressView_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example.release.xcconfig"; sourceTree = ""; }; 45 | 78200C1EF2CC7C175F0A217E /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 46 | 8703D334B7A324E13358E57D /* Pods-SegmentedProgressView_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SegmentedProgressView_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests.debug.xcconfig"; sourceTree = ""; }; 47 | BCE5EC3F848835671BA96C42 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; name = README.md; path = ../README.md; sourceTree = ""; }; 48 | CEF319EAFAB0544D166C0CE5 /* Pods_SegmentedProgressView_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SegmentedProgressView_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 49 | D8F33932E0E1373596BBCC77 /* Pods-SegmentedProgressView_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SegmentedProgressView_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests.release.xcconfig"; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 405B0F1B63EC35F2371AEABF /* Pods_SegmentedProgressView_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 03AC50A14B2183974C8EC252 /* Pods_SegmentedProgressView_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 607FACC71AFB9204008FA782 = { 73 | isa = PBXGroup; 74 | children = ( 75 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 76 | 607FACD21AFB9204008FA782 /* Example for SegmentedProgressView */, 77 | 607FACE81AFB9204008FA782 /* Tests */, 78 | 607FACD11AFB9204008FA782 /* Products */, 79 | 8DE0531FA278ACF24734EE51 /* Pods */, 80 | E105D776A45D27F136869A75 /* Frameworks */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 607FACD11AFB9204008FA782 /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 607FACD01AFB9204008FA782 /* SegmentedProgressView_Example.app */, 88 | 607FACE51AFB9204008FA782 /* SegmentedProgressView_Tests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 607FACD21AFB9204008FA782 /* Example for SegmentedProgressView */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 97 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 98 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 99 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 100 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 101 | 607FACD31AFB9204008FA782 /* Supporting Files */, 102 | ); 103 | name = "Example for SegmentedProgressView"; 104 | path = SegmentedProgressView; 105 | sourceTree = ""; 106 | }; 107 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | 607FACD41AFB9204008FA782 /* Info.plist */, 111 | ); 112 | name = "Supporting Files"; 113 | sourceTree = ""; 114 | }; 115 | 607FACE81AFB9204008FA782 /* Tests */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 119 | 607FACE91AFB9204008FA782 /* Supporting Files */, 120 | ); 121 | path = Tests; 122 | sourceTree = ""; 123 | }; 124 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEA1AFB9204008FA782 /* Info.plist */, 128 | ); 129 | name = "Supporting Files"; 130 | sourceTree = ""; 131 | }; 132 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 133 | isa = PBXGroup; 134 | children = ( 135 | 435A290189288F1CEAF9DE65 /* SegmentedProgressView.podspec */, 136 | BCE5EC3F848835671BA96C42 /* README.md */, 137 | 78200C1EF2CC7C175F0A217E /* LICENSE */, 138 | ); 139 | name = "Podspec Metadata"; 140 | sourceTree = ""; 141 | }; 142 | 8DE0531FA278ACF24734EE51 /* Pods */ = { 143 | isa = PBXGroup; 144 | children = ( 145 | 22F5D368784ECF581715F99E /* Pods-SegmentedProgressView_Example.debug.xcconfig */, 146 | 64D29640E0FC33B06E978DC7 /* Pods-SegmentedProgressView_Example.release.xcconfig */, 147 | 8703D334B7A324E13358E57D /* Pods-SegmentedProgressView_Tests.debug.xcconfig */, 148 | D8F33932E0E1373596BBCC77 /* Pods-SegmentedProgressView_Tests.release.xcconfig */, 149 | ); 150 | name = Pods; 151 | sourceTree = ""; 152 | }; 153 | E105D776A45D27F136869A75 /* Frameworks */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | CEF319EAFAB0544D166C0CE5 /* Pods_SegmentedProgressView_Example.framework */, 157 | 3E8888A91F92AF7E4B6ED7F1 /* Pods_SegmentedProgressView_Tests.framework */, 158 | ); 159 | name = Frameworks; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* SegmentedProgressView_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SegmentedProgressView_Example" */; 168 | buildPhases = ( 169 | 71784C92C034454F6CA1C7D9 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | A11AE2503C7367436B2CCD71 /* [CP] Embed Pods Frameworks */, 174 | F2886340BCCB3E4F2620A53E /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = SegmentedProgressView_Example; 181 | productName = SegmentedProgressView; 182 | productReference = 607FACD01AFB9204008FA782 /* SegmentedProgressView_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* SegmentedProgressView_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SegmentedProgressView_Tests" */; 188 | buildPhases = ( 189 | D021EB56DEDC305917B6E0E8 /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | 01C0B5C68058AF1F37D3AFBB /* [CP] Embed Pods Frameworks */, 194 | 013AF29C3EB0E097C69930AF /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = SegmentedProgressView_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* SegmentedProgressView_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0720; 213 | LastUpgradeCheck = 0820; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 0820; 219 | }; 220 | 607FACE41AFB9204008FA782 = { 221 | CreatedOnToolsVersion = 6.3.1; 222 | LastSwiftMigration = 0820; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SegmentedProgressView" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 607FACC71AFB9204008FA782; 236 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 607FACCF1AFB9204008FA782 /* SegmentedProgressView_Example */, 241 | 607FACE41AFB9204008FA782 /* SegmentedProgressView_Tests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 607FACCE1AFB9204008FA782 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 252 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 253 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 607FACE31AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 013AF29C3EB0E097C69930AF /* [CP] Copy Pods Resources */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | ); 274 | name = "[CP] Copy Pods Resources"; 275 | outputPaths = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests-resources.sh\"\n"; 280 | showEnvVarsInLog = 0; 281 | }; 282 | 01C0B5C68058AF1F37D3AFBB /* [CP] Embed Pods Frameworks */ = { 283 | isa = PBXShellScriptBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | ); 287 | inputPaths = ( 288 | ); 289 | name = "[CP] Embed Pods Frameworks"; 290 | outputPaths = ( 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | shellPath = /bin/sh; 294 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SegmentedProgressView_Tests/Pods-SegmentedProgressView_Tests-frameworks.sh\"\n"; 295 | showEnvVarsInLog = 0; 296 | }; 297 | 71784C92C034454F6CA1C7D9 /* [CP] Check Pods Manifest.lock */ = { 298 | isa = PBXShellScriptBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | ); 302 | inputPaths = ( 303 | ); 304 | name = "[CP] Check Pods Manifest.lock"; 305 | outputPaths = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | shellPath = /bin/sh; 309 | 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"; 310 | showEnvVarsInLog = 0; 311 | }; 312 | A11AE2503C7367436B2CCD71 /* [CP] Embed Pods Frameworks */ = { 313 | isa = PBXShellScriptBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | ); 317 | inputPaths = ( 318 | ); 319 | name = "[CP] Embed Pods Frameworks"; 320 | outputPaths = ( 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example-frameworks.sh\"\n"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | D021EB56DEDC305917B6E0E8 /* [CP] Check Pods Manifest.lock */ = { 328 | isa = PBXShellScriptBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | inputPaths = ( 333 | ); 334 | name = "[CP] Check Pods Manifest.lock"; 335 | outputPaths = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | shellPath = /bin/sh; 339 | 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"; 340 | showEnvVarsInLog = 0; 341 | }; 342 | F2886340BCCB3E4F2620A53E /* [CP] Copy Pods Resources */ = { 343 | isa = PBXShellScriptBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | inputPaths = ( 348 | ); 349 | name = "[CP] Copy Pods Resources"; 350 | outputPaths = ( 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | shellPath = /bin/sh; 354 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-SegmentedProgressView_Example/Pods-SegmentedProgressView_Example-resources.sh\"\n"; 355 | showEnvVarsInLog = 0; 356 | }; 357 | /* End PBXShellScriptBuildPhase section */ 358 | 359 | /* Begin PBXSourcesBuildPhase section */ 360 | 607FACCC1AFB9204008FA782 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 365 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | 607FACE11AFB9204008FA782 /* Sources */ = { 370 | isa = PBXSourcesBuildPhase; 371 | buildActionMask = 2147483647; 372 | files = ( 373 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | /* End PBXSourcesBuildPhase section */ 378 | 379 | /* Begin PBXTargetDependency section */ 380 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 381 | isa = PBXTargetDependency; 382 | target = 607FACCF1AFB9204008FA782 /* SegmentedProgressView_Example */; 383 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 384 | }; 385 | /* End PBXTargetDependency section */ 386 | 387 | /* Begin PBXVariantGroup section */ 388 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 389 | isa = PBXVariantGroup; 390 | children = ( 391 | 607FACDA1AFB9204008FA782 /* Base */, 392 | ); 393 | name = Main.storyboard; 394 | sourceTree = ""; 395 | }; 396 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 397 | isa = PBXVariantGroup; 398 | children = ( 399 | 607FACDF1AFB9204008FA782 /* Base */, 400 | ); 401 | name = LaunchScreen.xib; 402 | sourceTree = ""; 403 | }; 404 | /* End PBXVariantGroup section */ 405 | 406 | /* Begin XCBuildConfiguration section */ 407 | 607FACED1AFB9204008FA782 /* Debug */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | ALWAYS_SEARCH_USER_PATHS = NO; 411 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 412 | CLANG_CXX_LIBRARY = "libc++"; 413 | CLANG_ENABLE_MODULES = YES; 414 | CLANG_ENABLE_OBJC_ARC = YES; 415 | CLANG_WARN_BOOL_CONVERSION = YES; 416 | CLANG_WARN_CONSTANT_CONVERSION = YES; 417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 418 | CLANG_WARN_EMPTY_BODY = YES; 419 | CLANG_WARN_ENUM_CONVERSION = YES; 420 | CLANG_WARN_INFINITE_RECURSION = YES; 421 | CLANG_WARN_INT_CONVERSION = YES; 422 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 423 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 424 | CLANG_WARN_UNREACHABLE_CODE = YES; 425 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 426 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 427 | COPY_PHASE_STRIP = NO; 428 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 429 | ENABLE_STRICT_OBJC_MSGSEND = YES; 430 | ENABLE_TESTABILITY = YES; 431 | GCC_C_LANGUAGE_STANDARD = gnu99; 432 | GCC_DYNAMIC_NO_PIC = NO; 433 | GCC_NO_COMMON_BLOCKS = YES; 434 | GCC_OPTIMIZATION_LEVEL = 0; 435 | GCC_PREPROCESSOR_DEFINITIONS = ( 436 | "DEBUG=1", 437 | "$(inherited)", 438 | ); 439 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 441 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 442 | GCC_WARN_UNDECLARED_SELECTOR = YES; 443 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 444 | GCC_WARN_UNUSED_FUNCTION = YES; 445 | GCC_WARN_UNUSED_VARIABLE = YES; 446 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 447 | MTL_ENABLE_DEBUG_INFO = YES; 448 | ONLY_ACTIVE_ARCH = YES; 449 | SDKROOT = iphoneos; 450 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 451 | }; 452 | name = Debug; 453 | }; 454 | 607FACEE1AFB9204008FA782 /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | buildSettings = { 457 | ALWAYS_SEARCH_USER_PATHS = NO; 458 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 459 | CLANG_CXX_LIBRARY = "libc++"; 460 | CLANG_ENABLE_MODULES = YES; 461 | CLANG_ENABLE_OBJC_ARC = YES; 462 | CLANG_WARN_BOOL_CONVERSION = YES; 463 | CLANG_WARN_CONSTANT_CONVERSION = YES; 464 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 465 | CLANG_WARN_EMPTY_BODY = YES; 466 | CLANG_WARN_ENUM_CONVERSION = YES; 467 | CLANG_WARN_INFINITE_RECURSION = YES; 468 | CLANG_WARN_INT_CONVERSION = YES; 469 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 470 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 471 | CLANG_WARN_UNREACHABLE_CODE = YES; 472 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 473 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 474 | COPY_PHASE_STRIP = NO; 475 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 476 | ENABLE_NS_ASSERTIONS = NO; 477 | ENABLE_STRICT_OBJC_MSGSEND = YES; 478 | GCC_C_LANGUAGE_STANDARD = gnu99; 479 | GCC_NO_COMMON_BLOCKS = YES; 480 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 481 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 482 | GCC_WARN_UNDECLARED_SELECTOR = YES; 483 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 484 | GCC_WARN_UNUSED_FUNCTION = YES; 485 | GCC_WARN_UNUSED_VARIABLE = YES; 486 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 487 | MTL_ENABLE_DEBUG_INFO = NO; 488 | SDKROOT = iphoneos; 489 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 490 | VALIDATE_PRODUCT = YES; 491 | }; 492 | name = Release; 493 | }; 494 | 607FACF01AFB9204008FA782 /* Debug */ = { 495 | isa = XCBuildConfiguration; 496 | baseConfigurationReference = 22F5D368784ECF581715F99E /* Pods-SegmentedProgressView_Example.debug.xcconfig */; 497 | buildSettings = { 498 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 499 | INFOPLIST_FILE = SegmentedProgressView/Info.plist; 500 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 501 | MODULE_NAME = ExampleApp; 502 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 503 | PRODUCT_NAME = "$(TARGET_NAME)"; 504 | SWIFT_VERSION = 3.0; 505 | }; 506 | name = Debug; 507 | }; 508 | 607FACF11AFB9204008FA782 /* Release */ = { 509 | isa = XCBuildConfiguration; 510 | baseConfigurationReference = 64D29640E0FC33B06E978DC7 /* Pods-SegmentedProgressView_Example.release.xcconfig */; 511 | buildSettings = { 512 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 513 | INFOPLIST_FILE = SegmentedProgressView/Info.plist; 514 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 515 | MODULE_NAME = ExampleApp; 516 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 517 | PRODUCT_NAME = "$(TARGET_NAME)"; 518 | SWIFT_VERSION = 3.0; 519 | }; 520 | name = Release; 521 | }; 522 | 607FACF31AFB9204008FA782 /* Debug */ = { 523 | isa = XCBuildConfiguration; 524 | baseConfigurationReference = 8703D334B7A324E13358E57D /* Pods-SegmentedProgressView_Tests.debug.xcconfig */; 525 | buildSettings = { 526 | FRAMEWORK_SEARCH_PATHS = ( 527 | "$(SDKROOT)/Developer/Library/Frameworks", 528 | "$(inherited)", 529 | ); 530 | GCC_PREPROCESSOR_DEFINITIONS = ( 531 | "DEBUG=1", 532 | "$(inherited)", 533 | ); 534 | INFOPLIST_FILE = Tests/Info.plist; 535 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 536 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 537 | PRODUCT_NAME = "$(TARGET_NAME)"; 538 | SWIFT_VERSION = 3.0; 539 | }; 540 | name = Debug; 541 | }; 542 | 607FACF41AFB9204008FA782 /* Release */ = { 543 | isa = XCBuildConfiguration; 544 | baseConfigurationReference = D8F33932E0E1373596BBCC77 /* Pods-SegmentedProgressView_Tests.release.xcconfig */; 545 | buildSettings = { 546 | FRAMEWORK_SEARCH_PATHS = ( 547 | "$(SDKROOT)/Developer/Library/Frameworks", 548 | "$(inherited)", 549 | ); 550 | INFOPLIST_FILE = Tests/Info.plist; 551 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 552 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 553 | PRODUCT_NAME = "$(TARGET_NAME)"; 554 | SWIFT_VERSION = 3.0; 555 | }; 556 | name = Release; 557 | }; 558 | /* End XCBuildConfiguration section */ 559 | 560 | /* Begin XCConfigurationList section */ 561 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "SegmentedProgressView" */ = { 562 | isa = XCConfigurationList; 563 | buildConfigurations = ( 564 | 607FACED1AFB9204008FA782 /* Debug */, 565 | 607FACEE1AFB9204008FA782 /* Release */, 566 | ); 567 | defaultConfigurationIsVisible = 0; 568 | defaultConfigurationName = Release; 569 | }; 570 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SegmentedProgressView_Example" */ = { 571 | isa = XCConfigurationList; 572 | buildConfigurations = ( 573 | 607FACF01AFB9204008FA782 /* Debug */, 574 | 607FACF11AFB9204008FA782 /* Release */, 575 | ); 576 | defaultConfigurationIsVisible = 0; 577 | defaultConfigurationName = Release; 578 | }; 579 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "SegmentedProgressView_Tests" */ = { 580 | isa = XCConfigurationList; 581 | buildConfigurations = ( 582 | 607FACF31AFB9204008FA782 /* Debug */, 583 | 607FACF41AFB9204008FA782 /* Release */, 584 | ); 585 | defaultConfigurationIsVisible = 0; 586 | defaultConfigurationName = Release; 587 | }; 588 | /* End XCConfigurationList section */ 589 | }; 590 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 591 | } 592 | -------------------------------------------------------------------------------- /Example/SegmentedProgressView.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/SegmentedProgressView.xcodeproj/xcshareddata/xcschemes/SegmentedProgressView-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/SegmentedProgressView.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/SegmentedProgressView/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SegmentedProgressView 4 | // 5 | // Created by isapozhnik on 05/12/2017. 6 | // Copyright (c) 2017 isapozhnik. 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/SegmentedProgressView/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/SegmentedProgressView/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 | -------------------------------------------------------------------------------- /Example/SegmentedProgressView/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/SegmentedProgressView/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/SegmentedProgressView/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SegmentedProgressView 4 | // 5 | // Created by isapozhnik on 05/12/2017. 6 | // Copyright (c) 2017 isapozhnik. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import SegmentedProgressView 11 | 12 | class ViewController: UIViewController, ProgressBarDelegate { 13 | 14 | var items: [ProgressItem] = [] 15 | 16 | @IBOutlet weak var xibProgressView: SegmentedProgressView! 17 | 18 | override func viewDidLoad() { 19 | super.viewDidLoad() 20 | 21 | for _ in 0...4 { 22 | items.append(ProgressItem(withDuration: 3)) 23 | } 24 | 25 | let elementWithCompletion = ProgressItem(withDuration: 3) { 26 | print("elementWithCompletion finished") 27 | } 28 | 29 | items.append(elementWithCompletion) 30 | 31 | var progressView = SegmentedProgressView(withItems: items) 32 | progressView.delegate = self 33 | progressView.backgroundColor = .white 34 | progressView.itemSpace = 3.0 35 | progressView.frame = CGRect(x: 20, y: 60, width: view.bounds.width - 40, height: 4) 36 | view.addSubview(progressView) 37 | 38 | items = [] 39 | for _ in 0...10 { 40 | items.append(ProgressItem(withDuration: 4)) 41 | } 42 | 43 | progressView = SegmentedProgressView(withItems: items) 44 | progressView.progressTintColor = UIColor(red: 66.0/255.0, green: 134.0/255.0, blue: 244.0/255.0, alpha: 1.0) 45 | progressView.trackTintColor = UIColor(red: 133/255.0, green: 169/255.0, blue: 229/255.0, alpha: 1.0) 46 | 47 | progressView.delegate = self 48 | progressView.backgroundColor = .white 49 | progressView.itemSpace = 4.0 50 | progressView.frame = CGRect(x: 20, y: 80, width: view.bounds.width - 40, height: 2) 51 | view.addSubview(progressView) 52 | 53 | items = [] 54 | for _ in 0...4 { 55 | items.append(ProgressItem(withDuration: 3)) 56 | } 57 | xibProgressView.delegate = self 58 | xibProgressView.progressTintColor = UIColor(red: 66.0/255.0, green: 134.0/255.0, blue: 244.0/255.0, alpha: 1.0) 59 | xibProgressView.trackTintColor = UIColor(red: 133/255.0, green: 169/255.0, blue: 229/255.0, alpha: 1.0) 60 | xibProgressView.itemSpace = 6.0 61 | xibProgressView.items = items 62 | 63 | } 64 | 65 | override func didReceiveMemoryWarning() { 66 | super.didReceiveMemoryWarning() 67 | // Dispose of any resources that can be recreated. 68 | } 69 | 70 | func progressBar(willDisplayItemAtIndex index: Int) { 71 | print("willDisplayItemAtIndex \(index)") 72 | } 73 | 74 | func progressBar(didDisplayItemAtIndex index: Int) { 75 | print("didDisplayItemAtIndex \(index)") 76 | } 77 | 78 | } 79 | 80 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import SegmentedProgressView 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | self.measure() { 25 | // Put the code you want to measure the time of here. 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2017 isapozhnik 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 | # SegmentedProgressView 2 | 3 | [![CI Status](https://travis-ci.org/iSapozhnik/SegmentedProgressView.svg?branch=master)](https://travis-ci.org/isapozhnik/SegmentedProgressView) 4 | [![CI Status](https://travis-ci.org/iSapozhnik/SegmentedProgressView.svg?branch=develop)](https://travis-ci.org/isapozhnik/SegmentedProgressView) 5 | [![Version](https://img.shields.io/cocoapods/v/SegmentedProgressView.svg?style=flat)](http://cocoapods.org/pods/SegmentedProgressView) 6 | [![License](https://img.shields.io/cocoapods/l/SegmentedProgressView.svg?style=flat)](http://cocoapods.org/pods/SegmentedProgressView) 7 | [![Platform](https://img.shields.io/cocoapods/p/SegmentedProgressView.svg?style=flat)](http://cocoapods.org/pods/SegmentedProgressView) 8 | 9 | ## Example 10 | 11 | ![iOS example](https://github.com/iSapozhnik/SegmentedProgressView/blob/master/Resources/img.png) 12 | 13 | To run the example project, clone the repo, and run `pod install` from the Example directory first. 14 | 15 | ## TODO 16 | - [] add pause/resume animation feature 17 | - [] Storyboard and xib support 18 | - [] IBDesignable support 19 | - [] Autolayout support 20 | 21 | ## Installation 22 | 23 | SegmentedProgressView is available through [CocoaPods](http://cocoapods.org). To install 24 | it, simply add the following line to your Podfile: 25 | 26 | ```ruby 27 | pod "SegmentedProgressView" 28 | ``` 29 | 30 | ## Author 👨‍💻 31 | 32 | isapozhnik, sapozhnik.ivan@gmail.com 33 | 34 | ## License 35 | 36 | SegmentedProgressView is available under the MIT license. See the LICENSE file for more info. 37 | -------------------------------------------------------------------------------- /Resources/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iSapozhnik/SegmentedProgressView/7b967b6b4936263b5596d3b35769d478c657d18e/Resources/img.png -------------------------------------------------------------------------------- /SegmentedProgressView.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint SegmentedProgressView.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'SegmentedProgressView' 11 | s.version = '0.1.0' 12 | s.summary = 'Simple Instagram-like segmented progress view with completion handler and different time interval for each segment' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | TODO: Add long description of the pod here. 22 | DESC 23 | 24 | s.homepage = 'https://github.com/isapozhnik/SegmentedProgressView' 25 | s.screenshots = 'https://github.com/iSapozhnik/SegmentedProgressView/blob/master/Resources/img.png' 26 | s.license = { :type => 'MIT', :file => 'LICENSE' } 27 | s.author = { 'isapozhnik' => 'sapozhnik.ivan@gmail.com' } 28 | s.source = { :git => 'https://github.com/isapozhnik/SegmentedProgressView.git', :tag => s.version.to_s } 29 | # s.social_media_url = 'https://twitter.com/' 30 | 31 | s.ios.deployment_target = '8.0' 32 | 33 | s.source_files = 'SegmentedProgressView/Classes/**/*' 34 | 35 | # s.resource_bundles = { 36 | # 'SegmentedProgressView' => ['SegmentedProgressView/Assets/*.png'] 37 | # } 38 | 39 | # s.public_header_files = 'Pod/Classes/**/*.h' 40 | # s.frameworks = 'UIKit', 'MapKit' 41 | # s.dependency 'AFNetworking', '~> 2.3' 42 | end 43 | -------------------------------------------------------------------------------- /SegmentedProgressView/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iSapozhnik/SegmentedProgressView/7b967b6b4936263b5596d3b35769d478c657d18e/SegmentedProgressView/Assets/.gitkeep -------------------------------------------------------------------------------- /SegmentedProgressView/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iSapozhnik/SegmentedProgressView/7b967b6b4936263b5596d3b35769d478c657d18e/SegmentedProgressView/Classes/.gitkeep -------------------------------------------------------------------------------- /SegmentedProgressView/Classes/ProgressItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ProgressItem.swift 3 | // Pods 4 | // 5 | // Created by Sapozhnik Ivan on 12/05/17. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | public class ProgressItem { 12 | 13 | public typealias CompletionHanlder = () -> () 14 | 15 | let duration: Double! 16 | let handler: CompletionHanlder? 17 | 18 | public init(withDuration duration: Double, handler completion: CompletionHanlder? = nil) { 19 | self.duration = duration 20 | self.handler = completion 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /SegmentedProgressView/Classes/SegmentView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SegmentView.swift 3 | // Pods 4 | // 5 | // Created by Sapozhnik Ivan on 12/05/17. 6 | // 7 | // 8 | 9 | import UIKit 10 | 11 | public protocol ProgressBarDelegate: class { 12 | 13 | func progressBar(willDisplayItemAtIndex index: Int) 14 | func progressBar(didDisplayItemAtIndex index: Int) 15 | 16 | } 17 | 18 | public protocol ProgressBarElementViewDelegate: class { 19 | 20 | func progressBar(didFinishWithElement element: SegmentView) 21 | 22 | } 23 | 24 | public class SegmentView: UIView { 25 | 26 | weak var delegate: ProgressBarElementViewDelegate? 27 | let item: ProgressItem 28 | 29 | var progressTintColor: UIColor? 30 | var trackTintColor: UIColor? 31 | 32 | init(withItem item: ProgressItem!) { 33 | self.item = item 34 | super.init(frame: .zero) 35 | } 36 | 37 | required public init?(coder aDecoder: NSCoder) { 38 | fatalError("init(coder:) has not been implemented") 39 | } 40 | 41 | func drawEmpty() { 42 | 43 | let emptyColor = trackTintColor ?? .lightGray 44 | 45 | let emptyShape = CAShapeLayer() 46 | emptyShape.frame = self.bounds 47 | emptyShape.backgroundColor = emptyColor.cgColor 48 | emptyShape.cornerRadius = bounds.height / 2 49 | self.layer.addSublayer(emptyShape) 50 | } 51 | 52 | func animate() { 53 | 54 | let fillColor = progressTintColor ?? .gray 55 | 56 | let startPath = UIBezierPath(roundedRect: CGRect(x: 0, y: 0, width: bounds.height, height: bounds.height), cornerRadius: bounds.height / 2).cgPath 57 | let endPath = UIBezierPath(roundedRect: bounds, cornerRadius: bounds.height / 2) 58 | 59 | let filledShape = CAShapeLayer() 60 | filledShape.path = startPath 61 | filledShape.fillColor = fillColor.cgColor 62 | self.layer.addSublayer(filledShape) 63 | 64 | CATransaction.begin() 65 | CATransaction.setCompletionBlock({ 66 | self.delegate?.progressBar(didFinishWithElement: self) 67 | self.item.handler?() 68 | }) 69 | 70 | let animation = CABasicAnimation(keyPath: "path") 71 | animation.toValue = endPath.cgPath 72 | animation.duration = self.item.duration 73 | animation.repeatCount = 1 74 | animation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear) 75 | animation.fillMode = kCAFillModeBoth 76 | animation.isRemovedOnCompletion = false 77 | 78 | filledShape.add(animation, forKey: animation.keyPath) 79 | CATransaction.commit() 80 | } 81 | } 82 | -------------------------------------------------------------------------------- /SegmentedProgressView/Classes/SegmentedProgressView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SegmentedProgressView.swift 3 | // Pods 4 | // 5 | // Created by Sapozhnik Ivan on 12/05/17. 6 | // 7 | // 8 | 9 | import Foundation 10 | 11 | public class SegmentedProgressView: UIView, ProgressBarElementViewDelegate { 12 | 13 | public weak var delegate: ProgressBarDelegate? 14 | 15 | override public var frame: CGRect { 16 | didSet { 17 | redraw() 18 | } 19 | } 20 | 21 | public var progressTintColor: UIColor? { 22 | didSet { 23 | redraw() 24 | } 25 | } 26 | 27 | public var trackTintColor: UIColor? { 28 | didSet { 29 | redraw() 30 | } 31 | } 32 | 33 | public var itemSpace: Double? { 34 | didSet { 35 | redraw() 36 | } 37 | } 38 | 39 | public var items: [ProgressItem]? { 40 | didSet { 41 | redraw() 42 | } 43 | } 44 | 45 | var elementViews: [SegmentView] = [] 46 | 47 | public init(withItems items: [ProgressItem]!) { 48 | self.items = items 49 | super.init(frame: .zero) 50 | self.backgroundColor = .clear 51 | } 52 | 53 | required public init?(coder aDecoder: NSCoder) { 54 | super.init(coder: aDecoder) 55 | } 56 | 57 | override public func layoutSubviews() { 58 | super.layoutSubviews() 59 | redraw() 60 | } 61 | 62 | fileprivate func redraw() { 63 | clear() 64 | draw() 65 | } 66 | 67 | fileprivate func clear() { 68 | 69 | elementViews.removeAll() 70 | for view in subviews { 71 | view.removeFromSuperview() 72 | } 73 | } 74 | 75 | fileprivate func draw() { 76 | 77 | let items = self.items ?? [ProgressItem(withDuration: 6) { print("finished 0") }] 78 | 79 | let horizontalSpace: Double = itemSpace ?? 6.0 80 | 81 | var elementWidth = ((Double(bounds.width) + horizontalSpace) / Double(items.count)) 82 | elementWidth -= horizontalSpace 83 | 84 | if elementWidth <= 0 { return } 85 | 86 | var xOffset: Double = 0.0 87 | 88 | for item in items { 89 | 90 | let elementView = SegmentView(withItem: item) 91 | elementView.progressTintColor = self.progressTintColor 92 | elementView.trackTintColor = self.trackTintColor 93 | elementView.delegate = self 94 | elementView.frame = CGRect(x: xOffset, y: 0, width: elementWidth, height: Double(bounds.height)) 95 | elementView.drawEmpty() 96 | self.addSubview(elementView) 97 | elementViews.append(elementView) 98 | xOffset += elementWidth + horizontalSpace 99 | } 100 | 101 | let elementView = elementViews[0] 102 | delegate?.progressBar(willDisplayItemAtIndex: 0) 103 | elementView.animate() 104 | } 105 | 106 | public func progressBar(didFinishWithElement element: SegmentView) { 107 | 108 | let elements = self.items ?? [ProgressItem(withDuration: 6) { print("finished 0") }] 109 | 110 | if var index = elementViews.index(of: element) { 111 | 112 | delegate?.progressBar(didDisplayItemAtIndex: index) 113 | 114 | index += 1 115 | 116 | if index < elements.count { 117 | let elementView = elementViews[index] 118 | delegate?.progressBar(willDisplayItemAtIndex: index) 119 | elementView.animate() 120 | } 121 | } 122 | } 123 | } 124 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------