├── Example ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── QuickTicker.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── xcuserdata │ │ │ └── besher.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── Pods-QuickTicker_Example.xcscheme │ │ │ ├── Pods-QuickTicker_Tests.xcscheme │ │ │ ├── QuickTicker.xcscheme │ │ │ └── xcschememanagement.plist │ └── Target Support Files │ │ ├── Pods-QuickTicker_Example │ │ ├── Info.plist │ │ ├── Pods-QuickTicker_Example-acknowledgements.markdown │ │ ├── Pods-QuickTicker_Example-acknowledgements.plist │ │ ├── Pods-QuickTicker_Example-dummy.m │ │ ├── Pods-QuickTicker_Example-frameworks.sh │ │ ├── Pods-QuickTicker_Example-resources.sh │ │ ├── Pods-QuickTicker_Example-umbrella.h │ │ ├── Pods-QuickTicker_Example.debug.xcconfig │ │ ├── Pods-QuickTicker_Example.modulemap │ │ └── Pods-QuickTicker_Example.release.xcconfig │ │ ├── Pods-QuickTicker_Tests │ │ ├── Info.plist │ │ ├── Pods-QuickTicker_Tests-acknowledgements.markdown │ │ ├── Pods-QuickTicker_Tests-acknowledgements.plist │ │ ├── Pods-QuickTicker_Tests-dummy.m │ │ ├── Pods-QuickTicker_Tests-frameworks.sh │ │ ├── Pods-QuickTicker_Tests-resources.sh │ │ ├── Pods-QuickTicker_Tests-umbrella.h │ │ ├── Pods-QuickTicker_Tests.debug.xcconfig │ │ ├── Pods-QuickTicker_Tests.modulemap │ │ └── Pods-QuickTicker_Tests.release.xcconfig │ │ └── QuickTicker │ │ ├── Info.plist │ │ ├── QuickTicker-dummy.m │ │ ├── QuickTicker-prefix.pch │ │ ├── QuickTicker-umbrella.h │ │ ├── QuickTicker.modulemap │ │ └── QuickTicker.xcconfig ├── QuickTicker.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ └── xcshareddata │ │ └── xcschemes │ │ └── QuickTicker-Example.xcscheme ├── QuickTicker.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── QuickTicker │ ├── AppDelegate.swift │ ├── Base.lproj │ │ └── LaunchScreen.xib │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── Main.storyboard │ └── ViewController.swift └── Tests │ ├── Info.plist │ └── Tests.swift ├── Images ├── Demo.gif ├── Images for readme.txt ├── Latte screencap.gif ├── Latte stats.gif ├── QuickTickerLogo.png ├── screenshot.jpg ├── screenshot.png ├── usage.gif └── weather.gif ├── LICENSE ├── QuickTicker.podspec ├── QuickTicker ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── QuickTicker.swift ├── README.md └── _Pods.xcodeproj /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'QuickTicker_Example' do 4 | pod 'QuickTicker', :path => '../' 5 | 6 | target 'QuickTicker_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - QuickTicker (0.1.2) 3 | 4 | DEPENDENCIES: 5 | - QuickTicker (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | QuickTicker: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | QuickTicker: 51391006f323da1b4f754bf90c447550c8cd24cb 13 | 14 | PODFILE CHECKSUM: 7139b764064c712a4be31fead694bd01fbd1378b 15 | 16 | COCOAPODS: 1.5.3 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/QuickTicker.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "QuickTicker", 3 | "version": "0.1.2", 4 | "summary": "A Swift library for animating labels and text fields", 5 | "description": "A simple library to animate labels and textfields using similar syntax to UIView's animate methhods.\n\nIt works even if there is text mixed in with numbers in the same label. Text remains intact while the digits get animated!", 6 | "homepage": "https://github.com/almaleh/Quick-Ticker", 7 | "screenshots": "https://raw.githubusercontent.com/almaleh/Quick-Ticker/master/Images/screenshot.jpg", 8 | "license": { 9 | "type": "MIT", 10 | "file": "LICENSE" 11 | }, 12 | "authors": { 13 | "BesherAlMaleh": "almalehdev@gmail.com" 14 | }, 15 | "source": { 16 | "git": "https://github.com/AlMaleh/Quick-Ticker.git", 17 | "tag": "0.1.2" 18 | }, 19 | "social_media_url": "https://twitter.com/BesherMaleh", 20 | "platforms": { 21 | "ios": "8.0" 22 | }, 23 | "source_files": "QuickTicker/Classes/**/*", 24 | "frameworks": "UIKit", 25 | "swift_version": "4.2" 26 | } 27 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - QuickTicker (0.1.2) 3 | 4 | DEPENDENCIES: 5 | - QuickTicker (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | QuickTicker: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | QuickTicker: 51391006f323da1b4f754bf90c447550c8cd24cb 13 | 14 | PODFILE CHECKSUM: 7139b764064c712a4be31fead694bd01fbd1378b 15 | 16 | COCOAPODS: 1.5.3 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 | 05FFB4C9606729F498DC67F0A5696066 /* QuickTicker-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 1BCA8EC00D1E7EB4A2604E1AF263E2AF /* QuickTicker-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 11 | 0D74148AF556E77392F077BFDFA09F6E /* Pods-QuickTicker_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DCCE101F8FB8DDEAEDA4C874580F98D6 /* Pods-QuickTicker_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 132492109B7FE17998A80CF35701D65A /* Pods-QuickTicker_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = D9E9F404B66A1E0F22C38A37475D6361 /* Pods-QuickTicker_Tests-dummy.m */; }; 13 | 6D65B0DF2864D4B7CE203DFD49CC83F3 /* QuickTicker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3077F7A29E76F16A63E750D9A46D2485 /* QuickTicker.swift */; }; 14 | 8970D559AFFEF9F2D86F13F267D4D9E4 /* QuickTicker-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = FEF9F3E4BC53438A299BDA3767E6C00C /* QuickTicker-dummy.m */; }; 15 | 89FB0DFA58973BE01BDEE3C7ABA77462 /* Pods-QuickTicker_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 63BAEE6A2DFED815DFF0F8B9BE5306D8 /* Pods-QuickTicker_Example-dummy.m */; }; 16 | 9C10247CADAFB0BEA6B16ECE0C6E5CE4 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */; }; 17 | ADCF5FC7133064B0ACB97C521DC4F9C2 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */; }; 18 | B65C11D1FD4F71AC7B62C1B4BD5B72C0 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */; }; 19 | CA15C6A71EB04160BFBBE05FC83BD974 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */; }; 20 | DB5CC89ED014C68153BAFE98FD4B097C /* Pods-QuickTicker_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 41D9EDE6522BD60878C832C2BD57E735 /* Pods-QuickTicker_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 8ABD1EA8ECF262EFC987D37AF7586935 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 33C5BBEEFAFC0CE9DD951D95D7147048; 29 | remoteInfo = QuickTicker; 30 | }; 31 | D6B47CAC3D11595D2EA6B1E6DD64C800 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 01F8881D8B2F30D4D3E7B4DAF414B683; 36 | remoteInfo = "Pods-QuickTicker_Example"; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 1BCA8EC00D1E7EB4A2604E1AF263E2AF /* QuickTicker-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "QuickTicker-umbrella.h"; sourceTree = ""; }; 42 | 1DEFE19418E3D925B1736A212BA48F65 /* Pods-QuickTicker_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-QuickTicker_Example-frameworks.sh"; sourceTree = ""; }; 43 | 2201B6C3BE88FEDEBC24C62315837630 /* Pods-QuickTicker_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QuickTicker_Tests.release.xcconfig"; sourceTree = ""; }; 44 | 23AC973D59CD8A4FB07F2A382AB54AED /* QuickTicker.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = QuickTicker.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 25182CEAC8014E057099D0FC8ABCB07B /* Pods_QuickTicker_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QuickTicker_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 251C9DACCEC047CBA4F978A28F05C63D /* QuickTicker.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = QuickTicker.xcconfig; sourceTree = ""; }; 47 | 2764CE940D817EE1EA56F56DF169A18A /* Pods-QuickTicker_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-QuickTicker_Example-acknowledgements.markdown"; sourceTree = ""; }; 48 | 2CA9953818446E956B4F2C8EE73BB7F4 /* QuickTicker.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = QuickTicker.modulemap; sourceTree = ""; }; 49 | 3077F7A29E76F16A63E750D9A46D2485 /* QuickTicker.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = QuickTicker.swift; path = QuickTicker/Classes/QuickTicker.swift; sourceTree = ""; }; 50 | 362A1554FCD3BFC3DDDCA018C6AF986B /* Pods-QuickTicker_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-QuickTicker_Tests-resources.sh"; sourceTree = ""; }; 51 | 41D9EDE6522BD60878C832C2BD57E735 /* Pods-QuickTicker_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-QuickTicker_Example-umbrella.h"; sourceTree = ""; }; 52 | 41E58A26286FE01859552E708B8EE6A5 /* Pods_QuickTicker_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QuickTicker_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 53 | 45E74645D920633414B1A138BC2DD655 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 54 | 58CA5BC561EFE951524F1C16588DFA6D /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 55 | 59793D8FAA15A2111FD18E0883AB269B /* Pods-QuickTicker_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-QuickTicker_Tests-acknowledgements.markdown"; sourceTree = ""; }; 56 | 63BAEE6A2DFED815DFF0F8B9BE5306D8 /* Pods-QuickTicker_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-QuickTicker_Example-dummy.m"; sourceTree = ""; }; 57 | 687A921B4DB6DB7EDDBAC1CDFB649D3D /* QuickTicker-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "QuickTicker-prefix.pch"; sourceTree = ""; }; 58 | 6A4A73DE5A18521F627D72F726A6369B /* Pods-QuickTicker_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-QuickTicker_Example.modulemap"; sourceTree = ""; }; 59 | 7F01280DF3057DDA2BE51F4A96FDC53E /* Pods-QuickTicker_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-QuickTicker_Tests-acknowledgements.plist"; sourceTree = ""; }; 60 | 820036674A7CD00AFD386FDC257EF2DA /* Pods-QuickTicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QuickTicker_Tests.debug.xcconfig"; sourceTree = ""; }; 61 | 899BA96F51335802017B12C85D270D23 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 62 | 914F9F2A61EB618D08BB0AF730A94E06 /* Pods-QuickTicker_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-QuickTicker_Tests-frameworks.sh"; sourceTree = ""; }; 63 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 64 | A827A734285EE047E8A349A4D5DD739C /* Pods-QuickTicker_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-QuickTicker_Example-acknowledgements.plist"; sourceTree = ""; }; 65 | AFE2A71BF3227E6436EFEF419A906D1E /* QuickTicker.podspec */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; path = QuickTicker.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 66 | B63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 67 | B995ED4852AE6A8D5DF06C72638CBFF0 /* Pods-QuickTicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QuickTicker_Example.release.xcconfig"; sourceTree = ""; }; 68 | C14068977303CD9CF196A93DCF1C896B /* Pods-QuickTicker_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-QuickTicker_Example.debug.xcconfig"; sourceTree = ""; }; 69 | CB8DB925DC6E6B4C1ACFA9675710DD8F /* Pods-QuickTicker_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = "Pods-QuickTicker_Tests.modulemap"; sourceTree = ""; }; 70 | D24EE543414F33E06B03EE209BDB632B /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 71 | D88AAE1F92055A60CC2FC970D7D34634 /* 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; }; 72 | D904C6126328AE9FCB7D185BD80D16BC /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 73 | D9E9F404B66A1E0F22C38A37475D6361 /* Pods-QuickTicker_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-QuickTicker_Tests-dummy.m"; sourceTree = ""; }; 74 | DCCE101F8FB8DDEAEDA4C874580F98D6 /* Pods-QuickTicker_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-QuickTicker_Tests-umbrella.h"; sourceTree = ""; }; 75 | FD8983C0AAF1104C0B2D528EF4D95088 /* Pods-QuickTicker_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-QuickTicker_Example-resources.sh"; sourceTree = ""; }; 76 | FEF9F3E4BC53438A299BDA3767E6C00C /* QuickTicker-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "QuickTicker-dummy.m"; sourceTree = ""; }; 77 | /* End PBXFileReference section */ 78 | 79 | /* Begin PBXFrameworksBuildPhase section */ 80 | 286626CE875553B1A78C99D14CED8C05 /* Frameworks */ = { 81 | isa = PBXFrameworksBuildPhase; 82 | buildActionMask = 2147483647; 83 | files = ( 84 | CA15C6A71EB04160BFBBE05FC83BD974 /* Foundation.framework in Frameworks */, 85 | ); 86 | runOnlyForDeploymentPostprocessing = 0; 87 | }; 88 | 99280F2FC528E078C7F584E8E53DD9BF /* Frameworks */ = { 89 | isa = PBXFrameworksBuildPhase; 90 | buildActionMask = 2147483647; 91 | files = ( 92 | 9C10247CADAFB0BEA6B16ECE0C6E5CE4 /* Foundation.framework in Frameworks */, 93 | B65C11D1FD4F71AC7B62C1B4BD5B72C0 /* UIKit.framework in Frameworks */, 94 | ); 95 | runOnlyForDeploymentPostprocessing = 0; 96 | }; 97 | 99ADAF7F17B3F6FFA22E05F76B19720F /* Frameworks */ = { 98 | isa = PBXFrameworksBuildPhase; 99 | buildActionMask = 2147483647; 100 | files = ( 101 | ADCF5FC7133064B0ACB97C521DC4F9C2 /* Foundation.framework in Frameworks */, 102 | ); 103 | runOnlyForDeploymentPostprocessing = 0; 104 | }; 105 | /* End PBXFrameworksBuildPhase section */ 106 | 107 | /* Begin PBXGroup section */ 108 | 1D3228C3B6EFA6CC818CF5AE11BE7445 /* Development Pods */ = { 109 | isa = PBXGroup; 110 | children = ( 111 | 5B501636A81291E0299A9693D7B371EE /* QuickTicker */, 112 | ); 113 | name = "Development Pods"; 114 | sourceTree = ""; 115 | }; 116 | 207AF349DD912E784A5A5C4395A99759 /* Pod */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 45E74645D920633414B1A138BC2DD655 /* LICENSE */, 120 | AFE2A71BF3227E6436EFEF419A906D1E /* QuickTicker.podspec */, 121 | 58CA5BC561EFE951524F1C16588DFA6D /* README.md */, 122 | ); 123 | name = Pod; 124 | sourceTree = ""; 125 | }; 126 | 3AB21D19141473C041B81E4BB8E21D0B /* Targets Support Files */ = { 127 | isa = PBXGroup; 128 | children = ( 129 | FE92C1889161D2164FFFCF8382EF01B3 /* Pods-QuickTicker_Example */, 130 | F7ACFA701C2A81F2D6F2615C4C3EA778 /* Pods-QuickTicker_Tests */, 131 | ); 132 | name = "Targets Support Files"; 133 | sourceTree = ""; 134 | }; 135 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 438B396F6B4147076630CAEFE34282C1 /* iOS */, 139 | ); 140 | name = Frameworks; 141 | sourceTree = ""; 142 | }; 143 | 438B396F6B4147076630CAEFE34282C1 /* iOS */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | D88AAE1F92055A60CC2FC970D7D34634 /* Foundation.framework */, 147 | B63C6A64CF66340668996F78DA6BB482 /* UIKit.framework */, 148 | ); 149 | name = iOS; 150 | sourceTree = ""; 151 | }; 152 | 5B501636A81291E0299A9693D7B371EE /* QuickTicker */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 3077F7A29E76F16A63E750D9A46D2485 /* QuickTicker.swift */, 156 | 207AF349DD912E784A5A5C4395A99759 /* Pod */, 157 | 95CC18B979C1B6FD41364F1160AF44BB /* Support Files */, 158 | ); 159 | name = QuickTicker; 160 | path = ../..; 161 | sourceTree = ""; 162 | }; 163 | 7DB346D0F39D3F0E887471402A8071AB = { 164 | isa = PBXGroup; 165 | children = ( 166 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 167 | 1D3228C3B6EFA6CC818CF5AE11BE7445 /* Development Pods */, 168 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, 169 | FF0062B4D3DA7AF7FDD94E60FA1181E1 /* Products */, 170 | 3AB21D19141473C041B81E4BB8E21D0B /* Targets Support Files */, 171 | ); 172 | sourceTree = ""; 173 | }; 174 | 95CC18B979C1B6FD41364F1160AF44BB /* Support Files */ = { 175 | isa = PBXGroup; 176 | children = ( 177 | D24EE543414F33E06B03EE209BDB632B /* Info.plist */, 178 | 2CA9953818446E956B4F2C8EE73BB7F4 /* QuickTicker.modulemap */, 179 | 251C9DACCEC047CBA4F978A28F05C63D /* QuickTicker.xcconfig */, 180 | FEF9F3E4BC53438A299BDA3767E6C00C /* QuickTicker-dummy.m */, 181 | 687A921B4DB6DB7EDDBAC1CDFB649D3D /* QuickTicker-prefix.pch */, 182 | 1BCA8EC00D1E7EB4A2604E1AF263E2AF /* QuickTicker-umbrella.h */, 183 | ); 184 | name = "Support Files"; 185 | path = "Example/Pods/Target Support Files/QuickTicker"; 186 | sourceTree = ""; 187 | }; 188 | F7ACFA701C2A81F2D6F2615C4C3EA778 /* Pods-QuickTicker_Tests */ = { 189 | isa = PBXGroup; 190 | children = ( 191 | 899BA96F51335802017B12C85D270D23 /* Info.plist */, 192 | CB8DB925DC6E6B4C1ACFA9675710DD8F /* Pods-QuickTicker_Tests.modulemap */, 193 | 59793D8FAA15A2111FD18E0883AB269B /* Pods-QuickTicker_Tests-acknowledgements.markdown */, 194 | 7F01280DF3057DDA2BE51F4A96FDC53E /* Pods-QuickTicker_Tests-acknowledgements.plist */, 195 | D9E9F404B66A1E0F22C38A37475D6361 /* Pods-QuickTicker_Tests-dummy.m */, 196 | 914F9F2A61EB618D08BB0AF730A94E06 /* Pods-QuickTicker_Tests-frameworks.sh */, 197 | 362A1554FCD3BFC3DDDCA018C6AF986B /* Pods-QuickTicker_Tests-resources.sh */, 198 | DCCE101F8FB8DDEAEDA4C874580F98D6 /* Pods-QuickTicker_Tests-umbrella.h */, 199 | 820036674A7CD00AFD386FDC257EF2DA /* Pods-QuickTicker_Tests.debug.xcconfig */, 200 | 2201B6C3BE88FEDEBC24C62315837630 /* Pods-QuickTicker_Tests.release.xcconfig */, 201 | ); 202 | name = "Pods-QuickTicker_Tests"; 203 | path = "Target Support Files/Pods-QuickTicker_Tests"; 204 | sourceTree = ""; 205 | }; 206 | FE92C1889161D2164FFFCF8382EF01B3 /* Pods-QuickTicker_Example */ = { 207 | isa = PBXGroup; 208 | children = ( 209 | D904C6126328AE9FCB7D185BD80D16BC /* Info.plist */, 210 | 6A4A73DE5A18521F627D72F726A6369B /* Pods-QuickTicker_Example.modulemap */, 211 | 2764CE940D817EE1EA56F56DF169A18A /* Pods-QuickTicker_Example-acknowledgements.markdown */, 212 | A827A734285EE047E8A349A4D5DD739C /* Pods-QuickTicker_Example-acknowledgements.plist */, 213 | 63BAEE6A2DFED815DFF0F8B9BE5306D8 /* Pods-QuickTicker_Example-dummy.m */, 214 | 1DEFE19418E3D925B1736A212BA48F65 /* Pods-QuickTicker_Example-frameworks.sh */, 215 | FD8983C0AAF1104C0B2D528EF4D95088 /* Pods-QuickTicker_Example-resources.sh */, 216 | 41D9EDE6522BD60878C832C2BD57E735 /* Pods-QuickTicker_Example-umbrella.h */, 217 | C14068977303CD9CF196A93DCF1C896B /* Pods-QuickTicker_Example.debug.xcconfig */, 218 | B995ED4852AE6A8D5DF06C72638CBFF0 /* Pods-QuickTicker_Example.release.xcconfig */, 219 | ); 220 | name = "Pods-QuickTicker_Example"; 221 | path = "Target Support Files/Pods-QuickTicker_Example"; 222 | sourceTree = ""; 223 | }; 224 | FF0062B4D3DA7AF7FDD94E60FA1181E1 /* Products */ = { 225 | isa = PBXGroup; 226 | children = ( 227 | 25182CEAC8014E057099D0FC8ABCB07B /* Pods_QuickTicker_Example.framework */, 228 | 41E58A26286FE01859552E708B8EE6A5 /* Pods_QuickTicker_Tests.framework */, 229 | 23AC973D59CD8A4FB07F2A382AB54AED /* QuickTicker.framework */, 230 | ); 231 | name = Products; 232 | sourceTree = ""; 233 | }; 234 | /* End PBXGroup section */ 235 | 236 | /* Begin PBXHeadersBuildPhase section */ 237 | 11B000C43235DFBFD10FD4A986FFB338 /* Headers */ = { 238 | isa = PBXHeadersBuildPhase; 239 | buildActionMask = 2147483647; 240 | files = ( 241 | DB5CC89ED014C68153BAFE98FD4B097C /* Pods-QuickTicker_Example-umbrella.h in Headers */, 242 | ); 243 | runOnlyForDeploymentPostprocessing = 0; 244 | }; 245 | 8006DA0EC6468B930966099D0DEA90C5 /* Headers */ = { 246 | isa = PBXHeadersBuildPhase; 247 | buildActionMask = 2147483647; 248 | files = ( 249 | 05FFB4C9606729F498DC67F0A5696066 /* QuickTicker-umbrella.h in Headers */, 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | C3B80FB95CE9599207BD667336F9926A /* Headers */ = { 254 | isa = PBXHeadersBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 0D74148AF556E77392F077BFDFA09F6E /* Pods-QuickTicker_Tests-umbrella.h in Headers */, 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXHeadersBuildPhase section */ 262 | 263 | /* Begin PBXNativeTarget section */ 264 | 01F8881D8B2F30D4D3E7B4DAF414B683 /* Pods-QuickTicker_Example */ = { 265 | isa = PBXNativeTarget; 266 | buildConfigurationList = 158608D3AEA576BA59AE3375A2CBA184 /* Build configuration list for PBXNativeTarget "Pods-QuickTicker_Example" */; 267 | buildPhases = ( 268 | C42093A4338E712851CF18385E626F1D /* Sources */, 269 | 99ADAF7F17B3F6FFA22E05F76B19720F /* Frameworks */, 270 | 11B000C43235DFBFD10FD4A986FFB338 /* Headers */, 271 | ); 272 | buildRules = ( 273 | ); 274 | dependencies = ( 275 | 8A8908F35B6A9A2A9AA7B4CA14361DA8 /* PBXTargetDependency */, 276 | ); 277 | name = "Pods-QuickTicker_Example"; 278 | productName = "Pods-QuickTicker_Example"; 279 | productReference = 25182CEAC8014E057099D0FC8ABCB07B /* Pods_QuickTicker_Example.framework */; 280 | productType = "com.apple.product-type.framework"; 281 | }; 282 | 33C5BBEEFAFC0CE9DD951D95D7147048 /* QuickTicker */ = { 283 | isa = PBXNativeTarget; 284 | buildConfigurationList = F00A5CB89B1532CE8C4E14602FA2DBEB /* Build configuration list for PBXNativeTarget "QuickTicker" */; 285 | buildPhases = ( 286 | 01B35FA252ED5CB28C7E604E9B853259 /* Sources */, 287 | 99280F2FC528E078C7F584E8E53DD9BF /* Frameworks */, 288 | 8006DA0EC6468B930966099D0DEA90C5 /* Headers */, 289 | ); 290 | buildRules = ( 291 | ); 292 | dependencies = ( 293 | ); 294 | name = QuickTicker; 295 | productName = QuickTicker; 296 | productReference = 23AC973D59CD8A4FB07F2A382AB54AED /* QuickTicker.framework */; 297 | productType = "com.apple.product-type.framework"; 298 | }; 299 | 675FF1C29AA372AA794C928A5B1DED36 /* Pods-QuickTicker_Tests */ = { 300 | isa = PBXNativeTarget; 301 | buildConfigurationList = 204DA0DD44F9641B7A4CB504A056C652 /* Build configuration list for PBXNativeTarget "Pods-QuickTicker_Tests" */; 302 | buildPhases = ( 303 | D82DDF89165FA2863F770552B135EDA1 /* Sources */, 304 | 286626CE875553B1A78C99D14CED8C05 /* Frameworks */, 305 | C3B80FB95CE9599207BD667336F9926A /* Headers */, 306 | ); 307 | buildRules = ( 308 | ); 309 | dependencies = ( 310 | 6EA47249015244928633A42265B84696 /* PBXTargetDependency */, 311 | ); 312 | name = "Pods-QuickTicker_Tests"; 313 | productName = "Pods-QuickTicker_Tests"; 314 | productReference = 41E58A26286FE01859552E708B8EE6A5 /* Pods_QuickTicker_Tests.framework */; 315 | productType = "com.apple.product-type.framework"; 316 | }; 317 | /* End PBXNativeTarget section */ 318 | 319 | /* Begin PBXProject section */ 320 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 321 | isa = PBXProject; 322 | attributes = { 323 | LastSwiftUpdateCheck = 0930; 324 | LastUpgradeCheck = 1000; 325 | }; 326 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 327 | compatibilityVersion = "Xcode 3.2"; 328 | developmentRegion = English; 329 | hasScannedForEncodings = 0; 330 | knownRegions = ( 331 | en, 332 | ); 333 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 334 | productRefGroup = FF0062B4D3DA7AF7FDD94E60FA1181E1 /* Products */; 335 | projectDirPath = ""; 336 | projectRoot = ""; 337 | targets = ( 338 | 01F8881D8B2F30D4D3E7B4DAF414B683 /* Pods-QuickTicker_Example */, 339 | 675FF1C29AA372AA794C928A5B1DED36 /* Pods-QuickTicker_Tests */, 340 | 33C5BBEEFAFC0CE9DD951D95D7147048 /* QuickTicker */, 341 | ); 342 | }; 343 | /* End PBXProject section */ 344 | 345 | /* Begin PBXSourcesBuildPhase section */ 346 | 01B35FA252ED5CB28C7E604E9B853259 /* Sources */ = { 347 | isa = PBXSourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | 8970D559AFFEF9F2D86F13F267D4D9E4 /* QuickTicker-dummy.m in Sources */, 351 | 6D65B0DF2864D4B7CE203DFD49CC83F3 /* QuickTicker.swift in Sources */, 352 | ); 353 | runOnlyForDeploymentPostprocessing = 0; 354 | }; 355 | C42093A4338E712851CF18385E626F1D /* Sources */ = { 356 | isa = PBXSourcesBuildPhase; 357 | buildActionMask = 2147483647; 358 | files = ( 359 | 89FB0DFA58973BE01BDEE3C7ABA77462 /* Pods-QuickTicker_Example-dummy.m in Sources */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | D82DDF89165FA2863F770552B135EDA1 /* Sources */ = { 364 | isa = PBXSourcesBuildPhase; 365 | buildActionMask = 2147483647; 366 | files = ( 367 | 132492109B7FE17998A80CF35701D65A /* Pods-QuickTicker_Tests-dummy.m in Sources */, 368 | ); 369 | runOnlyForDeploymentPostprocessing = 0; 370 | }; 371 | /* End PBXSourcesBuildPhase section */ 372 | 373 | /* Begin PBXTargetDependency section */ 374 | 6EA47249015244928633A42265B84696 /* PBXTargetDependency */ = { 375 | isa = PBXTargetDependency; 376 | name = "Pods-QuickTicker_Example"; 377 | target = 01F8881D8B2F30D4D3E7B4DAF414B683 /* Pods-QuickTicker_Example */; 378 | targetProxy = D6B47CAC3D11595D2EA6B1E6DD64C800 /* PBXContainerItemProxy */; 379 | }; 380 | 8A8908F35B6A9A2A9AA7B4CA14361DA8 /* PBXTargetDependency */ = { 381 | isa = PBXTargetDependency; 382 | name = QuickTicker; 383 | target = 33C5BBEEFAFC0CE9DD951D95D7147048 /* QuickTicker */; 384 | targetProxy = 8ABD1EA8ECF262EFC987D37AF7586935 /* PBXContainerItemProxy */; 385 | }; 386 | /* End PBXTargetDependency section */ 387 | 388 | /* Begin XCBuildConfiguration section */ 389 | 08638A96A528B1EC32DE62F8A728389D /* Release */ = { 390 | isa = XCBuildConfiguration; 391 | buildSettings = { 392 | ALWAYS_SEARCH_USER_PATHS = NO; 393 | CLANG_ANALYZER_NONNULL = YES; 394 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 395 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 396 | CLANG_CXX_LIBRARY = "libc++"; 397 | CLANG_ENABLE_MODULES = YES; 398 | CLANG_ENABLE_OBJC_ARC = YES; 399 | CLANG_ENABLE_OBJC_WEAK = YES; 400 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 401 | CLANG_WARN_BOOL_CONVERSION = YES; 402 | CLANG_WARN_COMMA = YES; 403 | CLANG_WARN_CONSTANT_CONVERSION = YES; 404 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 405 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 406 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 407 | CLANG_WARN_EMPTY_BODY = YES; 408 | CLANG_WARN_ENUM_CONVERSION = YES; 409 | CLANG_WARN_INFINITE_RECURSION = YES; 410 | CLANG_WARN_INT_CONVERSION = YES; 411 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 412 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 413 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 414 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 415 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 416 | CLANG_WARN_STRICT_PROTOTYPES = YES; 417 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 418 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 419 | CLANG_WARN_UNREACHABLE_CODE = YES; 420 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 421 | CODE_SIGNING_ALLOWED = NO; 422 | CODE_SIGNING_REQUIRED = NO; 423 | COPY_PHASE_STRIP = NO; 424 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 425 | ENABLE_NS_ASSERTIONS = NO; 426 | ENABLE_STRICT_OBJC_MSGSEND = YES; 427 | GCC_C_LANGUAGE_STANDARD = gnu11; 428 | GCC_NO_COMMON_BLOCKS = YES; 429 | GCC_PREPROCESSOR_DEFINITIONS = ( 430 | "POD_CONFIGURATION_RELEASE=1", 431 | "$(inherited)", 432 | ); 433 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 434 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 435 | GCC_WARN_UNDECLARED_SELECTOR = YES; 436 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 437 | GCC_WARN_UNUSED_FUNCTION = YES; 438 | GCC_WARN_UNUSED_VARIABLE = YES; 439 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 440 | MTL_ENABLE_DEBUG_INFO = NO; 441 | PRODUCT_NAME = "$(TARGET_NAME)"; 442 | STRIP_INSTALLED_PRODUCT = NO; 443 | SWIFT_COMPILATION_MODE = wholemodule; 444 | SYMROOT = "${SRCROOT}/../build"; 445 | }; 446 | name = Release; 447 | }; 448 | 278272A7AA674A7273EB13FA70289A6A /* Debug */ = { 449 | isa = XCBuildConfiguration; 450 | baseConfigurationReference = 251C9DACCEC047CBA4F978A28F05C63D /* QuickTicker.xcconfig */; 451 | buildSettings = { 452 | CODE_SIGN_IDENTITY = ""; 453 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 454 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 455 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 456 | CURRENT_PROJECT_VERSION = 1; 457 | DEFINES_MODULE = YES; 458 | DYLIB_COMPATIBILITY_VERSION = 1; 459 | DYLIB_CURRENT_VERSION = 1; 460 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 461 | GCC_PREFIX_HEADER = "Target Support Files/QuickTicker/QuickTicker-prefix.pch"; 462 | INFOPLIST_FILE = "Target Support Files/QuickTicker/Info.plist"; 463 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 464 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 465 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 466 | MODULEMAP_FILE = "Target Support Files/QuickTicker/QuickTicker.modulemap"; 467 | PRODUCT_MODULE_NAME = QuickTicker; 468 | PRODUCT_NAME = QuickTicker; 469 | SDKROOT = iphoneos; 470 | SKIP_INSTALL = YES; 471 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 472 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 473 | SWIFT_VERSION = 4.2; 474 | TARGETED_DEVICE_FAMILY = "1,2"; 475 | VERSIONING_SYSTEM = "apple-generic"; 476 | VERSION_INFO_PREFIX = ""; 477 | }; 478 | name = Debug; 479 | }; 480 | 42C1FBD02B7A55F3FA7E49A0724B16A4 /* Debug */ = { 481 | isa = XCBuildConfiguration; 482 | baseConfigurationReference = 820036674A7CD00AFD386FDC257EF2DA /* Pods-QuickTicker_Tests.debug.xcconfig */; 483 | buildSettings = { 484 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 485 | CLANG_ENABLE_OBJC_WEAK = NO; 486 | CODE_SIGN_IDENTITY = ""; 487 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 488 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 489 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 490 | CURRENT_PROJECT_VERSION = 1; 491 | DEFINES_MODULE = YES; 492 | DYLIB_COMPATIBILITY_VERSION = 1; 493 | DYLIB_CURRENT_VERSION = 1; 494 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 495 | INFOPLIST_FILE = "Target Support Files/Pods-QuickTicker_Tests/Info.plist"; 496 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 497 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 498 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 499 | MACH_O_TYPE = staticlib; 500 | MODULEMAP_FILE = "Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests.modulemap"; 501 | OTHER_LDFLAGS = ""; 502 | OTHER_LIBTOOLFLAGS = ""; 503 | PODS_ROOT = "$(SRCROOT)"; 504 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 505 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 506 | SDKROOT = iphoneos; 507 | SKIP_INSTALL = YES; 508 | TARGETED_DEVICE_FAMILY = "1,2"; 509 | VERSIONING_SYSTEM = "apple-generic"; 510 | VERSION_INFO_PREFIX = ""; 511 | }; 512 | name = Debug; 513 | }; 514 | 674FE43DFF1F1136275486BE17E06717 /* Release */ = { 515 | isa = XCBuildConfiguration; 516 | baseConfigurationReference = B995ED4852AE6A8D5DF06C72638CBFF0 /* Pods-QuickTicker_Example.release.xcconfig */; 517 | buildSettings = { 518 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 519 | CLANG_ENABLE_OBJC_WEAK = NO; 520 | CODE_SIGN_IDENTITY = ""; 521 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 522 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 523 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 524 | CURRENT_PROJECT_VERSION = 1; 525 | DEFINES_MODULE = YES; 526 | DYLIB_COMPATIBILITY_VERSION = 1; 527 | DYLIB_CURRENT_VERSION = 1; 528 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 529 | INFOPLIST_FILE = "Target Support Files/Pods-QuickTicker_Example/Info.plist"; 530 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 531 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 532 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 533 | MACH_O_TYPE = staticlib; 534 | MODULEMAP_FILE = "Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example.modulemap"; 535 | OTHER_LDFLAGS = ""; 536 | OTHER_LIBTOOLFLAGS = ""; 537 | PODS_ROOT = "$(SRCROOT)"; 538 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 539 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 540 | SDKROOT = iphoneos; 541 | SKIP_INSTALL = YES; 542 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 543 | TARGETED_DEVICE_FAMILY = "1,2"; 544 | VALIDATE_PRODUCT = YES; 545 | VERSIONING_SYSTEM = "apple-generic"; 546 | VERSION_INFO_PREFIX = ""; 547 | }; 548 | name = Release; 549 | }; 550 | 7FAA07D9F563C9169E4D1104F57E9932 /* Release */ = { 551 | isa = XCBuildConfiguration; 552 | baseConfigurationReference = 251C9DACCEC047CBA4F978A28F05C63D /* QuickTicker.xcconfig */; 553 | buildSettings = { 554 | CODE_SIGN_IDENTITY = ""; 555 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 556 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 557 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 558 | CURRENT_PROJECT_VERSION = 1; 559 | DEFINES_MODULE = YES; 560 | DYLIB_COMPATIBILITY_VERSION = 1; 561 | DYLIB_CURRENT_VERSION = 1; 562 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 563 | GCC_PREFIX_HEADER = "Target Support Files/QuickTicker/QuickTicker-prefix.pch"; 564 | INFOPLIST_FILE = "Target Support Files/QuickTicker/Info.plist"; 565 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 566 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 567 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 568 | MODULEMAP_FILE = "Target Support Files/QuickTicker/QuickTicker.modulemap"; 569 | PRODUCT_MODULE_NAME = QuickTicker; 570 | PRODUCT_NAME = QuickTicker; 571 | SDKROOT = iphoneos; 572 | SKIP_INSTALL = YES; 573 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) "; 574 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 575 | SWIFT_VERSION = 4.2; 576 | TARGETED_DEVICE_FAMILY = "1,2"; 577 | VALIDATE_PRODUCT = YES; 578 | VERSIONING_SYSTEM = "apple-generic"; 579 | VERSION_INFO_PREFIX = ""; 580 | }; 581 | name = Release; 582 | }; 583 | 9DAE5233986C01ADB6E67169C53A3FD2 /* Debug */ = { 584 | isa = XCBuildConfiguration; 585 | buildSettings = { 586 | ALWAYS_SEARCH_USER_PATHS = NO; 587 | CLANG_ANALYZER_NONNULL = YES; 588 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 589 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; 590 | CLANG_CXX_LIBRARY = "libc++"; 591 | CLANG_ENABLE_MODULES = YES; 592 | CLANG_ENABLE_OBJC_ARC = YES; 593 | CLANG_ENABLE_OBJC_WEAK = YES; 594 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 595 | CLANG_WARN_BOOL_CONVERSION = YES; 596 | CLANG_WARN_COMMA = YES; 597 | CLANG_WARN_CONSTANT_CONVERSION = YES; 598 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 599 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 600 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 601 | CLANG_WARN_EMPTY_BODY = YES; 602 | CLANG_WARN_ENUM_CONVERSION = YES; 603 | CLANG_WARN_INFINITE_RECURSION = YES; 604 | CLANG_WARN_INT_CONVERSION = YES; 605 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 606 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 607 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 608 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 609 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 610 | CLANG_WARN_STRICT_PROTOTYPES = YES; 611 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 612 | CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; 613 | CLANG_WARN_UNREACHABLE_CODE = YES; 614 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 615 | CODE_SIGNING_ALLOWED = NO; 616 | CODE_SIGNING_REQUIRED = NO; 617 | COPY_PHASE_STRIP = NO; 618 | DEBUG_INFORMATION_FORMAT = dwarf; 619 | ENABLE_STRICT_OBJC_MSGSEND = YES; 620 | ENABLE_TESTABILITY = YES; 621 | GCC_C_LANGUAGE_STANDARD = gnu11; 622 | GCC_DYNAMIC_NO_PIC = NO; 623 | GCC_NO_COMMON_BLOCKS = YES; 624 | GCC_OPTIMIZATION_LEVEL = 0; 625 | GCC_PREPROCESSOR_DEFINITIONS = ( 626 | "POD_CONFIGURATION_DEBUG=1", 627 | "DEBUG=1", 628 | "$(inherited)", 629 | ); 630 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 631 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 632 | GCC_WARN_UNDECLARED_SELECTOR = YES; 633 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 634 | GCC_WARN_UNUSED_FUNCTION = YES; 635 | GCC_WARN_UNUSED_VARIABLE = YES; 636 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 637 | MTL_ENABLE_DEBUG_INFO = YES; 638 | ONLY_ACTIVE_ARCH = YES; 639 | PRODUCT_NAME = "$(TARGET_NAME)"; 640 | STRIP_INSTALLED_PRODUCT = NO; 641 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 642 | SYMROOT = "${SRCROOT}/../build"; 643 | }; 644 | name = Debug; 645 | }; 646 | A739F050D64BD17782B6F530A249AB4B /* Debug */ = { 647 | isa = XCBuildConfiguration; 648 | baseConfigurationReference = C14068977303CD9CF196A93DCF1C896B /* Pods-QuickTicker_Example.debug.xcconfig */; 649 | buildSettings = { 650 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 651 | CLANG_ENABLE_OBJC_WEAK = NO; 652 | CODE_SIGN_IDENTITY = ""; 653 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 654 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 655 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 656 | CURRENT_PROJECT_VERSION = 1; 657 | DEFINES_MODULE = YES; 658 | DYLIB_COMPATIBILITY_VERSION = 1; 659 | DYLIB_CURRENT_VERSION = 1; 660 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 661 | INFOPLIST_FILE = "Target Support Files/Pods-QuickTicker_Example/Info.plist"; 662 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 663 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 664 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 665 | MACH_O_TYPE = staticlib; 666 | MODULEMAP_FILE = "Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example.modulemap"; 667 | OTHER_LDFLAGS = ""; 668 | OTHER_LIBTOOLFLAGS = ""; 669 | PODS_ROOT = "$(SRCROOT)"; 670 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 671 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 672 | SDKROOT = iphoneos; 673 | SKIP_INSTALL = YES; 674 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 675 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 676 | TARGETED_DEVICE_FAMILY = "1,2"; 677 | VERSIONING_SYSTEM = "apple-generic"; 678 | VERSION_INFO_PREFIX = ""; 679 | }; 680 | name = Debug; 681 | }; 682 | C53CDB780A1A257D89FFA72688750D66 /* Release */ = { 683 | isa = XCBuildConfiguration; 684 | baseConfigurationReference = 2201B6C3BE88FEDEBC24C62315837630 /* Pods-QuickTicker_Tests.release.xcconfig */; 685 | buildSettings = { 686 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; 687 | CLANG_ENABLE_OBJC_WEAK = NO; 688 | CODE_SIGN_IDENTITY = ""; 689 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 690 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 691 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 692 | CURRENT_PROJECT_VERSION = 1; 693 | DEFINES_MODULE = YES; 694 | DYLIB_COMPATIBILITY_VERSION = 1; 695 | DYLIB_CURRENT_VERSION = 1; 696 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 697 | INFOPLIST_FILE = "Target Support Files/Pods-QuickTicker_Tests/Info.plist"; 698 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 699 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 700 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 701 | MACH_O_TYPE = staticlib; 702 | MODULEMAP_FILE = "Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests.modulemap"; 703 | OTHER_LDFLAGS = ""; 704 | OTHER_LIBTOOLFLAGS = ""; 705 | PODS_ROOT = "$(SRCROOT)"; 706 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 707 | PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; 708 | SDKROOT = iphoneos; 709 | SKIP_INSTALL = YES; 710 | TARGETED_DEVICE_FAMILY = "1,2"; 711 | VALIDATE_PRODUCT = YES; 712 | VERSIONING_SYSTEM = "apple-generic"; 713 | VERSION_INFO_PREFIX = ""; 714 | }; 715 | name = Release; 716 | }; 717 | /* End XCBuildConfiguration section */ 718 | 719 | /* Begin XCConfigurationList section */ 720 | 158608D3AEA576BA59AE3375A2CBA184 /* Build configuration list for PBXNativeTarget "Pods-QuickTicker_Example" */ = { 721 | isa = XCConfigurationList; 722 | buildConfigurations = ( 723 | A739F050D64BD17782B6F530A249AB4B /* Debug */, 724 | 674FE43DFF1F1136275486BE17E06717 /* Release */, 725 | ); 726 | defaultConfigurationIsVisible = 0; 727 | defaultConfigurationName = Release; 728 | }; 729 | 204DA0DD44F9641B7A4CB504A056C652 /* Build configuration list for PBXNativeTarget "Pods-QuickTicker_Tests" */ = { 730 | isa = XCConfigurationList; 731 | buildConfigurations = ( 732 | 42C1FBD02B7A55F3FA7E49A0724B16A4 /* Debug */, 733 | C53CDB780A1A257D89FFA72688750D66 /* Release */, 734 | ); 735 | defaultConfigurationIsVisible = 0; 736 | defaultConfigurationName = Release; 737 | }; 738 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 739 | isa = XCConfigurationList; 740 | buildConfigurations = ( 741 | 9DAE5233986C01ADB6E67169C53A3FD2 /* Debug */, 742 | 08638A96A528B1EC32DE62F8A728389D /* Release */, 743 | ); 744 | defaultConfigurationIsVisible = 0; 745 | defaultConfigurationName = Release; 746 | }; 747 | F00A5CB89B1532CE8C4E14602FA2DBEB /* Build configuration list for PBXNativeTarget "QuickTicker" */ = { 748 | isa = XCConfigurationList; 749 | buildConfigurations = ( 750 | 278272A7AA674A7273EB13FA70289A6A /* Debug */, 751 | 7FAA07D9F563C9169E4D1104F57E9932 /* Release */, 752 | ); 753 | defaultConfigurationIsVisible = 0; 754 | defaultConfigurationName = Release; 755 | }; 756 | /* End XCConfigurationList section */ 757 | }; 758 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 759 | } 760 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/besher.xcuserdatad/xcschemes/Pods-QuickTicker_Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/besher.xcuserdatad/xcschemes/Pods-QuickTicker_Tests.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/besher.xcuserdatad/xcschemes/QuickTicker.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/besher.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | Pods-QuickTicker_Example.xcscheme 8 | 9 | isShown 10 | 11 | 12 | Pods-QuickTicker_Tests.xcscheme 13 | 14 | isShown 15 | 16 | 17 | QuickTicker.xcscheme 18 | 19 | isShown 20 | 21 | 22 | 23 | SuppressBuildableAutocreation 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_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-QuickTicker_Example/Pods-QuickTicker_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## QuickTicker 5 | 6 | MIT License 7 | 8 | Copyright (c) 2018 Besher Al Maleh 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_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 | MIT License 18 | 19 | Copyright (c) 2018 Besher Al Maleh 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | QuickTicker 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_QuickTicker_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_QuickTicker_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | 145 | if [[ "$CONFIGURATION" == "Debug" ]]; then 146 | install_framework "${BUILT_PRODUCTS_DIR}/QuickTicker/QuickTicker.framework" 147 | fi 148 | if [[ "$CONFIGURATION" == "Release" ]]; then 149 | install_framework "${BUILT_PRODUCTS_DIR}/QuickTicker/QuickTicker.framework" 150 | fi 151 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 152 | wait 153 | fi 154 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | 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}" || true 60 | 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} 61 | ;; 62 | *.xib) 63 | 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}" || true 64 | 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} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | 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}" 115 | else 116 | 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}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_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_QuickTicker_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_QuickTicker_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/QuickTicker" 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}/QuickTicker/QuickTicker.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "QuickTicker" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_QuickTicker_Example { 2 | umbrella header "Pods-QuickTicker_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/QuickTicker" 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}/QuickTicker/QuickTicker.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "QuickTicker" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = ${BUILD_DIR} 9 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_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-QuickTicker_Tests/Pods-QuickTicker_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-QuickTicker_Tests/Pods-QuickTicker_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-QuickTicker_Tests/Pods-QuickTicker_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_QuickTicker_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_QuickTicker_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then 7 | # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # frameworks to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 13 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 14 | 15 | COCOAPODS_PARALLEL_CODE_SIGN="${COCOAPODS_PARALLEL_CODE_SIGN:-false}" 16 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 17 | 18 | # Used as a return value for each invocation of `strip_invalid_archs` function. 19 | STRIP_BINARY_RETVAL=0 20 | 21 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 22 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 23 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 24 | 25 | # Copies and strips a vendored framework 26 | install_framework() 27 | { 28 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 29 | local source="${BUILT_PRODUCTS_DIR}/$1" 30 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 31 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 32 | elif [ -r "$1" ]; then 33 | local source="$1" 34 | fi 35 | 36 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 37 | 38 | if [ -L "${source}" ]; then 39 | echo "Symlinked..." 40 | source="$(readlink "${source}")" 41 | fi 42 | 43 | # Use filter instead of exclude so missing patterns don't throw errors. 44 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 45 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 46 | 47 | local basename 48 | basename="$(basename -s .framework "$1")" 49 | binary="${destination}/${basename}.framework/${basename}" 50 | if ! [ -r "$binary" ]; then 51 | binary="${destination}/${basename}" 52 | fi 53 | 54 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 55 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 56 | strip_invalid_archs "$binary" 57 | fi 58 | 59 | # Resign the code if required by the build settings to avoid unstable apps 60 | code_sign_if_enabled "${destination}/$(basename "$1")" 61 | 62 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 63 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 64 | local swift_runtime_libs 65 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 66 | for lib in $swift_runtime_libs; do 67 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 68 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 69 | code_sign_if_enabled "${destination}/${lib}" 70 | done 71 | fi 72 | } 73 | 74 | # Copies and strips a vendored dSYM 75 | install_dsym() { 76 | local source="$1" 77 | if [ -r "$source" ]; then 78 | # Copy the dSYM into a the targets temp dir. 79 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" 80 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" 81 | 82 | local basename 83 | basename="$(basename -s .framework.dSYM "$source")" 84 | binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" 85 | 86 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 87 | if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then 88 | strip_invalid_archs "$binary" 89 | fi 90 | 91 | if [[ $STRIP_BINARY_RETVAL == 1 ]]; then 92 | # Move the stripped file into its final destination. 93 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" 94 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" 95 | else 96 | # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. 97 | touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" 98 | fi 99 | fi 100 | } 101 | 102 | # Signs a framework with the provided identity 103 | code_sign_if_enabled() { 104 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED:-}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 105 | # Use the current code_sign_identitiy 106 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 107 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'" 108 | 109 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 110 | code_sign_cmd="$code_sign_cmd &" 111 | fi 112 | echo "$code_sign_cmd" 113 | eval "$code_sign_cmd" 114 | fi 115 | } 116 | 117 | # Strip invalid architectures 118 | strip_invalid_archs() { 119 | binary="$1" 120 | # Get architectures for current target binary 121 | binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" 122 | # Intersect them with the architectures we are building for 123 | intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" 124 | # If there are no archs supported by this binary then warn the user 125 | if [[ -z "$intersected_archs" ]]; then 126 | echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." 127 | STRIP_BINARY_RETVAL=0 128 | return 129 | fi 130 | stripped="" 131 | for arch in $binary_archs; do 132 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 133 | # Strip non-valid architectures in-place 134 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 135 | stripped="$stripped $arch" 136 | fi 137 | done 138 | if [[ "$stripped" ]]; then 139 | echo "Stripped $binary of architectures:$stripped" 140 | fi 141 | STRIP_BINARY_RETVAL=1 142 | } 143 | 144 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 145 | wait 146 | fi 147 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | set -u 4 | set -o pipefail 5 | 6 | if [ -z ${UNLOCALIZED_RESOURCES_FOLDER_PATH+x} ]; then 7 | # If UNLOCALIZED_RESOURCES_FOLDER_PATH is not set, then there's nowhere for us to copy 8 | # resources to, so exit 0 (signalling the script phase was successful). 9 | exit 0 10 | fi 11 | 12 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 13 | 14 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 15 | > "$RESOURCES_TO_COPY" 16 | 17 | XCASSET_FILES=() 18 | 19 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 20 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 21 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 22 | 23 | case "${TARGETED_DEVICE_FAMILY:-}" in 24 | 1,2) 25 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 26 | ;; 27 | 1) 28 | TARGET_DEVICE_ARGS="--target-device iphone" 29 | ;; 30 | 2) 31 | TARGET_DEVICE_ARGS="--target-device ipad" 32 | ;; 33 | 3) 34 | TARGET_DEVICE_ARGS="--target-device tv" 35 | ;; 36 | 4) 37 | TARGET_DEVICE_ARGS="--target-device watch" 38 | ;; 39 | *) 40 | TARGET_DEVICE_ARGS="--target-device mac" 41 | ;; 42 | esac 43 | 44 | install_resource() 45 | { 46 | if [[ "$1" = /* ]] ; then 47 | RESOURCE_PATH="$1" 48 | else 49 | RESOURCE_PATH="${PODS_ROOT}/$1" 50 | fi 51 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 52 | cat << EOM 53 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 54 | EOM 55 | exit 1 56 | fi 57 | case $RESOURCE_PATH in 58 | *.storyboard) 59 | 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}" || true 60 | 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} 61 | ;; 62 | *.xib) 63 | 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}" || true 64 | 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} 65 | ;; 66 | *.framework) 67 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 68 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 69 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 70 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 71 | ;; 72 | *.xcdatamodel) 73 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 74 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 75 | ;; 76 | *.xcdatamodeld) 77 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 78 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 79 | ;; 80 | *.xcmappingmodel) 81 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 82 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 83 | ;; 84 | *.xcassets) 85 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 86 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 87 | ;; 88 | *) 89 | echo "$RESOURCE_PATH" || true 90 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 91 | ;; 92 | esac 93 | } 94 | 95 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 97 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 98 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 100 | fi 101 | rm -f "$RESOURCES_TO_COPY" 102 | 103 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "${XCASSET_FILES:-}" ] 104 | then 105 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 106 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 107 | while read line; do 108 | if [[ $line != "${PODS_ROOT}*" ]]; then 109 | XCASSET_FILES+=("$line") 110 | fi 111 | done <<<"$OTHER_XCASSETS" 112 | 113 | if [ -z ${ASSETCATALOG_COMPILER_APPICON_NAME+x} ]; then 114 | 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}" 115 | else 116 | 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}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${TARGET_TEMP_DIR}/assetcatalog_generated_info_cocoapods.plist" 117 | fi 118 | fi 119 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_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_QuickTicker_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_QuickTicker_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/QuickTicker" 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}/QuickTicker/QuickTicker.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_QuickTicker_Tests { 2 | umbrella header "Pods-QuickTicker_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/QuickTicker" 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}/QuickTicker/QuickTicker.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/QuickTicker/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.2 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/QuickTicker/QuickTicker-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_QuickTicker : NSObject 3 | @end 4 | @implementation PodsDummy_QuickTicker 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/QuickTicker/QuickTicker-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/QuickTicker/QuickTicker-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 QuickTickerVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char QuickTickerVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/QuickTicker/QuickTicker.modulemap: -------------------------------------------------------------------------------- 1 | framework module QuickTicker { 2 | umbrella header "QuickTicker-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/QuickTicker/QuickTicker.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/QuickTicker 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | OTHER_LDFLAGS = -framework "UIKit" 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/QuickTicker.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 0929CFB356FB2AAC86395F74 /* Pods_QuickTicker_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FDF71132EB9C34B20FA88D26 /* Pods_QuickTicker_Tests.framework */; }; 11 | 283AB5CB21813324000C7F40 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 283AB5CA21813324000C7F40 /* ViewController.swift */; }; 12 | 283AB5CD21813334000C7F40 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 283AB5CC21813334000C7F40 /* Main.storyboard */; }; 13 | 283AB5D0218133DF000C7F40 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 283AB5CF218133DF000C7F40 /* Tests.swift */; }; 14 | 601430257434F91C98DC8484 /* Pods_QuickTicker_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 70BBB7AC6010D281290E15AC /* Pods_QuickTicker_Example.framework */; }; 15 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 16 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 17 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 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 = QuickTicker; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 0656B30E194BF9161AAA1551 /* Pods-QuickTicker_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QuickTicker_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example.release.xcconfig"; sourceTree = ""; }; 32 | 07675318FB9E2F80EFE50687 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 33 | 139075DDE62F0B91E432E8CF /* Pods-QuickTicker_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QuickTicker_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests.debug.xcconfig"; sourceTree = ""; }; 34 | 283AB5CA21813324000C7F40 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 35 | 283AB5CC21813334000C7F40 /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = ""; }; 36 | 283AB5CF218133DF000C7F40 /* Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 37 | 2B9F3885CA603CC3A792DD65 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 38 | 5BF19BA3CCE1EB968F584E72 /* QuickTicker.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = QuickTicker.podspec; path = ../QuickTicker.podspec; sourceTree = ""; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 39 | 607FACD01AFB9204008FA782 /* QuickTicker_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = QuickTicker_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 41 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 42 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 43 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 44 | 607FACE51AFB9204008FA782 /* QuickTicker_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = QuickTicker_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 45 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 70BBB7AC6010D281290E15AC /* Pods_QuickTicker_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QuickTicker_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 983FAC59E5D7D3577A2F0B4C /* Pods-QuickTicker_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QuickTicker_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example.debug.xcconfig"; sourceTree = ""; }; 48 | D475E2E985440EE58E41AAF3 /* Pods-QuickTicker_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-QuickTicker_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-QuickTicker_Tests/Pods-QuickTicker_Tests.release.xcconfig"; sourceTree = ""; }; 49 | FDF71132EB9C34B20FA88D26 /* Pods_QuickTicker_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_QuickTicker_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | 601430257434F91C98DC8484 /* Pods_QuickTicker_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 0929CFB356FB2AAC86395F74 /* Pods_QuickTicker_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 26B067F26AAC9E897FA59612 /* Pods */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 983FAC59E5D7D3577A2F0B4C /* Pods-QuickTicker_Example.debug.xcconfig */, 76 | 0656B30E194BF9161AAA1551 /* Pods-QuickTicker_Example.release.xcconfig */, 77 | 139075DDE62F0B91E432E8CF /* Pods-QuickTicker_Tests.debug.xcconfig */, 78 | D475E2E985440EE58E41AAF3 /* Pods-QuickTicker_Tests.release.xcconfig */, 79 | ); 80 | name = Pods; 81 | sourceTree = ""; 82 | }; 83 | 57201E8B3B371CB379204922 /* Frameworks */ = { 84 | isa = PBXGroup; 85 | children = ( 86 | 70BBB7AC6010D281290E15AC /* Pods_QuickTicker_Example.framework */, 87 | FDF71132EB9C34B20FA88D26 /* Pods_QuickTicker_Tests.framework */, 88 | ); 89 | name = Frameworks; 90 | sourceTree = ""; 91 | }; 92 | 607FACC71AFB9204008FA782 = { 93 | isa = PBXGroup; 94 | children = ( 95 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 96 | 607FACD21AFB9204008FA782 /* Example for QuickTicker */, 97 | 607FACE81AFB9204008FA782 /* Tests */, 98 | 607FACD11AFB9204008FA782 /* Products */, 99 | 26B067F26AAC9E897FA59612 /* Pods */, 100 | 57201E8B3B371CB379204922 /* Frameworks */, 101 | ); 102 | sourceTree = ""; 103 | }; 104 | 607FACD11AFB9204008FA782 /* Products */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | 607FACD01AFB9204008FA782 /* QuickTicker_Example.app */, 108 | 607FACE51AFB9204008FA782 /* QuickTicker_Tests.xctest */, 109 | ); 110 | name = Products; 111 | sourceTree = ""; 112 | }; 113 | 607FACD21AFB9204008FA782 /* Example for QuickTicker */ = { 114 | isa = PBXGroup; 115 | children = ( 116 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 117 | 283AB5CA21813324000C7F40 /* ViewController.swift */, 118 | 283AB5CC21813334000C7F40 /* Main.storyboard */, 119 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 120 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 121 | 607FACD31AFB9204008FA782 /* Supporting Files */, 122 | ); 123 | name = "Example for QuickTicker"; 124 | path = QuickTicker; 125 | sourceTree = ""; 126 | }; 127 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 128 | isa = PBXGroup; 129 | children = ( 130 | 607FACD41AFB9204008FA782 /* Info.plist */, 131 | ); 132 | name = "Supporting Files"; 133 | sourceTree = ""; 134 | }; 135 | 607FACE81AFB9204008FA782 /* Tests */ = { 136 | isa = PBXGroup; 137 | children = ( 138 | 607FACE91AFB9204008FA782 /* Supporting Files */, 139 | ); 140 | path = Tests; 141 | sourceTree = ""; 142 | }; 143 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 283AB5CF218133DF000C7F40 /* Tests.swift */, 147 | 607FACEA1AFB9204008FA782 /* Info.plist */, 148 | ); 149 | name = "Supporting Files"; 150 | sourceTree = ""; 151 | }; 152 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 153 | isa = PBXGroup; 154 | children = ( 155 | 5BF19BA3CCE1EB968F584E72 /* QuickTicker.podspec */, 156 | 2B9F3885CA603CC3A792DD65 /* README.md */, 157 | 07675318FB9E2F80EFE50687 /* LICENSE */, 158 | ); 159 | name = "Podspec Metadata"; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* QuickTicker_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "QuickTicker_Example" */; 168 | buildPhases = ( 169 | 41DBF3E4AA2C0CE4612DF940 /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | F289D1021276B1AD8D97BE0D /* [CP] Embed Pods Frameworks */, 174 | ); 175 | buildRules = ( 176 | ); 177 | dependencies = ( 178 | ); 179 | name = QuickTicker_Example; 180 | productName = QuickTicker; 181 | productReference = 607FACD01AFB9204008FA782 /* QuickTicker_Example.app */; 182 | productType = "com.apple.product-type.application"; 183 | }; 184 | 607FACE41AFB9204008FA782 /* QuickTicker_Tests */ = { 185 | isa = PBXNativeTarget; 186 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "QuickTicker_Tests" */; 187 | buildPhases = ( 188 | 996F99315FC886920F94A7A3 /* [CP] Check Pods Manifest.lock */, 189 | 607FACE11AFB9204008FA782 /* Sources */, 190 | 607FACE21AFB9204008FA782 /* Frameworks */, 191 | 607FACE31AFB9204008FA782 /* Resources */, 192 | ); 193 | buildRules = ( 194 | ); 195 | dependencies = ( 196 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 197 | ); 198 | name = QuickTicker_Tests; 199 | productName = Tests; 200 | productReference = 607FACE51AFB9204008FA782 /* QuickTicker_Tests.xctest */; 201 | productType = "com.apple.product-type.bundle.unit-test"; 202 | }; 203 | /* End PBXNativeTarget section */ 204 | 205 | /* Begin PBXProject section */ 206 | 607FACC81AFB9204008FA782 /* Project object */ = { 207 | isa = PBXProject; 208 | attributes = { 209 | LastSwiftUpdateCheck = 0830; 210 | LastUpgradeCheck = 1000; 211 | ORGANIZATIONNAME = CocoaPods; 212 | TargetAttributes = { 213 | 607FACCF1AFB9204008FA782 = { 214 | CreatedOnToolsVersion = 6.3.1; 215 | LastSwiftMigration = 0900; 216 | }; 217 | 607FACE41AFB9204008FA782 = { 218 | CreatedOnToolsVersion = 6.3.1; 219 | LastSwiftMigration = 1000; 220 | TestTargetID = 607FACCF1AFB9204008FA782; 221 | }; 222 | }; 223 | }; 224 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "QuickTicker" */; 225 | compatibilityVersion = "Xcode 3.2"; 226 | developmentRegion = English; 227 | hasScannedForEncodings = 0; 228 | knownRegions = ( 229 | en, 230 | Base, 231 | ); 232 | mainGroup = 607FACC71AFB9204008FA782; 233 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 234 | projectDirPath = ""; 235 | projectRoot = ""; 236 | targets = ( 237 | 607FACCF1AFB9204008FA782 /* QuickTicker_Example */, 238 | 607FACE41AFB9204008FA782 /* QuickTicker_Tests */, 239 | ); 240 | }; 241 | /* End PBXProject section */ 242 | 243 | /* Begin PBXResourcesBuildPhase section */ 244 | 607FACCE1AFB9204008FA782 /* Resources */ = { 245 | isa = PBXResourcesBuildPhase; 246 | buildActionMask = 2147483647; 247 | files = ( 248 | 283AB5CD21813334000C7F40 /* Main.storyboard in Resources */, 249 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 250 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | 607FACE31AFB9204008FA782 /* Resources */ = { 255 | isa = PBXResourcesBuildPhase; 256 | buildActionMask = 2147483647; 257 | files = ( 258 | ); 259 | runOnlyForDeploymentPostprocessing = 0; 260 | }; 261 | /* End PBXResourcesBuildPhase section */ 262 | 263 | /* Begin PBXShellScriptBuildPhase section */ 264 | 41DBF3E4AA2C0CE4612DF940 /* [CP] Check Pods Manifest.lock */ = { 265 | isa = PBXShellScriptBuildPhase; 266 | buildActionMask = 2147483647; 267 | files = ( 268 | ); 269 | inputPaths = ( 270 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 271 | "${PODS_ROOT}/Manifest.lock", 272 | ); 273 | name = "[CP] Check Pods Manifest.lock"; 274 | outputPaths = ( 275 | "$(DERIVED_FILE_DIR)/Pods-QuickTicker_Example-checkManifestLockResult.txt", 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 280 | showEnvVarsInLog = 0; 281 | }; 282 | 996F99315FC886920F94A7A3 /* [CP] Check Pods Manifest.lock */ = { 283 | isa = PBXShellScriptBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | ); 287 | inputPaths = ( 288 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 289 | "${PODS_ROOT}/Manifest.lock", 290 | ); 291 | name = "[CP] Check Pods Manifest.lock"; 292 | outputPaths = ( 293 | "$(DERIVED_FILE_DIR)/Pods-QuickTicker_Tests-checkManifestLockResult.txt", 294 | ); 295 | runOnlyForDeploymentPostprocessing = 0; 296 | shellPath = /bin/sh; 297 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 298 | showEnvVarsInLog = 0; 299 | }; 300 | F289D1021276B1AD8D97BE0D /* [CP] Embed Pods Frameworks */ = { 301 | isa = PBXShellScriptBuildPhase; 302 | buildActionMask = 2147483647; 303 | files = ( 304 | ); 305 | inputPaths = ( 306 | "${SRCROOT}/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example-frameworks.sh", 307 | "${BUILT_PRODUCTS_DIR}/QuickTicker/QuickTicker.framework", 308 | ); 309 | name = "[CP] Embed Pods Frameworks"; 310 | outputPaths = ( 311 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QuickTicker.framework", 312 | ); 313 | runOnlyForDeploymentPostprocessing = 0; 314 | shellPath = /bin/sh; 315 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-QuickTicker_Example/Pods-QuickTicker_Example-frameworks.sh\"\n"; 316 | showEnvVarsInLog = 0; 317 | }; 318 | /* End PBXShellScriptBuildPhase section */ 319 | 320 | /* Begin PBXSourcesBuildPhase section */ 321 | 607FACCC1AFB9204008FA782 /* Sources */ = { 322 | isa = PBXSourcesBuildPhase; 323 | buildActionMask = 2147483647; 324 | files = ( 325 | 283AB5CB21813324000C7F40 /* ViewController.swift in Sources */, 326 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 327 | ); 328 | runOnlyForDeploymentPostprocessing = 0; 329 | }; 330 | 607FACE11AFB9204008FA782 /* Sources */ = { 331 | isa = PBXSourcesBuildPhase; 332 | buildActionMask = 2147483647; 333 | files = ( 334 | 283AB5D0218133DF000C7F40 /* Tests.swift in Sources */, 335 | ); 336 | runOnlyForDeploymentPostprocessing = 0; 337 | }; 338 | /* End PBXSourcesBuildPhase section */ 339 | 340 | /* Begin PBXTargetDependency section */ 341 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 342 | isa = PBXTargetDependency; 343 | target = 607FACCF1AFB9204008FA782 /* QuickTicker_Example */; 344 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 345 | }; 346 | /* End PBXTargetDependency section */ 347 | 348 | /* Begin PBXVariantGroup section */ 349 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 350 | isa = PBXVariantGroup; 351 | children = ( 352 | 607FACDF1AFB9204008FA782 /* Base */, 353 | ); 354 | name = LaunchScreen.xib; 355 | sourceTree = ""; 356 | }; 357 | /* End PBXVariantGroup section */ 358 | 359 | /* Begin XCBuildConfiguration section */ 360 | 607FACED1AFB9204008FA782 /* Debug */ = { 361 | isa = XCBuildConfiguration; 362 | buildSettings = { 363 | ALWAYS_SEARCH_USER_PATHS = NO; 364 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 365 | CLANG_CXX_LIBRARY = "libc++"; 366 | CLANG_ENABLE_MODULES = YES; 367 | CLANG_ENABLE_OBJC_ARC = YES; 368 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 369 | CLANG_WARN_BOOL_CONVERSION = YES; 370 | CLANG_WARN_COMMA = YES; 371 | CLANG_WARN_CONSTANT_CONVERSION = YES; 372 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 373 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 374 | CLANG_WARN_EMPTY_BODY = YES; 375 | CLANG_WARN_ENUM_CONVERSION = YES; 376 | CLANG_WARN_INFINITE_RECURSION = YES; 377 | CLANG_WARN_INT_CONVERSION = YES; 378 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 379 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 380 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 381 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 382 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 383 | CLANG_WARN_STRICT_PROTOTYPES = YES; 384 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 385 | CLANG_WARN_UNREACHABLE_CODE = YES; 386 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 387 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 388 | COPY_PHASE_STRIP = NO; 389 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 390 | ENABLE_STRICT_OBJC_MSGSEND = YES; 391 | ENABLE_TESTABILITY = YES; 392 | GCC_C_LANGUAGE_STANDARD = gnu99; 393 | GCC_DYNAMIC_NO_PIC = NO; 394 | GCC_NO_COMMON_BLOCKS = YES; 395 | GCC_OPTIMIZATION_LEVEL = 0; 396 | GCC_PREPROCESSOR_DEFINITIONS = ( 397 | "DEBUG=1", 398 | "$(inherited)", 399 | ); 400 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 401 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 402 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 403 | GCC_WARN_UNDECLARED_SELECTOR = YES; 404 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 405 | GCC_WARN_UNUSED_FUNCTION = YES; 406 | GCC_WARN_UNUSED_VARIABLE = YES; 407 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 408 | MTL_ENABLE_DEBUG_INFO = YES; 409 | ONLY_ACTIVE_ARCH = YES; 410 | SDKROOT = iphoneos; 411 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 412 | }; 413 | name = Debug; 414 | }; 415 | 607FACEE1AFB9204008FA782 /* Release */ = { 416 | isa = XCBuildConfiguration; 417 | buildSettings = { 418 | ALWAYS_SEARCH_USER_PATHS = NO; 419 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 420 | CLANG_CXX_LIBRARY = "libc++"; 421 | CLANG_ENABLE_MODULES = YES; 422 | CLANG_ENABLE_OBJC_ARC = YES; 423 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 424 | CLANG_WARN_BOOL_CONVERSION = YES; 425 | CLANG_WARN_COMMA = YES; 426 | CLANG_WARN_CONSTANT_CONVERSION = YES; 427 | CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; 428 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 429 | CLANG_WARN_EMPTY_BODY = YES; 430 | CLANG_WARN_ENUM_CONVERSION = YES; 431 | CLANG_WARN_INFINITE_RECURSION = YES; 432 | CLANG_WARN_INT_CONVERSION = YES; 433 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 434 | CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; 435 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 436 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 437 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 438 | CLANG_WARN_STRICT_PROTOTYPES = YES; 439 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 440 | CLANG_WARN_UNREACHABLE_CODE = YES; 441 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 442 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 443 | COPY_PHASE_STRIP = NO; 444 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 445 | ENABLE_NS_ASSERTIONS = NO; 446 | ENABLE_STRICT_OBJC_MSGSEND = YES; 447 | GCC_C_LANGUAGE_STANDARD = gnu99; 448 | GCC_NO_COMMON_BLOCKS = YES; 449 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 450 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 451 | GCC_WARN_UNDECLARED_SELECTOR = YES; 452 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 453 | GCC_WARN_UNUSED_FUNCTION = YES; 454 | GCC_WARN_UNUSED_VARIABLE = YES; 455 | IPHONEOS_DEPLOYMENT_TARGET = 9.3; 456 | MTL_ENABLE_DEBUG_INFO = NO; 457 | SDKROOT = iphoneos; 458 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 459 | VALIDATE_PRODUCT = YES; 460 | }; 461 | name = Release; 462 | }; 463 | 607FACF01AFB9204008FA782 /* Debug */ = { 464 | isa = XCBuildConfiguration; 465 | baseConfigurationReference = 983FAC59E5D7D3577A2F0B4C /* Pods-QuickTicker_Example.debug.xcconfig */; 466 | buildSettings = { 467 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 468 | INFOPLIST_FILE = QuickTicker/Info.plist; 469 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 470 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 471 | MODULE_NAME = ExampleApp; 472 | PRODUCT_BUNDLE_IDENTIFIER = "besher.demo.QuickTicker-Example"; 473 | PRODUCT_NAME = "$(TARGET_NAME)"; 474 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 475 | SWIFT_VERSION = 4.2; 476 | }; 477 | name = Debug; 478 | }; 479 | 607FACF11AFB9204008FA782 /* Release */ = { 480 | isa = XCBuildConfiguration; 481 | baseConfigurationReference = 0656B30E194BF9161AAA1551 /* Pods-QuickTicker_Example.release.xcconfig */; 482 | buildSettings = { 483 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 484 | INFOPLIST_FILE = QuickTicker/Info.plist; 485 | IPHONEOS_DEPLOYMENT_TARGET = 11.0; 486 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 487 | MODULE_NAME = ExampleApp; 488 | PRODUCT_BUNDLE_IDENTIFIER = "besher.demo.QuickTicker-Example"; 489 | PRODUCT_NAME = "$(TARGET_NAME)"; 490 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 491 | SWIFT_VERSION = 4.2; 492 | }; 493 | name = Release; 494 | }; 495 | 607FACF31AFB9204008FA782 /* Debug */ = { 496 | isa = XCBuildConfiguration; 497 | baseConfigurationReference = 139075DDE62F0B91E432E8CF /* Pods-QuickTicker_Tests.debug.xcconfig */; 498 | buildSettings = { 499 | CLANG_ENABLE_MODULES = YES; 500 | FRAMEWORK_SEARCH_PATHS = ( 501 | "$(SDKROOT)/Developer/Library/Frameworks", 502 | "$(inherited)", 503 | ); 504 | GCC_PREPROCESSOR_DEFINITIONS = ( 505 | "DEBUG=1", 506 | "$(inherited)", 507 | ); 508 | INFOPLIST_FILE = Tests/Info.plist; 509 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 510 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 511 | PRODUCT_NAME = "$(TARGET_NAME)"; 512 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 513 | SWIFT_VERSION = 4.2; 514 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/QuickTicker_Example.app/QuickTicker_Example"; 515 | }; 516 | name = Debug; 517 | }; 518 | 607FACF41AFB9204008FA782 /* Release */ = { 519 | isa = XCBuildConfiguration; 520 | baseConfigurationReference = D475E2E985440EE58E41AAF3 /* Pods-QuickTicker_Tests.release.xcconfig */; 521 | buildSettings = { 522 | CLANG_ENABLE_MODULES = YES; 523 | FRAMEWORK_SEARCH_PATHS = ( 524 | "$(SDKROOT)/Developer/Library/Frameworks", 525 | "$(inherited)", 526 | ); 527 | INFOPLIST_FILE = Tests/Info.plist; 528 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 529 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 530 | PRODUCT_NAME = "$(TARGET_NAME)"; 531 | SWIFT_VERSION = 4.2; 532 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/QuickTicker_Example.app/QuickTicker_Example"; 533 | }; 534 | name = Release; 535 | }; 536 | /* End XCBuildConfiguration section */ 537 | 538 | /* Begin XCConfigurationList section */ 539 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "QuickTicker" */ = { 540 | isa = XCConfigurationList; 541 | buildConfigurations = ( 542 | 607FACED1AFB9204008FA782 /* Debug */, 543 | 607FACEE1AFB9204008FA782 /* Release */, 544 | ); 545 | defaultConfigurationIsVisible = 0; 546 | defaultConfigurationName = Release; 547 | }; 548 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "QuickTicker_Example" */ = { 549 | isa = XCConfigurationList; 550 | buildConfigurations = ( 551 | 607FACF01AFB9204008FA782 /* Debug */, 552 | 607FACF11AFB9204008FA782 /* Release */, 553 | ); 554 | defaultConfigurationIsVisible = 0; 555 | defaultConfigurationName = Release; 556 | }; 557 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "QuickTicker_Tests" */ = { 558 | isa = XCConfigurationList; 559 | buildConfigurations = ( 560 | 607FACF31AFB9204008FA782 /* Debug */, 561 | 607FACF41AFB9204008FA782 /* Release */, 562 | ); 563 | defaultConfigurationIsVisible = 0; 564 | defaultConfigurationName = Release; 565 | }; 566 | /* End XCConfigurationList section */ 567 | }; 568 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 569 | } 570 | -------------------------------------------------------------------------------- /Example/QuickTicker.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/QuickTicker.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/QuickTicker.xcodeproj/xcshareddata/xcschemes/QuickTicker-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/QuickTicker.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/QuickTicker.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/QuickTicker/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // QuickTicker 4 | // 5 | // Created by BesherAlMaleh on 10/22/2018. 6 | // Copyright (c) 2018 BesherAlMaleh. 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: [UIApplication.LaunchOptionsKey: 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/QuickTicker/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 25 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /Example/QuickTicker/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ios-marketing", 45 | "size" : "1024x1024", 46 | "scale" : "1x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Example/QuickTicker/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/QuickTicker/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 49 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 67 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 91 | 97 | 98 | 99 | 100 | 101 | 102 | 108 | 114 | 115 | 116 | 117 | 118 | 119 | 125 | 131 | 132 | 133 | 134 | 135 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | -------------------------------------------------------------------------------- /Example/QuickTicker/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // Ticker 4 | // 5 | // Created by Besher on 2018-10-16. 6 | // Copyright © 2018 Besher Al Maleh. All rights reserved. 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | 25 | 26 | import UIKit 27 | import QuickTicker 28 | 29 | class ViewController: UIViewController { 30 | 31 | @IBOutlet weak var ticker: UILabel! 32 | @IBOutlet weak var segmentedControl: UISegmentedControl! 33 | @IBOutlet weak var endValueLabel: UITextField! 34 | @IBOutlet weak var endValueSlider: UISlider! 35 | @IBOutlet weak var durationLabel: UILabel! 36 | @IBOutlet weak var durationSlider: UISlider! 37 | @IBOutlet weak var demoStack: UIStackView! 38 | 39 | var increment: Bool = false { 40 | didSet { 41 | startDemoCounters(increment: increment) 42 | } 43 | } 44 | 45 | var decimalCount: Int { 46 | return getDecimalCount(input: endValue) 47 | } 48 | 49 | var endValue: Double { 50 | return Double(endValueLabel.text ?? "") ?? 0 51 | } 52 | 53 | var duration: TimeInterval { 54 | let value = pow(durationSlider.value, 1.5) 55 | let curvedValue = TimeInterval(value * 15) 56 | let rounded = Double(round(100 * curvedValue) / 100) 57 | return rounded 58 | } 59 | 60 | var curve: QuickTicker.Options { 61 | switch segmentedControl.selectedSegmentIndex { 62 | case 0: return .linear 63 | case 1: return .easeIn 64 | default: return .easeOut 65 | } 66 | } 67 | 68 | override func viewDidLoad() { 69 | super.viewDidLoad() 70 | endValueLabel.delegate = self 71 | // Monospace is important to prevent wobbling 72 | ticker.font = UIFont.monospacedDigitSystemFont(ofSize: 20, weight: .medium) 73 | 74 | } 75 | 76 | @IBAction func startTicker(_ sender: UIButton) { 77 | startCustomCounter() 78 | } 79 | 80 | 81 | @IBAction func sliderChanged(_ sender: UISlider) { 82 | let oldValue = Double(ticker.text ?? "") ?? 0 83 | let value = pow(endValueSlider.value, 3) 84 | let curvedValue = Double(value * 25000) 85 | let decimalCount = getDecimalCount(input: oldValue) 86 | if decimalCount > 0 { 87 | endValueLabel.text = String(truncateNumber(curvedValue, toDecimals: decimalCount)) 88 | } else { 89 | endValueLabel.text = String(Int(curvedValue)) 90 | } 91 | } 92 | 93 | @IBAction func durationSliderChanged(_ sender: UISlider) { 94 | durationLabel.text = String(duration) 95 | } 96 | 97 | 98 | @IBAction func startDemo(_ sender: UIButton) { 99 | increment = !increment 100 | } 101 | 102 | } 103 | 104 | extension ViewController { 105 | 106 | // Animates the custom animation counter 107 | func startCustomCounter() { 108 | QuickTicker.animate(label: ticker, toEndValue: endValue, duration: duration, options: [curve, .decimalPoints(decimalCount)]) { 109 | print("Animation done!") 110 | } 111 | } 112 | 113 | // Animates the 3 demo counters at the bottom 114 | func startDemoCounters(increment: Bool) { 115 | for case let stack as UIStackView in demoStack.arrangedSubviews { 116 | for case let label as UILabel in stack.arrangedSubviews { 117 | let endValue: Double = increment ? 100 : 0 118 | let duration: Double = 3.5 119 | let decimalCount = 0 120 | var curve: QuickTicker.Options = .linear 121 | label.font = UIFont.monospacedDigitSystemFont(ofSize: 17, weight: .regular) 122 | 123 | switch label.tag { 124 | case 1: curve = .linear 125 | case 2: curve = .easeOut 126 | case 3: curve = .easeIn 127 | default: continue 128 | } 129 | 130 | QuickTicker.animate(label: label, toEndValue: endValue, duration: duration, options: [curve, .decimalPoints(decimalCount)]) { 131 | print("Finished animation with \(curve) curve!") 132 | } 133 | } 134 | } 135 | } 136 | } 137 | 138 | 139 | extension ViewController: UITextFieldDelegate { 140 | 141 | func textFieldShouldReturn(_ textField: UITextField) -> Bool { 142 | textField.resignFirstResponder() 143 | return true 144 | } 145 | } 146 | 147 | // MARK: - helper methods 148 | 149 | extension ViewController { 150 | 151 | private func truncateNumber(_ number: Double, toDecimals: Int) -> Double { 152 | let power = pow(10, Double(toDecimals)) 153 | return Double(round(power * number) / power) 154 | } 155 | 156 | private func getDecimalCount(input: Double) -> Int { 157 | if digitIsInt(input) { return 0 } 158 | let str = String(input) 159 | if let dot = str.index(of: ".") { 160 | let firstPart = str[str.startIndex...dot] 161 | var decimals = str 162 | decimals.removeFirst(firstPart.count) 163 | return decimals.count 164 | } else { return 0 } 165 | } 166 | 167 | private func digitIsInt(_ digit: Double) -> Bool { 168 | return Double(Int(digit)) == digit 169 | } 170 | } 171 | -------------------------------------------------------------------------------- /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 | // 2 | // QuickTickerTests.swift 3 | // QuickTickerTests 4 | // 5 | // Created by Besher on 2018-10-21. 6 | // Copyright © 2018 Besher Al Maleh. All rights reserved. 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 | 27 | import XCTest 28 | @testable import QuickTicker 29 | 30 | 31 | class QuickTickerTests: XCTestCase { 32 | 33 | func generateDoubleTestObject() -> QTObject { 34 | let label = UILabel(frame: CGRect.zero) 35 | label.text = "0" 36 | let duration: Double = 0 37 | let endValue: Double = 100 38 | let options: [QuickTicker.Options] = [.linear, .decimalPoints(0)] 39 | return QTObject(label: label, duration: duration, endValue: endValue, options: options, completion: nil) 40 | } 41 | 42 | func generateIntTestObject() -> QTObject { 43 | let label = UILabel(frame: CGRect.zero) 44 | label.text = "0" 45 | let duration: Double = 0 46 | let endValue: Int = 100 47 | let options: [QuickTicker.Options] = [.linear, .decimalPoints(0)] 48 | return QTObject(label: label, duration: duration, endValue: endValue, options: options, completion: nil) 49 | } 50 | 51 | lazy var array = [generateDoubleTestObject(), generateIntTestObject()] 52 | 53 | // TODO: Array of all types 54 | 55 | override func setUp() { 56 | // Put setup code here. This method is called before the invocation of each test method in the class. 57 | super.setUp() 58 | } 59 | 60 | override func tearDown() { 61 | // Put teardown code here. This method is called after the invocation of each test method in the class. 62 | super.tearDown() 63 | } 64 | 65 | func testStartingValue() { 66 | let object = generateIntTestObject() 67 | let label = UILabel() 68 | let doubleValue: Double = 150 69 | label.text = String(doubleValue) 70 | let stringValue = object.getStartingValue(from: label) 71 | XCTAssertEqual(stringValue, doubleValue, "Starting value is not accurate") 72 | 73 | // Int object and Double end value 74 | for _ in 0...20 { 75 | let object = generateIntTestObject() 76 | let randomDouble = Double.random(in: -11110...999999) 77 | label.text = String(randomDouble) 78 | let stringRandomValue = object.getStartingValue(from: label) 79 | XCTAssertEqual(stringRandomValue, randomDouble, "Starting value with random double is not accurate") 80 | print("Tested with \(randomDouble)") 81 | } 82 | 83 | // Int object and Int end value 84 | for _ in 0...20 { 85 | let object = generateIntTestObject() 86 | let randomDouble = Int.random(in: -11110...999999) 87 | label.text = String(randomDouble) 88 | let stringRandomValue = object.getStartingValue(from: label) 89 | XCTAssertEqual(stringRandomValue, Double(randomDouble), "Starting value with random double is not accurate") 90 | print("Tested with \(randomDouble)") 91 | } 92 | 93 | // Double object and Double end value 94 | for _ in 0...20 { 95 | let object = generateDoubleTestObject() 96 | let randomDouble = Double.random(in: -11110...999999) 97 | label.text = String(randomDouble) 98 | let stringRandomValue = object.getStartingValue(from: label) 99 | XCTAssertEqual(stringRandomValue, randomDouble, "Starting value with random double is not accurate") 100 | print("Tested with \(randomDouble)") 101 | } 102 | 103 | // Double object and Int end value 104 | for _ in 0...20 { 105 | let object = generateDoubleTestObject() 106 | let randomDouble = Int.random(in: -11110...999999) 107 | label.text = String(randomDouble) 108 | let stringRandomValue = object.getStartingValue(from: label) 109 | XCTAssertEqual(stringRandomValue, Double(randomDouble), "Starting value with random double is not accurate") 110 | print("Tested with \(randomDouble)") 111 | } 112 | } 113 | 114 | func testGetFirstAndLastDigitIndexes() { 115 | let object = generateIntTestObject() 116 | 117 | let tempLabel = UILabel() 118 | tempLabel.text = "Temperature: 98 F" 119 | let (start, end) = object.getFirstAndLastDigitIndexes(for: tempLabel) 120 | if let start = start, let end = end, let labelText = tempLabel.text { 121 | XCTAssertEqual(String(labelText[start...end]), "98") 122 | } 123 | 124 | let regularLabel = UILabel() 125 | regularLabel.text = "2938.98" 126 | let (start2, end2) = object.getFirstAndLastDigitIndexes(for: regularLabel) 127 | if let start = start2, let end = end2, let labelText = regularLabel.text { 128 | XCTAssertEqual(String(labelText[start...end]), "2938.98") 129 | } 130 | 131 | let mixedLabel = UILabel() 132 | mixedLabel.text = "mixed983.1000bingo" 133 | let (start3, end3) = object.getFirstAndLastDigitIndexes(for: mixedLabel) 134 | if let start = start3, let end = end3, let labelText = mixedLabel.text { 135 | XCTAssertEqual(String(labelText[start...end]), "983.1000") 136 | } 137 | 138 | let textLabel = UILabel() 139 | textLabel.text = "m.bingo 98" 140 | let (start4, end4) = object.getFirstAndLastDigitIndexes(for: textLabel) 141 | if let start = start4, let end = end4, let labelText = textLabel.text { 142 | XCTAssertEqual(String(labelText[start...end]), "98") 143 | } 144 | 145 | let noDigitsLabel = UILabel() 146 | noDigitsLabel.text = "Label" 147 | let (start5, end5) = object.getFirstAndLastDigitIndexes(for: noDigitsLabel) 148 | if let labelText = noDigitsLabel.text { 149 | if let start = start5, let end = end5 { 150 | XCTAssertEqual(String(labelText[start...end]), "") 151 | } else { 152 | let decimalCharacters = CharacterSet.decimalDigits 153 | let decimalRange = labelText.rangeOfCharacter(from: decimalCharacters) 154 | XCTAssert(decimalRange == nil) 155 | } 156 | } 157 | } 158 | 159 | func testGetValueFromPercentage() { 160 | let object = generateDoubleTestObject() 161 | 162 | let half = 0.5 163 | let startValue: Double = 0 164 | let endValue: Double = 100 165 | 166 | let linearValue = object.getValueFromPercentage(half, startValue: startValue, endValue: endValue, curve: .linear) 167 | XCTAssert(linearValue == 50) 168 | 169 | let easeOutValue = object.getValueFromPercentage(half, startValue: startValue, endValue: endValue, curve: .easeOut) 170 | XCTAssert(easeOutValue > 75) 171 | 172 | let easeInValue = object.getValueFromPercentage(half, startValue: startValue, endValue: endValue, curve: .easeIn) 173 | XCTAssert(easeInValue < 25) 174 | } 175 | 176 | func testUpdateDigitsWhileKeepingText() { 177 | let object = generateIntTestObject() 178 | let label = UILabel() 179 | 180 | label.text = "Temperature: 98 F" 181 | object.updateDigitsWhileKeepingText(for: label, value: "23.5") 182 | XCTAssert(label.text == "Temperature: 23.5 F") 183 | 184 | label.text = "Temperature: 0Celsius" 185 | object.updateDigitsWhileKeepingText(for: label, value: "1928") 186 | XCTAssert(label.text == "Temperature: 1928Celsius") 187 | 188 | label.text = "29.19 meters" 189 | object.updateDigitsWhileKeepingText(for: label, value: "10009.300") 190 | XCTAssert(label.text == "10009.300 meters") 191 | 192 | label.text = "Label" 193 | object.updateDigitsWhileKeepingText(for: label, value: "10009.300") 194 | XCTAssert(label.text == "10009.300") 195 | } 196 | 197 | func testUpdateLabel() { 198 | let object = generateDoubleTestObject() 199 | let label = UILabel() 200 | 201 | label.text = "Temperature: 0 F" 202 | 203 | 204 | object.updateLabel(label, withValue: 55, numberOfDecimals: 0) 205 | XCTAssert(label.text == "Temperature: 55 F") 206 | 207 | object.updateLabel(label, withValue: 55, numberOfDecimals: 1) 208 | XCTAssert(label.text == "Temperature: 55.0 F") 209 | 210 | object.updateLabel(label, withValue: 55, numberOfDecimals: 2) 211 | XCTAssert(label.text == "Temperature: 55.00 F") 212 | 213 | object.updateLabel(label, withValue: 55, numberOfDecimals: 3) 214 | XCTAssert(label.text == "Temperature: 55.000 F") 215 | 216 | object.updateLabel(label, withValue: 51255.4812, numberOfDecimals: 0) 217 | XCTAssert(label.text == "Temperature: 51255 F") 218 | 219 | for item in array { 220 | print(item) 221 | } 222 | } 223 | 224 | func testPadIfNeeded() { 225 | let object = generateIntTestObject() 226 | 227 | let value1 = 98.213 228 | let pad1 = object.padValueWithDecimalsIfNeeded(value: value1, requiredDecimals: 8) 229 | XCTAssert(pad1 == "98.21300000") 230 | 231 | let value2 = 98.0 232 | let pad2 = object.padValueWithDecimalsIfNeeded(value: value2, requiredDecimals: 1) 233 | XCTAssert(pad2 == "98.0") 234 | 235 | let value3 = 98.0 236 | let pad3 = object.padValueWithDecimalsIfNeeded(value: value3, requiredDecimals: 2) 237 | XCTAssert(pad3 == "98.00") 238 | 239 | let value4 = 98.00 240 | let pad4 = object.padValueWithDecimalsIfNeeded(value: value4, requiredDecimals: 3) 241 | XCTAssert(pad4 == "98.000") 242 | 243 | let value5 = 98.01 244 | let pad5 = object.padValueWithDecimalsIfNeeded(value: value5, requiredDecimals: 3) 245 | XCTAssert(pad5 == "98.010") 246 | 247 | let value6 = 1928.980 248 | let pad6 = object.padValueWithDecimalsIfNeeded(value: value6, requiredDecimals: 13) 249 | XCTAssert(pad6 == "1928.9800000000000") 250 | } 251 | 252 | func testPerformanceExample() { 253 | // This is an example of a performance test case. 254 | self.measure { 255 | // Put the code you want to measure the time of here. 256 | } 257 | } 258 | 259 | } 260 | -------------------------------------------------------------------------------- /Images/Demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/Images/Demo.gif -------------------------------------------------------------------------------- /Images/Images for readme.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Images/Latte screencap.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/Images/Latte screencap.gif -------------------------------------------------------------------------------- /Images/Latte stats.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/Images/Latte stats.gif -------------------------------------------------------------------------------- /Images/QuickTickerLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/Images/QuickTickerLogo.png -------------------------------------------------------------------------------- /Images/screenshot.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/Images/screenshot.jpg -------------------------------------------------------------------------------- /Images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/Images/screenshot.png -------------------------------------------------------------------------------- /Images/usage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/Images/usage.gif -------------------------------------------------------------------------------- /Images/weather.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/Images/weather.gif -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Besher Al Maleh 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /QuickTicker.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod lib lint QuickTicker.podspec' to ensure this is a 3 | # valid spec before submitting. 4 | # 5 | # Any lines starting with a # are optional, but their use is encouraged 6 | # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | s.name = 'QuickTicker' 11 | s.version = '0.1.5' 12 | s.summary = 'A Swift library for animating labels and text fields' 13 | 14 | # This description is used to generate tags and improve search results. 15 | # * Think: What does it do? Why did you write it? What is the focus? 16 | # * Try to keep it short, snappy and to the point. 17 | # * Write the description between the DESC delimiters below. 18 | # * Finally, don't worry about the indent, CocoaPods strips it! 19 | 20 | s.description = <<-DESC 21 | A simple library to animate labels and textfields using similar syntax to UIView's animate methhods. 22 | 23 | It works even if there is text mixed in with numbers in the same label. Text remains intact while the digits get animated! 24 | DESC 25 | 26 | s.homepage = 'https://github.com/almaleh/Quick-Ticker' 27 | #s.screenshots = 'https://raw.githubusercontent.com/almaleh/Quick-Ticker/master/Images/screenshot.jpg'#, 'www.example.com/screenshots_2' 28 | s.license = { :type => 'MIT', :file => 'LICENSE' } 29 | s.author = { 'BesherAlMaleh' => 'almalehdev@gmail.com' } 30 | s.source = { :git => 'https://github.com/AlMaleh/Quick-Ticker.git', :tag => s.version.to_s } 31 | s.social_media_url = 'https://twitter.com/BesherMaleh' 32 | 33 | s.ios.deployment_target = '8.0' 34 | 35 | s.source_files = 'QuickTicker/Classes/**/*' 36 | 37 | # s.resource_bundles = { 38 | # 'QuickTicker' => ['QuickTicker/Assets/*.png'] 39 | # } 40 | 41 | # s.public_header_files = 'Pod/Classes/**/*.h' 42 | s.frameworks = 'UIKit'#, 'CoreAnimation' 43 | # s.dependency 'AFNetworking', '~> 2.3' 44 | s.swift_version = '4.2' 45 | end 46 | -------------------------------------------------------------------------------- /QuickTicker/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/QuickTicker/Assets/.gitkeep -------------------------------------------------------------------------------- /QuickTicker/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/almaleh/Quick-Ticker/35b170229c319ff2aa1cb31848047aeb8e0ad448/QuickTicker/Classes/.gitkeep -------------------------------------------------------------------------------- /QuickTicker/Classes/QuickTicker.swift: -------------------------------------------------------------------------------- 1 | // 2 | // QuickTicker.swift 3 | // QuickTicker 4 | // 5 | // Created by Besher on 2018-10-16. 6 | // Copyright © 2018 Besher Al Maleh. All rights reserved. 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | 27 | import UIKit 28 | 29 | public protocol TextLabel: class { 30 | var text: String? { get set } 31 | } 32 | 33 | typealias QTHandler = (() -> Void)? 34 | 35 | // MARK: - Public class 36 | 37 | public class QuickTicker { 38 | 39 | public enum Options { 40 | case linear, easeIn, easeOut 41 | case decimalPoints(_ value: Int) 42 | } 43 | 44 | /// Starts a ticker animation on a UILabel or TextField using the provided end value. 45 | /// Options include animation curve and decimal points 46 | public class func animate(label: L?, toEndValue endValue: T, 47 | duration: TimeInterval, options: [Options] = [.linear], 48 | completion: (() -> Void)? = nil) { 49 | if let label = label { 50 | _ = QTObject(label: label, duration: duration, endValue: endValue, 51 | options: options, completion: completion) 52 | } 53 | } 54 | 55 | /// Starts a ticker animation on a UILabel or TextField using a default 2 second duration and linear curve 56 | public class func animate(label: L?, toEndValue endValue: T, completion: (() -> Void)? = nil) { 57 | animate(label: label, toEndValue: endValue, duration: 2, options: [.linear], completion: completion) 58 | } 59 | 60 | /// Starts a ticker animation on a UILabel or TextField using a default 2 second duration 61 | public class func animate(label: L?, toEndValue endValue: T, 62 | options: [Options], completion: (() -> Void)? = nil) { 63 | animate(label: label, toEndValue: endValue, duration: 2, options: options, completion: completion) 64 | } 65 | 66 | } 67 | 68 | internal class QTObject { 69 | 70 | private let animationStartTime = Date() 71 | private lazy var animationStartValue = getStartingValue(from: animationLabel) 72 | private var userRequestedNumberOfDecimals: Int? = nil 73 | 74 | private var requiredNumberOfDecimals: Int { 75 | // if the user requested a specific number we use it, otherwise we infer from end value 76 | return userRequestedNumberOfDecimals ?? getDecimalCount(input: Double(fromNumeric: animationEndValue)) 77 | } 78 | 79 | // The following properties are set during initialization 80 | private weak var animationLabel: TextLabel? 81 | private var animationCompletion: QTHandler 82 | private var animationDisplayLink: CADisplayLink? = nil 83 | private let animationEndValue: T 84 | private var animationCurve: QuickTicker.Options = .linear 85 | private let animationDuration: TimeInterval 86 | 87 | /// Do not call this initializer. Use QuickTicker's class function instead. 88 | /// This QTObject is only meant to be used internally 89 | required init(label: TextLabel, duration: TimeInterval, endValue: T, options: [QuickTicker.Options], 90 | completion: QTHandler) { 91 | animationLabel = label 92 | animationDuration = duration 93 | animationEndValue = endValue 94 | animationCurve = getCurveFrom(options) 95 | animationCompletion = completion 96 | animationDisplayLink = CADisplayLink(target: self, selector: #selector(handleUpdate)) 97 | animationDisplayLink?.add(to: .main, forMode: RunLoop.Mode.common) 98 | userRequestedNumberOfDecimals = getUserRequestedDecimal(from: options) 99 | } 100 | 101 | @objc private func handleUpdate() { 102 | handleUpdateFor(animationLabel, startTime: animationStartTime, animationDuration: animationDuration, 103 | startValue: animationStartValue, endValue: animationEndValue, curve: animationCurve, 104 | displayLink: animationDisplayLink) 105 | } 106 | 107 | fileprivate func handleUpdateFor(_ label: TextLabel?, startTime: Date, animationDuration: TimeInterval, 108 | startValue: Double, endValue: T, curve: QuickTicker.Options, 109 | displayLink: CADisplayLink?) { 110 | 111 | var animationDisplayLink = displayLink 112 | let elapsedTime = Date().timeIntervalSince(startTime) 113 | 114 | if elapsedTime <= animationDuration { 115 | // Animation still in progress 116 | let percentage = elapsedTime / animationDuration 117 | let value = getValueFromPercentage(percentage, startValue: startValue, endValue: endValue, curve: curve) 118 | if (value != Double(fromNumeric: animationEndValue)) { 119 | updateLabel(label, withValue: value, numberOfDecimals: requiredNumberOfDecimals) 120 | } 121 | } else { 122 | // Animation is over 123 | animationDisplayLink?.invalidate() 124 | animationDisplayLink = nil 125 | updateLabel(label, withValue: Double(fromNumeric: endValue), numberOfDecimals: requiredNumberOfDecimals) 126 | animationCompletion?() 127 | } 128 | } 129 | 130 | func updateLabel(_ label: TextLabel?, withValue value: Double, numberOfDecimals: Int) { 131 | 132 | // apply requested decimals to result 133 | let power = pow(10, Double(numberOfDecimals)) 134 | let updatedValue = Double(round(power * value) / power) 135 | 136 | if numberOfDecimals == 0 { 137 | updateDigitsWhileKeepingText(for: label, value: String(Int(updatedValue))) 138 | } else { 139 | // padding is needed in case result has zeros after decimal 140 | let padded = padValueWithDecimalsIfNeeded(value: updatedValue, requiredDecimals: numberOfDecimals) 141 | updateDigitsWhileKeepingText(for: label, value: padded) 142 | } 143 | } 144 | } 145 | 146 | 147 | 148 | // MARK: - Helper methods 149 | 150 | extension QTObject { 151 | 152 | func getStartingValue(from label: TextLabel?) -> Double { 153 | let startText = label?.text ?? "" 154 | 155 | // first try to typecast 156 | if let digit = Double(startText) { 157 | return digit 158 | } 159 | 160 | let (startIndex, endIndex) = getFirstAndLastDigitIndexes(for: animationLabel) 161 | if let start = startIndex, let end = endIndex { 162 | let outputString = String(startText[start...end]) 163 | return Double(outputString) ?? 0 164 | } 165 | 166 | return 0 167 | } 168 | 169 | fileprivate func digitIsInt(_ digit: Double) -> Bool { 170 | return Double(Int(digit)) == digit 171 | } 172 | 173 | func getValueFromPercentage(_ percentage: Double, startValue: Double, endValue: T, curve: QuickTicker.Options) -> Double { 174 | let endDouble = Double(fromNumeric: endValue) 175 | switch curve { 176 | case .easeOut: 177 | var curvedPercentage = 1 - percentage 178 | curvedPercentage = 1 - pow(curvedPercentage, 2.8) 179 | return startValue + (curvedPercentage * (endDouble - startValue)) 180 | 181 | case .easeIn: 182 | let curvedPercentage = pow(percentage, 2.8) 183 | return startValue + (curvedPercentage * (endDouble - startValue)) 184 | 185 | default: 186 | return startValue + (percentage * (endDouble - startValue)) 187 | } 188 | } 189 | 190 | fileprivate func getDecimalCount(input: Double) -> Int { 191 | if digitIsInt(input) { return 0 } 192 | let str = String(input) 193 | if let dot = str.index(of: ".") { 194 | let firstPart = str[str.startIndex...dot] 195 | var decimals = str 196 | decimals.removeFirst(firstPart.count) 197 | return decimals.count 198 | } else { return 0 } 199 | } 200 | 201 | fileprivate func getCurveFrom(_ options: [QuickTicker.Options]) -> QuickTicker.Options { 202 | for option in options { 203 | switch option { 204 | case .easeOut, .easeIn, .linear: return option 205 | default: continue 206 | } 207 | } 208 | // default is linear curve 209 | return .linear 210 | } 211 | 212 | fileprivate func getUserRequestedDecimal(from options: [QuickTicker.Options]) -> Int? { 213 | for option in options { 214 | switch option { 215 | case .decimalPoints(let x): return x >= 0 ? x : 0 // negative values are not allowed 216 | default: continue 217 | } 218 | } 219 | return nil 220 | } 221 | 222 | func getFirstAndLastDigitIndexes(for label: TextLabel?) -> (start: String.Index?, end: String.Index?) { 223 | let originalText = label?.text ?? "" 224 | var set = NSCharacterSet.decimalDigits 225 | set.insert(".") 226 | 227 | var startIndex: String.Index? = nil 228 | var endIndex: String.Index? = nil 229 | 230 | // find indexes for start and end of digits 231 | for (index, char) in originalText.enumerated() { 232 | // get unicode value for character 233 | let scalarValue = char.unicodeScalars.map { $0.value }.reduce(0, +) 234 | if let scalar = UnicodeScalar(scalarValue) { 235 | // check if set contains character, i.e valid digit 236 | if set.contains(scalar) { 237 | let digitIndex = originalText.index(originalText.startIndex, offsetBy: index) 238 | // this check prevents accidental mid-text detection, decimal cannot be start or end index 239 | if char != "." { 240 | if startIndex == nil { 241 | startIndex = digitIndex 242 | } 243 | endIndex = digitIndex 244 | } 245 | } else { 246 | // exit loop if we already found our range 247 | if startIndex != nil && endIndex != nil { break } 248 | } 249 | } 250 | } 251 | 252 | return (startIndex, endIndex) 253 | } 254 | 255 | func updateDigitsWhileKeepingText(for label: TextLabel?, value: String) { 256 | let (startIndex, endIndex) = getFirstAndLastDigitIndexes(for: label) 257 | if let start = startIndex, let end = endIndex { 258 | var updatedText = label?.text ?? "" 259 | // replace old digits with new values 260 | updatedText.removeSubrange(start...end) 261 | updatedText.insert(contentsOf: value, at: start) 262 | label?.text = updatedText 263 | } else { 264 | // if there are no digits in starting value, we update the entire label 265 | label?.text = value 266 | } 267 | } 268 | 269 | func padValueWithDecimalsIfNeeded(value: Double, requiredDecimals: Int) -> String { 270 | var output = String(value) 271 | let valueDecimals = getDecimalCount(input: value) 272 | let difference = requiredDecimals - valueDecimals 273 | 274 | if difference > 0 { 275 | // if equal to int value, we already get a free 0 276 | let loopCount = digitIsInt(value) ? (requiredDecimals - 1) : difference 277 | for _ in 0..() -> T 305 | } 306 | 307 | extension NumericValue { 308 | init(fromNumeric numeric: T) { self = numeric._asOther() } 309 | } 310 | 311 | extension Float : NumericValue { public func _asOther() -> T { return T(self) }} 312 | extension Double : NumericValue { public func _asOther() -> T { return T(self) }} 313 | extension CGFloat : NumericValue { public func _asOther() -> T { return T(self) }} 314 | extension Int : NumericValue { public func _asOther() -> T { return T(self) }} 315 | extension Int8 : NumericValue { public func _asOther() -> T { return T(self) }} 316 | extension Int16 : NumericValue { public func _asOther() -> T { return T(self) }} 317 | extension Int32 : NumericValue { public func _asOther() -> T { return T(self) }} 318 | extension Int64 : NumericValue { public func _asOther() -> T { return T(self) }} 319 | extension UInt : NumericValue { public func _asOther() -> T { return T(self) }} 320 | extension UInt8 : NumericValue { public func _asOther() -> T { return T(self) }} 321 | extension UInt16 : NumericValue { public func _asOther() -> T { return T(self) }} 322 | extension UInt32 : NumericValue { public func _asOther() -> T { return T(self) }} 323 | extension UInt64 : NumericValue { public func _asOther() -> T { return T(self) }} 324 | 325 | // Label needs to have a text property 326 | extension UILabel : TextLabel { } 327 | extension UITextField: TextLabel { } 328 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 | 5 |

A Swift library for animating labels and text fields

6 | 7 |

8 | 9 | [![Version](https://img.shields.io/cocoapods/v/QuickTicker.svg?style=flat)](https://cocoapods.org/pods/QuickTicker) 10 | [![License](https://img.shields.io/cocoapods/l/QuickTicker.svg?style=flat)](https://cocoapods.org/pods/QuickTicker) 11 | [![Platform](https://img.shields.io/cocoapods/p/QuickTicker.svg?style=flat)](https://cocoapods.org/pods/QuickTicker) 12 | ![Swift 4](https://img.shields.io/badge/swift-4.2-orange.svg) 13 | 14 | ## Installation 15 | 16 | Manually: 17 | 18 | Simply copy the QuickTicker.Swift file to your project (it is located in QuickTicker > Classes) 19 | 20 | Cocoapods: 21 | 22 | QuickTicker is also available through [CocoaPods](https://cocoapods.org). To install 23 | it, simply add the following line to your Podfile: 24 | 25 | ```ruby 26 | pod 'QuickTicker' 27 | ``` 28 | 29 | ## Features 30 | 31 | - Simple syntax similar to UIView's animate methods 32 | - It works even if there is text mixed in with numbers in the same label. Text remains intact while the digits get animated! 33 | - Works on both UILabels and UITextFields, and accepts any Numeric value (no need to type cast or convert) 34 | - Completion handler lets you safely queue-up actions following the animation 35 | - You can optionally specify animation curves and decimal points for the label 36 | - Completely safe to destroy or deallocate your label mid-animation, no strong reference is kept 37 | - Unit tested and checked for memory leaks 38 | 39 | ## Quick Functions 40 | 41 | You can get started with a simple one line function call 42 | ```swift 43 | QuickTicker.animate(label: textLabel, toEndValue: 250) 44 | ``` 45 | The default duration is 2 seconds, but that can be easily changed 46 | ```swift 47 | QuickTicker.animate(label: textLabel, toEndValue: 250, duration: 4.3) 48 | ``` 49 | You can also specify the animation curve 50 | ```swift 51 | QuickTicker.animate(label: textLabel, toEndValue: 250, options: [.easeOut]) 52 | ``` 53 | ## Advanced Quick Ticker 54 | 55 | You can optionally specify the duration, the animation curve, decimal points, and add a completion handler to be executed at the end of the animation. 56 | ```swift 57 | QuickTicker.animate(label: textLabel, toEndValue: 250, duration: 4.3, options: [.easeOut, .decimalPoints(2)], completion: { 58 | print("Ticker animation done!") 59 | }) 60 | ``` 61 | 62 | ## Compatible Types 63 | 64 | Enter any of the following types as the end value for the animation, no need to type cast! 65 | - [x] CGFloat 66 | - [x] Float 67 | - [x] Double 68 | - [x] Int 69 | - [x] UInt 70 | - [x] Int8 71 | - [x] UInt8 72 | - [x] Int16 73 | - [x] UInt16 74 | - [x] Int32 75 | - [x] UInt32 76 | - [x] Int64 77 | - [x] UInt64 78 | 79 | ## What it looks like 80 | 81 | Sample App:
82 | 83 | 84 | [InstaWeather:](https://itunes.apple.com/us/app/instaweather/id1341392811?ls=1&mt=8)
85 | 86 | 87 | [Find My Latte:](https://itunes.apple.com/us/app/find-my-latte/id1435110287?ls=1&mt=8)
88 | 89 | 90 | [Find My Latte:](https://itunes.apple.com/us/app/find-my-latte/id1435110287?ls=1&mt=8)
91 | 92 | 93 | ## Try it! 94 | 95 | To run the example project, clone the repo, and launch QuickTicker.xcworkspace from the Example directory. 96 | 97 | ## Requirements 98 | 99 | - iOS 9.0+ 100 | - Swift 4.2 (you can run it on 4.0 by changing the CADisplayLink api call, one line of code) 101 | - Xcode 10 (same as above to run on older Xcode) 102 | 103 | ## Author 104 | 105 | Besher Al Maleh – almalehdev@gmail.com 106 | 107 | Distributed under the MIT license. See [LICENSE](https://github.com/almaleh/Quick-Ticker/blob/master/LICENSE) for more information. 108 | 109 | [https://github.com/almaleh/github-link](https://github.com/almaleh/) 110 |
111 | [LinkedIn](https://www.linkedin.com/in/besher-al-maleh/) 112 | 113 | ## Contributing 114 | 115 | Contributors are welcome! 116 | 1. Fork it () 117 | 2. Create your feature branch (`git checkout -b feature/fooBar`) 118 | 3. Commit your changes (`git commit -am 'Add some fooBar'`) 119 | 4. Push to the branch (`git push origin feature/fooBar`) 120 | 5. Create a new Pull Request 121 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------