├── .gitattributes ├── .gitignore ├── CHANGELOG.md ├── Example ├── KnobGestureRecognizer.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── KnobGestureRecognizer-Example.xcscheme ├── KnobGestureRecognizer.xcworkspace │ └── contents.xcworkspacedata ├── KnobGestureRecognizer │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── BpmControlView.swift │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-57x57@1x.png │ │ │ ├── Icon-App-57x57@2x.png │ │ │ ├── Icon-App-60x60@1x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-72x72@1x.png │ │ │ ├── Icon-App-72x72@2x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-76x76@3x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ ├── Icon-Small-50x50@1x.png │ │ │ └── Icon-Small-50x50@2x.png │ │ ├── BackgroundImage.imageset │ │ │ ├── BackgroundImage.pdf │ │ │ └── Contents.json │ │ ├── Contents.json │ │ ├── bpmControl.imageset │ │ │ ├── Contents.json │ │ │ └── Group 10.pdf │ │ ├── bpmControlActive.imageset │ │ │ ├── Contents.json │ │ │ └── Group.pdf │ │ ├── splashScreen.imageset │ │ │ ├── Contents.json │ │ │ └── splashScreen.pdf │ │ └── termKnob.imageset │ │ │ ├── Contents.json │ │ │ └── termControl.pdf │ ├── Info.plist │ ├── StyleKit.swift │ ├── TermViewController.swift │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── KnobGestureRecognizer.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── KnobGestureRecognizer │ │ ├── Info.plist │ │ ├── KnobGestureRecognizer-dummy.m │ │ ├── KnobGestureRecognizer-prefix.pch │ │ ├── KnobGestureRecognizer-umbrella.h │ │ ├── KnobGestureRecognizer.modulemap │ │ └── KnobGestureRecognizer.xcconfig │ │ ├── Pods-KnobGestureRecognizer_Example │ │ ├── Info.plist │ │ ├── Pods-KnobGestureRecognizer_Example-acknowledgements.markdown │ │ ├── Pods-KnobGestureRecognizer_Example-acknowledgements.plist │ │ ├── Pods-KnobGestureRecognizer_Example-dummy.m │ │ ├── Pods-KnobGestureRecognizer_Example-frameworks.sh │ │ ├── Pods-KnobGestureRecognizer_Example-resources.sh │ │ ├── Pods-KnobGestureRecognizer_Example-umbrella.h │ │ ├── Pods-KnobGestureRecognizer_Example.debug.xcconfig │ │ ├── Pods-KnobGestureRecognizer_Example.modulemap │ │ └── Pods-KnobGestureRecognizer_Example.release.xcconfig │ │ └── Pods-KnobGestureRecognizer_Tests │ │ ├── Info.plist │ │ ├── Pods-KnobGestureRecognizer_Tests-acknowledgements.markdown │ │ ├── Pods-KnobGestureRecognizer_Tests-acknowledgements.plist │ │ ├── Pods-KnobGestureRecognizer_Tests-dummy.m │ │ ├── Pods-KnobGestureRecognizer_Tests-frameworks.sh │ │ ├── Pods-KnobGestureRecognizer_Tests-resources.sh │ │ ├── Pods-KnobGestureRecognizer_Tests-umbrella.h │ │ ├── Pods-KnobGestureRecognizer_Tests.debug.xcconfig │ │ ├── Pods-KnobGestureRecognizer_Tests.modulemap │ │ └── Pods-KnobGestureRecognizer_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── Tests.swift ├── KnobGestureRecognizer.podspec ├── KnobGestureRecognizer ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── KnobGestureRecognizer.swift ├── LICENSE ├── README.md ├── _Pods.xcodeproj ├── logo.png ├── mov1.gif └── mov2.gif /.gitattributes: -------------------------------------------------------------------------------- 1 | *.swift linguist-language=swift -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 35 | # 36 | # Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 1.0 / 2017-02-13 2 | 3 | ##### Release 4 | * detect circle gesture 5 | * get gesture radians 6 | * set center circle 7 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 1F01B8FD3CE1E37DF788F976 /* Pods_KnobGestureRecognizer_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 2A7D0E59D2D399CBC656F101 /* Pods_KnobGestureRecognizer_Example.framework */; }; 11 | 569A9D6ABF4934864247F33D /* Pods_KnobGestureRecognizer_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1A7AF63BEA8070B855C1C7C2 /* Pods_KnobGestureRecognizer_Tests.framework */; }; 12 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 13 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 14 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 15 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 16 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 17 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; }; 18 | 6323D1651E4B6DB300CAA8D3 /* BpmControlView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6323D1641E4B6DB300CAA8D3 /* BpmControlView.swift */; }; 19 | 63B0D0D61E52031D00198540 /* CHANGELOG.md in Sources */ = {isa = PBXBuildFile; fileRef = 63B0D0D51E52031D00198540 /* CHANGELOG.md */; }; 20 | 63E522651E671DB4003CC31E /* TermViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63E522641E671DB4003CC31E /* TermViewController.swift */; }; 21 | 63E522671E682D9F003CC31E /* StyleKit.swift in Sources */ = {isa = PBXBuildFile; fileRef = 63E522661E682D9F003CC31E /* StyleKit.swift */; }; 22 | /* End PBXBuildFile section */ 23 | 24 | /* Begin PBXContainerItemProxy section */ 25 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 26 | isa = PBXContainerItemProxy; 27 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 28 | proxyType = 1; 29 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 30 | remoteInfo = KnobGestureRecognizer; 31 | }; 32 | /* End PBXContainerItemProxy section */ 33 | 34 | /* Begin PBXFileReference section */ 35 | 1A7AF63BEA8070B855C1C7C2 /* Pods_KnobGestureRecognizer_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KnobGestureRecognizer_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 2A7D0E59D2D399CBC656F101 /* Pods_KnobGestureRecognizer_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KnobGestureRecognizer_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 5DD1AAECF73F2AA0EABD6991 /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 38 | 607FACD01AFB9204008FA782 /* KnobGestureRecognizer_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KnobGestureRecognizer_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 39 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 41 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 42 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 43 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 44 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 45 | 607FACE51AFB9204008FA782 /* KnobGestureRecognizer_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KnobGestureRecognizer_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 46 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 47 | 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = ""; }; 48 | 6323D1641E4B6DB300CAA8D3 /* BpmControlView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BpmControlView.swift; sourceTree = ""; }; 49 | 63B0D0D51E52031D00198540 /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = CHANGELOG.md; path = ../CHANGELOG.md; sourceTree = ""; }; 50 | 63E522641E671DB4003CC31E /* TermViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TermViewController.swift; sourceTree = ""; }; 51 | 63E522661E682D9F003CC31E /* StyleKit.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StyleKit.swift; sourceTree = ""; }; 52 | B3B452D82C394CA6F9F8057B /* Pods-KnobGestureRecognizer_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KnobGestureRecognizer_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests.release.xcconfig"; sourceTree = ""; }; 53 | C50CB6846631614BE744ACE7 /* Pods-KnobGestureRecognizer_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KnobGestureRecognizer_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests.debug.xcconfig"; sourceTree = ""; }; 54 | CBF7359CC91F28E8F89E58F0 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 55 | D7EF246C173DDF9D5F0978A1 /* KnobGestureRecognizer.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = KnobGestureRecognizer.podspec; path = ../KnobGestureRecognizer.podspec; sourceTree = ""; }; 56 | DAFC9914D625FD5622427490 /* Pods-KnobGestureRecognizer_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KnobGestureRecognizer_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example.release.xcconfig"; sourceTree = ""; }; 57 | E667E43C5A15227BBCE043CA /* Pods-KnobGestureRecognizer_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KnobGestureRecognizer_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example.debug.xcconfig"; sourceTree = ""; }; 58 | /* End PBXFileReference section */ 59 | 60 | /* Begin PBXFrameworksBuildPhase section */ 61 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | 1F01B8FD3CE1E37DF788F976 /* Pods_KnobGestureRecognizer_Example.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 70 | isa = PBXFrameworksBuildPhase; 71 | buildActionMask = 2147483647; 72 | files = ( 73 | 569A9D6ABF4934864247F33D /* Pods_KnobGestureRecognizer_Tests.framework in Frameworks */, 74 | ); 75 | runOnlyForDeploymentPostprocessing = 0; 76 | }; 77 | /* End PBXFrameworksBuildPhase section */ 78 | 79 | /* Begin PBXGroup section */ 80 | 1A1392AC79D37E1ACA0FC069 /* Pods */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | E667E43C5A15227BBCE043CA /* Pods-KnobGestureRecognizer_Example.debug.xcconfig */, 84 | DAFC9914D625FD5622427490 /* Pods-KnobGestureRecognizer_Example.release.xcconfig */, 85 | C50CB6846631614BE744ACE7 /* Pods-KnobGestureRecognizer_Tests.debug.xcconfig */, 86 | B3B452D82C394CA6F9F8057B /* Pods-KnobGestureRecognizer_Tests.release.xcconfig */, 87 | ); 88 | name = Pods; 89 | sourceTree = ""; 90 | }; 91 | 607FACC71AFB9204008FA782 = { 92 | isa = PBXGroup; 93 | children = ( 94 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 95 | 607FACD21AFB9204008FA782 /* Example for KnobGestureRecognizer */, 96 | 607FACE81AFB9204008FA782 /* Tests */, 97 | 607FACD11AFB9204008FA782 /* Products */, 98 | 1A1392AC79D37E1ACA0FC069 /* Pods */, 99 | D6F69341C0718DE29C164D95 /* Frameworks */, 100 | ); 101 | sourceTree = ""; 102 | }; 103 | 607FACD11AFB9204008FA782 /* Products */ = { 104 | isa = PBXGroup; 105 | children = ( 106 | 607FACD01AFB9204008FA782 /* KnobGestureRecognizer_Example.app */, 107 | 607FACE51AFB9204008FA782 /* KnobGestureRecognizer_Tests.xctest */, 108 | ); 109 | name = Products; 110 | sourceTree = ""; 111 | }; 112 | 607FACD21AFB9204008FA782 /* Example for KnobGestureRecognizer */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | 6323D1641E4B6DB300CAA8D3 /* BpmControlView.swift */, 116 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 117 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 118 | 63E522641E671DB4003CC31E /* TermViewController.swift */, 119 | 63E522661E682D9F003CC31E /* StyleKit.swift */, 120 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 121 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 122 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 123 | 607FACD31AFB9204008FA782 /* Supporting Files */, 124 | ); 125 | name = "Example for KnobGestureRecognizer"; 126 | path = KnobGestureRecognizer; 127 | sourceTree = ""; 128 | }; 129 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 130 | isa = PBXGroup; 131 | children = ( 132 | 607FACD41AFB9204008FA782 /* Info.plist */, 133 | ); 134 | name = "Supporting Files"; 135 | sourceTree = ""; 136 | }; 137 | 607FACE81AFB9204008FA782 /* Tests */ = { 138 | isa = PBXGroup; 139 | children = ( 140 | 607FACEB1AFB9204008FA782 /* Tests.swift */, 141 | 607FACE91AFB9204008FA782 /* Supporting Files */, 142 | ); 143 | path = Tests; 144 | sourceTree = ""; 145 | }; 146 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 607FACEA1AFB9204008FA782 /* Info.plist */, 150 | ); 151 | name = "Supporting Files"; 152 | sourceTree = ""; 153 | }; 154 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 155 | isa = PBXGroup; 156 | children = ( 157 | 63B0D0D51E52031D00198540 /* CHANGELOG.md */, 158 | D7EF246C173DDF9D5F0978A1 /* KnobGestureRecognizer.podspec */, 159 | CBF7359CC91F28E8F89E58F0 /* README.md */, 160 | 5DD1AAECF73F2AA0EABD6991 /* LICENSE */, 161 | ); 162 | name = "Podspec Metadata"; 163 | sourceTree = ""; 164 | }; 165 | D6F69341C0718DE29C164D95 /* Frameworks */ = { 166 | isa = PBXGroup; 167 | children = ( 168 | 2A7D0E59D2D399CBC656F101 /* Pods_KnobGestureRecognizer_Example.framework */, 169 | 1A7AF63BEA8070B855C1C7C2 /* Pods_KnobGestureRecognizer_Tests.framework */, 170 | ); 171 | name = Frameworks; 172 | sourceTree = ""; 173 | }; 174 | /* End PBXGroup section */ 175 | 176 | /* Begin PBXNativeTarget section */ 177 | 607FACCF1AFB9204008FA782 /* KnobGestureRecognizer_Example */ = { 178 | isa = PBXNativeTarget; 179 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KnobGestureRecognizer_Example" */; 180 | buildPhases = ( 181 | BE1A558CEEF45CC7C94AAE8C /* [CP] Check Pods Manifest.lock */, 182 | 607FACCC1AFB9204008FA782 /* Sources */, 183 | 607FACCD1AFB9204008FA782 /* Frameworks */, 184 | 607FACCE1AFB9204008FA782 /* Resources */, 185 | 52DEE2A8C0C62E97A3B97B54 /* [CP] Embed Pods Frameworks */, 186 | 822388D1420C9010D0AD9F82 /* [CP] Copy Pods Resources */, 187 | ); 188 | buildRules = ( 189 | ); 190 | dependencies = ( 191 | ); 192 | name = KnobGestureRecognizer_Example; 193 | productName = KnobGestureRecognizer; 194 | productReference = 607FACD01AFB9204008FA782 /* KnobGestureRecognizer_Example.app */; 195 | productType = "com.apple.product-type.application"; 196 | }; 197 | 607FACE41AFB9204008FA782 /* KnobGestureRecognizer_Tests */ = { 198 | isa = PBXNativeTarget; 199 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KnobGestureRecognizer_Tests" */; 200 | buildPhases = ( 201 | 3ED134DBA5AD84FCB06F77F4 /* [CP] Check Pods Manifest.lock */, 202 | 607FACE11AFB9204008FA782 /* Sources */, 203 | 607FACE21AFB9204008FA782 /* Frameworks */, 204 | 607FACE31AFB9204008FA782 /* Resources */, 205 | 1F7EC7BBF6A58E2A465419F9 /* [CP] Embed Pods Frameworks */, 206 | 7A56BC6C59DB349FECCC535C /* [CP] Copy Pods Resources */, 207 | ); 208 | buildRules = ( 209 | ); 210 | dependencies = ( 211 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 212 | ); 213 | name = KnobGestureRecognizer_Tests; 214 | productName = Tests; 215 | productReference = 607FACE51AFB9204008FA782 /* KnobGestureRecognizer_Tests.xctest */; 216 | productType = "com.apple.product-type.bundle.unit-test"; 217 | }; 218 | /* End PBXNativeTarget section */ 219 | 220 | /* Begin PBXProject section */ 221 | 607FACC81AFB9204008FA782 /* Project object */ = { 222 | isa = PBXProject; 223 | attributes = { 224 | LastSwiftUpdateCheck = 0720; 225 | LastUpgradeCheck = 0720; 226 | ORGANIZATIONNAME = CocoaPods; 227 | TargetAttributes = { 228 | 607FACCF1AFB9204008FA782 = { 229 | CreatedOnToolsVersion = 6.3.1; 230 | DevelopmentTeam = 9XP6F43VV9; 231 | LastSwiftMigration = 0820; 232 | }; 233 | 607FACE41AFB9204008FA782 = { 234 | CreatedOnToolsVersion = 6.3.1; 235 | DevelopmentTeam = 9XP6F43VV9; 236 | LastSwiftMigration = 0820; 237 | TestTargetID = 607FACCF1AFB9204008FA782; 238 | }; 239 | }; 240 | }; 241 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KnobGestureRecognizer" */; 242 | compatibilityVersion = "Xcode 3.2"; 243 | developmentRegion = English; 244 | hasScannedForEncodings = 0; 245 | knownRegions = ( 246 | en, 247 | Base, 248 | ); 249 | mainGroup = 607FACC71AFB9204008FA782; 250 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 251 | projectDirPath = ""; 252 | projectRoot = ""; 253 | targets = ( 254 | 607FACCF1AFB9204008FA782 /* KnobGestureRecognizer_Example */, 255 | 607FACE41AFB9204008FA782 /* KnobGestureRecognizer_Tests */, 256 | ); 257 | }; 258 | /* End PBXProject section */ 259 | 260 | /* Begin PBXResourcesBuildPhase section */ 261 | 607FACCE1AFB9204008FA782 /* Resources */ = { 262 | isa = PBXResourcesBuildPhase; 263 | buildActionMask = 2147483647; 264 | files = ( 265 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 266 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 267 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 268 | ); 269 | runOnlyForDeploymentPostprocessing = 0; 270 | }; 271 | 607FACE31AFB9204008FA782 /* Resources */ = { 272 | isa = PBXResourcesBuildPhase; 273 | buildActionMask = 2147483647; 274 | files = ( 275 | ); 276 | runOnlyForDeploymentPostprocessing = 0; 277 | }; 278 | /* End PBXResourcesBuildPhase section */ 279 | 280 | /* Begin PBXShellScriptBuildPhase section */ 281 | 1F7EC7BBF6A58E2A465419F9 /* [CP] Embed Pods Frameworks */ = { 282 | isa = PBXShellScriptBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | ); 286 | inputPaths = ( 287 | ); 288 | name = "[CP] Embed Pods Frameworks"; 289 | outputPaths = ( 290 | ); 291 | runOnlyForDeploymentPostprocessing = 0; 292 | shellPath = /bin/sh; 293 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests-frameworks.sh\"\n"; 294 | showEnvVarsInLog = 0; 295 | }; 296 | 3ED134DBA5AD84FCB06F77F4 /* [CP] Check Pods Manifest.lock */ = { 297 | isa = PBXShellScriptBuildPhase; 298 | buildActionMask = 2147483647; 299 | files = ( 300 | ); 301 | inputPaths = ( 302 | ); 303 | name = "[CP] Check Pods Manifest.lock"; 304 | outputPaths = ( 305 | ); 306 | runOnlyForDeploymentPostprocessing = 0; 307 | shellPath = /bin/sh; 308 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 309 | showEnvVarsInLog = 0; 310 | }; 311 | 52DEE2A8C0C62E97A3B97B54 /* [CP] Embed Pods Frameworks */ = { 312 | isa = PBXShellScriptBuildPhase; 313 | buildActionMask = 2147483647; 314 | files = ( 315 | ); 316 | inputPaths = ( 317 | ); 318 | name = "[CP] Embed Pods Frameworks"; 319 | outputPaths = ( 320 | ); 321 | runOnlyForDeploymentPostprocessing = 0; 322 | shellPath = /bin/sh; 323 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example-frameworks.sh\"\n"; 324 | showEnvVarsInLog = 0; 325 | }; 326 | 7A56BC6C59DB349FECCC535C /* [CP] Copy Pods Resources */ = { 327 | isa = PBXShellScriptBuildPhase; 328 | buildActionMask = 2147483647; 329 | files = ( 330 | ); 331 | inputPaths = ( 332 | ); 333 | name = "[CP] Copy Pods Resources"; 334 | outputPaths = ( 335 | ); 336 | runOnlyForDeploymentPostprocessing = 0; 337 | shellPath = /bin/sh; 338 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests-resources.sh\"\n"; 339 | showEnvVarsInLog = 0; 340 | }; 341 | 822388D1420C9010D0AD9F82 /* [CP] Copy Pods Resources */ = { 342 | isa = PBXShellScriptBuildPhase; 343 | buildActionMask = 2147483647; 344 | files = ( 345 | ); 346 | inputPaths = ( 347 | ); 348 | name = "[CP] Copy Pods Resources"; 349 | outputPaths = ( 350 | ); 351 | runOnlyForDeploymentPostprocessing = 0; 352 | shellPath = /bin/sh; 353 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example-resources.sh\"\n"; 354 | showEnvVarsInLog = 0; 355 | }; 356 | BE1A558CEEF45CC7C94AAE8C /* [CP] Check Pods Manifest.lock */ = { 357 | isa = PBXShellScriptBuildPhase; 358 | buildActionMask = 2147483647; 359 | files = ( 360 | ); 361 | inputPaths = ( 362 | ); 363 | name = "[CP] Check Pods Manifest.lock"; 364 | outputPaths = ( 365 | ); 366 | runOnlyForDeploymentPostprocessing = 0; 367 | shellPath = /bin/sh; 368 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 369 | showEnvVarsInLog = 0; 370 | }; 371 | /* End PBXShellScriptBuildPhase section */ 372 | 373 | /* Begin PBXSourcesBuildPhase section */ 374 | 607FACCC1AFB9204008FA782 /* Sources */ = { 375 | isa = PBXSourcesBuildPhase; 376 | buildActionMask = 2147483647; 377 | files = ( 378 | 63E522671E682D9F003CC31E /* StyleKit.swift in Sources */, 379 | 6323D1651E4B6DB300CAA8D3 /* BpmControlView.swift in Sources */, 380 | 63E522651E671DB4003CC31E /* TermViewController.swift in Sources */, 381 | 63B0D0D61E52031D00198540 /* CHANGELOG.md in Sources */, 382 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 383 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 384 | ); 385 | runOnlyForDeploymentPostprocessing = 0; 386 | }; 387 | 607FACE11AFB9204008FA782 /* Sources */ = { 388 | isa = PBXSourcesBuildPhase; 389 | buildActionMask = 2147483647; 390 | files = ( 391 | 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */, 392 | ); 393 | runOnlyForDeploymentPostprocessing = 0; 394 | }; 395 | /* End PBXSourcesBuildPhase section */ 396 | 397 | /* Begin PBXTargetDependency section */ 398 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 399 | isa = PBXTargetDependency; 400 | target = 607FACCF1AFB9204008FA782 /* KnobGestureRecognizer_Example */; 401 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 402 | }; 403 | /* End PBXTargetDependency section */ 404 | 405 | /* Begin PBXVariantGroup section */ 406 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 407 | isa = PBXVariantGroup; 408 | children = ( 409 | 607FACDA1AFB9204008FA782 /* Base */, 410 | ); 411 | name = Main.storyboard; 412 | sourceTree = ""; 413 | }; 414 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 415 | isa = PBXVariantGroup; 416 | children = ( 417 | 607FACDF1AFB9204008FA782 /* Base */, 418 | ); 419 | name = LaunchScreen.xib; 420 | sourceTree = ""; 421 | }; 422 | /* End PBXVariantGroup section */ 423 | 424 | /* Begin XCBuildConfiguration section */ 425 | 607FACED1AFB9204008FA782 /* Debug */ = { 426 | isa = XCBuildConfiguration; 427 | buildSettings = { 428 | ALWAYS_SEARCH_USER_PATHS = NO; 429 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 430 | CLANG_CXX_LIBRARY = "libc++"; 431 | CLANG_ENABLE_MODULES = YES; 432 | CLANG_ENABLE_OBJC_ARC = YES; 433 | CLANG_WARN_BOOL_CONVERSION = YES; 434 | CLANG_WARN_CONSTANT_CONVERSION = YES; 435 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 436 | CLANG_WARN_EMPTY_BODY = YES; 437 | CLANG_WARN_ENUM_CONVERSION = YES; 438 | CLANG_WARN_INT_CONVERSION = YES; 439 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 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_STRICT_OBJC_MSGSEND = YES; 446 | ENABLE_TESTABILITY = YES; 447 | GCC_C_LANGUAGE_STANDARD = gnu99; 448 | GCC_DYNAMIC_NO_PIC = NO; 449 | GCC_NO_COMMON_BLOCKS = YES; 450 | GCC_OPTIMIZATION_LEVEL = 0; 451 | GCC_PREPROCESSOR_DEFINITIONS = ( 452 | "DEBUG=1", 453 | "$(inherited)", 454 | ); 455 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 456 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 457 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 458 | GCC_WARN_UNDECLARED_SELECTOR = YES; 459 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 460 | GCC_WARN_UNUSED_FUNCTION = YES; 461 | GCC_WARN_UNUSED_VARIABLE = YES; 462 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 463 | MTL_ENABLE_DEBUG_INFO = YES; 464 | ONLY_ACTIVE_ARCH = YES; 465 | SDKROOT = iphoneos; 466 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 467 | }; 468 | name = Debug; 469 | }; 470 | 607FACEE1AFB9204008FA782 /* Release */ = { 471 | isa = XCBuildConfiguration; 472 | buildSettings = { 473 | ALWAYS_SEARCH_USER_PATHS = NO; 474 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 475 | CLANG_CXX_LIBRARY = "libc++"; 476 | CLANG_ENABLE_MODULES = YES; 477 | CLANG_ENABLE_OBJC_ARC = YES; 478 | CLANG_WARN_BOOL_CONVERSION = YES; 479 | CLANG_WARN_CONSTANT_CONVERSION = YES; 480 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 481 | CLANG_WARN_EMPTY_BODY = YES; 482 | CLANG_WARN_ENUM_CONVERSION = YES; 483 | CLANG_WARN_INT_CONVERSION = YES; 484 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 485 | CLANG_WARN_UNREACHABLE_CODE = YES; 486 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 487 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 488 | COPY_PHASE_STRIP = NO; 489 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 490 | ENABLE_NS_ASSERTIONS = NO; 491 | ENABLE_STRICT_OBJC_MSGSEND = YES; 492 | GCC_C_LANGUAGE_STANDARD = gnu99; 493 | GCC_NO_COMMON_BLOCKS = YES; 494 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 495 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 496 | GCC_WARN_UNDECLARED_SELECTOR = YES; 497 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 498 | GCC_WARN_UNUSED_FUNCTION = YES; 499 | GCC_WARN_UNUSED_VARIABLE = YES; 500 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 501 | MTL_ENABLE_DEBUG_INFO = NO; 502 | SDKROOT = iphoneos; 503 | VALIDATE_PRODUCT = YES; 504 | }; 505 | name = Release; 506 | }; 507 | 607FACF01AFB9204008FA782 /* Debug */ = { 508 | isa = XCBuildConfiguration; 509 | baseConfigurationReference = E667E43C5A15227BBCE043CA /* Pods-KnobGestureRecognizer_Example.debug.xcconfig */; 510 | buildSettings = { 511 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 512 | DEVELOPMENT_TEAM = 9XP6F43VV9; 513 | INFOPLIST_FILE = KnobGestureRecognizer/Info.plist; 514 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 515 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 516 | MODULE_NAME = ExampleApp; 517 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 518 | PRODUCT_NAME = "$(TARGET_NAME)"; 519 | SWIFT_VERSION = 3.0; 520 | }; 521 | name = Debug; 522 | }; 523 | 607FACF11AFB9204008FA782 /* Release */ = { 524 | isa = XCBuildConfiguration; 525 | baseConfigurationReference = DAFC9914D625FD5622427490 /* Pods-KnobGestureRecognizer_Example.release.xcconfig */; 526 | buildSettings = { 527 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 528 | DEVELOPMENT_TEAM = 9XP6F43VV9; 529 | INFOPLIST_FILE = KnobGestureRecognizer/Info.plist; 530 | IPHONEOS_DEPLOYMENT_TARGET = 9.1; 531 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 532 | MODULE_NAME = ExampleApp; 533 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 534 | PRODUCT_NAME = "$(TARGET_NAME)"; 535 | SWIFT_VERSION = 3.0; 536 | }; 537 | name = Release; 538 | }; 539 | 607FACF31AFB9204008FA782 /* Debug */ = { 540 | isa = XCBuildConfiguration; 541 | baseConfigurationReference = C50CB6846631614BE744ACE7 /* Pods-KnobGestureRecognizer_Tests.debug.xcconfig */; 542 | buildSettings = { 543 | DEVELOPMENT_TEAM = 9XP6F43VV9; 544 | FRAMEWORK_SEARCH_PATHS = ( 545 | "$(SDKROOT)/Developer/Library/Frameworks", 546 | "$(inherited)", 547 | ); 548 | GCC_PREPROCESSOR_DEFINITIONS = ( 549 | "DEBUG=1", 550 | "$(inherited)", 551 | ); 552 | INFOPLIST_FILE = Tests/Info.plist; 553 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 554 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 555 | PRODUCT_NAME = "$(TARGET_NAME)"; 556 | SWIFT_VERSION = 3.0; 557 | }; 558 | name = Debug; 559 | }; 560 | 607FACF41AFB9204008FA782 /* Release */ = { 561 | isa = XCBuildConfiguration; 562 | baseConfigurationReference = B3B452D82C394CA6F9F8057B /* Pods-KnobGestureRecognizer_Tests.release.xcconfig */; 563 | buildSettings = { 564 | DEVELOPMENT_TEAM = 9XP6F43VV9; 565 | FRAMEWORK_SEARCH_PATHS = ( 566 | "$(SDKROOT)/Developer/Library/Frameworks", 567 | "$(inherited)", 568 | ); 569 | INFOPLIST_FILE = Tests/Info.plist; 570 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 571 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 572 | PRODUCT_NAME = "$(TARGET_NAME)"; 573 | SWIFT_VERSION = 3.0; 574 | }; 575 | name = Release; 576 | }; 577 | /* End XCBuildConfiguration section */ 578 | 579 | /* Begin XCConfigurationList section */ 580 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KnobGestureRecognizer" */ = { 581 | isa = XCConfigurationList; 582 | buildConfigurations = ( 583 | 607FACED1AFB9204008FA782 /* Debug */, 584 | 607FACEE1AFB9204008FA782 /* Release */, 585 | ); 586 | defaultConfigurationIsVisible = 0; 587 | defaultConfigurationName = Release; 588 | }; 589 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KnobGestureRecognizer_Example" */ = { 590 | isa = XCConfigurationList; 591 | buildConfigurations = ( 592 | 607FACF01AFB9204008FA782 /* Debug */, 593 | 607FACF11AFB9204008FA782 /* Release */, 594 | ); 595 | defaultConfigurationIsVisible = 0; 596 | defaultConfigurationName = Release; 597 | }; 598 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KnobGestureRecognizer_Tests" */ = { 599 | isa = XCConfigurationList; 600 | buildConfigurations = ( 601 | 607FACF31AFB9204008FA782 /* Debug */, 602 | 607FACF41AFB9204008FA782 /* Release */, 603 | ); 604 | defaultConfigurationIsVisible = 0; 605 | defaultConfigurationName = Release; 606 | }; 607 | /* End XCConfigurationList section */ 608 | }; 609 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 610 | } 611 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer.xcodeproj/xcshareddata/xcschemes/KnobGestureRecognizer-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/KnobGestureRecognizer.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | 4 | @UIApplicationMain 5 | class AppDelegate: UIResponder, UIApplicationDelegate { 6 | 7 | var window: UIWindow? 8 | 9 | 10 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 11 | // Override point for customization after application launch. 12 | return true 13 | } 14 | 15 | func applicationWillResignActive(_ application: UIApplication) { 16 | // 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. 17 | // 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. 18 | } 19 | 20 | func applicationDidEnterBackground(_ application: UIApplication) { 21 | // 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. 22 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 23 | } 24 | 25 | func applicationWillEnterForeground(_ application: UIApplication) { 26 | // 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. 27 | } 28 | 29 | func applicationDidBecomeActive(_ application: UIApplication) { 30 | // 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. 31 | } 32 | 33 | func applicationWillTerminate(_ application: UIApplication) { 34 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 35 | } 36 | 37 | 38 | } 39 | 40 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/BpmControlView.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | import AVFoundation 4 | import KnobGestureRecognizer 5 | 6 | protocol BpmControlViewDelegate: class { 7 | func bpmControlView(_ view: BpmControlView, didChange state: BpmControlViewState) 8 | } 9 | 10 | enum BpmControlViewState { 11 | case began 12 | case changed(value: Int) 13 | case ended 14 | } 15 | 16 | class BpmControlView: UIView { 17 | 18 | // MARK: - IBOutlet 19 | 20 | @IBOutlet weak var controlView: UIImageView! 21 | 22 | // MARK: - Properties 23 | 24 | weak var delegate: BpmControlViewDelegate? 25 | 26 | var maxBpmValue: Int = 500 27 | var minBpmValue: Int = 10 28 | var radiansCount: CGFloat = 30 29 | 30 | var bpmValue: Int = 10 { 31 | didSet { 32 | switch bpmValue { 33 | case let x where x < minBpmValue: 34 | bpmValue = minBpmValue 35 | case let x where x > maxBpmValue: 36 | bpmValue = maxBpmValue 37 | default: 38 | break 39 | } 40 | delegate?.bpmControlView(self, didChange: .changed(value: self.bpmValue)) 41 | } 42 | } 43 | 44 | fileprivate var bearing: CGFloat = 0.0 45 | fileprivate var oldBearing: CGFloat = 0.0 46 | 47 | // MARK: - LifeCycle 48 | 49 | override func awakeFromNib() { 50 | super.awakeFromNib() 51 | 52 | let gesture = KnobGestureRecognizer(target: self, action: #selector(rotationAction(_:)), to: controlView) 53 | 54 | gesture.delegate = self 55 | controlView.addGestureRecognizer(gesture) 56 | } 57 | } 58 | 59 | // MARK: - Private Methods 60 | 61 | extension BpmControlView { 62 | 63 | fileprivate func generateFeedback() { 64 | 65 | AudioServicesPlaySystemSoundWithCompletion(1104, nil) 66 | if #available(iOS 10.0, *) { 67 | 68 | let generator = UIImpactFeedbackGenerator(style: .medium) 69 | generator.impactOccurred() 70 | } 71 | } 72 | 73 | fileprivate func gestureHandler(_ sender: KnobGestureRecognizer) { 74 | 75 | bearing += radiansCount/2 * sender.rotation / .pi 76 | 77 | if round(bearing) > oldBearing { 78 | bpmValue += 1 79 | generateFeedback() 80 | } else if round(bearing) < oldBearing { 81 | generateFeedback() 82 | bpmValue -= 1 83 | } 84 | oldBearing = round(bearing) 85 | 86 | let viewTransform = controlView.transform 87 | let newTransform = viewTransform.rotated(by: sender.rotation) 88 | controlView.transform = newTransform 89 | } 90 | 91 | @objc fileprivate func rotationAction(_ sender: KnobGestureRecognizer) { 92 | 93 | switch sender.state { 94 | case .began: 95 | controlView.isHighlighted = true 96 | bearing = 0.0 97 | gestureHandler(sender) 98 | 99 | case .changed: 100 | gestureHandler(sender) 101 | case .ended: 102 | controlView.isHighlighted = false 103 | default: 104 | delegate?.bpmControlView(self, didChange: .ended) 105 | } 106 | } 107 | } 108 | 109 | // MARK: - UIGestureRecognizerDelegate 110 | 111 | extension BpmControlView: UIGestureRecognizerDelegate { 112 | 113 | func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool { 114 | 115 | controlView.isHighlighted = true 116 | delegate?.bpmControlView(self, didChange: .began) 117 | 118 | return true 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images":[ 3 | { 4 | "idiom":"iphone", 5 | "size":"20x20", 6 | "scale":"2x", 7 | "filename":"Icon-App-20x20@2x.png" 8 | }, 9 | { 10 | "idiom":"iphone", 11 | "size":"20x20", 12 | "scale":"3x", 13 | "filename":"Icon-App-20x20@3x.png" 14 | }, 15 | { 16 | "idiom":"iphone", 17 | "size":"29x29", 18 | "scale":"1x", 19 | "filename":"Icon-App-29x29@1x.png" 20 | }, 21 | { 22 | "idiom":"iphone", 23 | "size":"29x29", 24 | "scale":"2x", 25 | "filename":"Icon-App-29x29@2x.png" 26 | }, 27 | { 28 | "idiom":"iphone", 29 | "size":"29x29", 30 | "scale":"3x", 31 | "filename":"Icon-App-29x29@3x.png" 32 | }, 33 | { 34 | "idiom":"iphone", 35 | "size":"40x40", 36 | "scale":"1x", 37 | "filename":"Icon-App-40x40@1x.png" 38 | }, 39 | { 40 | "idiom":"iphone", 41 | "size":"40x40", 42 | "scale":"2x", 43 | "filename":"Icon-App-40x40@2x.png" 44 | }, 45 | { 46 | "idiom":"iphone", 47 | "size":"40x40", 48 | "scale":"3x", 49 | "filename":"Icon-App-40x40@3x.png" 50 | }, 51 | { 52 | "idiom":"iphone", 53 | "size":"57x57", 54 | "scale":"1x", 55 | "filename":"Icon-App-57x57@1x.png" 56 | }, 57 | { 58 | "idiom":"iphone", 59 | "size":"57x57", 60 | "scale":"2x", 61 | "filename":"Icon-App-57x57@2x.png" 62 | }, 63 | { 64 | "idiom":"iphone", 65 | "size":"60x60", 66 | "scale":"1x", 67 | "filename":"Icon-App-60x60@1x.png" 68 | }, 69 | { 70 | "idiom":"iphone", 71 | "size":"60x60", 72 | "scale":"2x", 73 | "filename":"Icon-App-60x60@2x.png" 74 | }, 75 | { 76 | "idiom":"iphone", 77 | "size":"60x60", 78 | "scale":"3x", 79 | "filename":"Icon-App-60x60@3x.png" 80 | }, 81 | { 82 | "idiom":"iphone", 83 | "size":"76x76", 84 | "scale":"1x", 85 | "filename":"Icon-App-76x76@1x.png" 86 | }, 87 | { 88 | "idiom":"ipad", 89 | "size":"20x20", 90 | "scale":"1x", 91 | "filename":"Icon-App-20x20@1x.png" 92 | }, 93 | { 94 | "idiom":"ipad", 95 | "size":"20x20", 96 | "scale":"2x", 97 | "filename":"Icon-App-20x20@2x.png" 98 | }, 99 | { 100 | "idiom":"ipad", 101 | "size":"29x29", 102 | "scale":"1x", 103 | "filename":"Icon-App-29x29@1x.png" 104 | }, 105 | { 106 | "idiom":"ipad", 107 | "size":"29x29", 108 | "scale":"2x", 109 | "filename":"Icon-App-29x29@2x.png" 110 | }, 111 | { 112 | "idiom":"ipad", 113 | "size":"40x40", 114 | "scale":"1x", 115 | "filename":"Icon-App-40x40@1x.png" 116 | }, 117 | { 118 | "idiom":"ipad", 119 | "size":"40x40", 120 | "scale":"2x", 121 | "filename":"Icon-App-40x40@2x.png" 122 | }, 123 | { 124 | "size" : "50x50", 125 | "idiom" : "ipad", 126 | "filename" : "Icon-Small-50x50@1x.png", 127 | "scale" : "1x" 128 | }, 129 | { 130 | "size" : "50x50", 131 | "idiom" : "ipad", 132 | "filename" : "Icon-Small-50x50@2x.png", 133 | "scale" : "2x" 134 | }, 135 | { 136 | "idiom":"ipad", 137 | "size":"72x72", 138 | "scale":"1x", 139 | "filename":"Icon-App-72x72@1x.png" 140 | }, 141 | { 142 | "idiom":"ipad", 143 | "size":"72x72", 144 | "scale":"2x", 145 | "filename":"Icon-App-72x72@2x.png" 146 | }, 147 | { 148 | "idiom":"ipad", 149 | "size":"76x76", 150 | "scale":"1x", 151 | "filename":"Icon-App-76x76@1x.png" 152 | }, 153 | { 154 | "idiom":"ipad", 155 | "size":"76x76", 156 | "scale":"2x", 157 | "filename":"Icon-App-76x76@2x.png" 158 | }, 159 | { 160 | "idiom":"ipad", 161 | "size":"76x76", 162 | "scale":"3x", 163 | "filename":"Icon-App-76x76@3x.png" 164 | }, 165 | { 166 | "idiom":"ipad", 167 | "size":"83.5x83.5", 168 | "scale":"2x", 169 | "filename":"Icon-App-83.5x83.5@2x.png" 170 | } 171 | ], 172 | "info":{ 173 | "version":1, 174 | "author":"makeappicon" 175 | } 176 | } 177 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@1x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/BackgroundImage.imageset/BackgroundImage.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/BackgroundImage.imageset/BackgroundImage.pdf -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/BackgroundImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "BackgroundImage.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/bpmControl.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Group 10.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/bpmControl.imageset/Group 10.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/bpmControl.imageset/Group 10.pdf -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/bpmControlActive.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "Group.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/bpmControlActive.imageset/Group.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/bpmControlActive.imageset/Group.pdf -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/splashScreen.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "splashScreen.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/splashScreen.imageset/splashScreen.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/splashScreen.imageset/splashScreen.pdf -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/termKnob.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "termControl.pdf" 6 | } 7 | ], 8 | "info" : { 9 | "version" : 1, 10 | "author" : "xcode" 11 | } 12 | } -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/Images.xcassets/termKnob.imageset/termControl.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/Example/KnobGestureRecognizer/Images.xcassets/termKnob.imageset/termControl.pdf -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/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 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/StyleKit.swift: -------------------------------------------------------------------------------- 1 | // 2 | // StyleKit.swift 3 | // (null) 4 | // 5 | // Created by Hapich Dima on 02.03.17. 6 | // Copyright © 2017 TheMindStudios. All rights reserved. 7 | // 8 | // Generated by PaintCode 9 | // http://www.paintcodeapp.com 10 | // 11 | 12 | 13 | 14 | import UIKit 15 | 16 | public class StyleKit : NSObject { 17 | 18 | //// Drawing Methods 19 | 20 | public dynamic class func drawBackgroundImage(frame: CGRect = CGRect(x: 0, y: 26, width: 325, height: 592), colorFirst: UIColor = UIColor(red: 0.824, green: 0.996, blue: 0.473, alpha: 1.000), colorSecond: UIColor = UIColor(red: 0.991, green: 0.514, blue: 0.343, alpha: 1.000)) { 21 | //// General Declarations 22 | let context = UIGraphicsGetCurrentContext()! 23 | // This non-generic function dramatically improves compilation times of complex expressions. 24 | func fastFloor(_ x: CGFloat) -> CGFloat { return floor(x) } 25 | 26 | //// Color Declarations 27 | let color2 = colorFirst.withAlphaComponent(0.5) 28 | let color = colorSecond.withAlphaComponent(0.5) 29 | let strokeColor = UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.000) 30 | let fillColor = UIColor(red: 1.000, green: 1.000, blue: 1.000, alpha: 1.000) 31 | 32 | //// Gradient Declarations 33 | let linearGradient2 = CGGradient(colorsSpace: nil, colors: [color2.cgColor, color.cgColor] as CFArray, locations: [0, 1])! 34 | let linearGradient1 = CGGradient(colorsSpace: nil, colors: [colorFirst.cgColor, colorSecond.cgColor] as CFArray, locations: [0, 1])! 35 | 36 | //// Oval-8 Drawing 37 | let oval8Path = UIBezierPath() 38 | oval8Path.move(to: CGPoint(x: frame.minX + 1.00000 * frame.width, y: frame.minY + 0.00000 * frame.height)) 39 | oval8Path.addLine(to: CGPoint(x: frame.minX + 1.00000 * frame.width, y: frame.minY + 0.55856 * frame.height)) 40 | oval8Path.addLine(to: CGPoint(x: frame.minX + 1.00000 * frame.width, y: frame.minY + 0.99850 * frame.height)) 41 | oval8Path.addLine(to: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 1.00000 * frame.height)) 42 | oval8Path.addLine(to: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height)) 43 | oval8Path.addLine(to: CGPoint(x: frame.minX + 1.00000 * frame.width, y: frame.minY + 0.00000 * frame.height)) 44 | oval8Path.close() 45 | context.saveGState() 46 | oval8Path.addClip() 47 | let oval8Bounds: CGRect = oval8Path.cgPath.boundingBoxOfPath 48 | context.drawLinearGradient(linearGradient1, 49 | start: CGPoint(x: oval8Bounds.midX + 0 * oval8Bounds.width / 325, y: oval8Bounds.midY + 596 * oval8Bounds.height / 592), 50 | end: CGPoint(x: oval8Bounds.midX + 0 * oval8Bounds.width / 325, y: oval8Bounds.midY + 232.81 * oval8Bounds.height / 592), 51 | options: [.drawsBeforeStartLocation, .drawsAfterEndLocation]) 52 | context.restoreGState() 53 | 54 | 55 | //// Oval-8-Copy-4 Drawing 56 | let oval8Copy4Path = UIBezierPath() 57 | oval8Copy4Path.move(to: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height)) 58 | oval8Copy4Path.addCurve(to: CGPoint(x: frame.minX + 0.99827 * frame.width, y: frame.minY + 0.71373 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height), controlPoint2: CGPoint(x: frame.minX + 1.00000 * frame.width, y: frame.minY + 0.56081 * frame.height)) 59 | oval8Copy4Path.addCurve(to: CGPoint(x: frame.minX + 0.15217 * frame.width, y: frame.minY + 0.87538 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.76535 * frame.width, y: frame.minY + 0.81498 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.47153 * frame.width, y: frame.minY + 0.87538 * frame.height)) 60 | oval8Copy4Path.addCurve(to: CGPoint(x: frame.minX + 0.00033 * frame.width, y: frame.minY + 0.87078 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.10085 * frame.width, y: frame.minY + 0.87538 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.05018 * frame.width, y: frame.minY + 0.87382 * frame.height)) 61 | oval8Copy4Path.addCurve(to: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height), controlPoint1: CGPoint(x: frame.minX + -0.00000 * frame.width, y: frame.minY + 0.70045 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height)) 62 | oval8Copy4Path.addLine(to: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height)) 63 | oval8Copy4Path.close() 64 | context.saveGState() 65 | oval8Copy4Path.addClip() 66 | let oval8Copy4Bounds: CGRect = oval8Copy4Path.cgPath.boundingBoxOfPath 67 | context.drawLinearGradient(linearGradient2, 68 | start: CGPoint(x: oval8Copy4Bounds.midX + 0 * oval8Copy4Bounds.width / 324.63, y: oval8Copy4Bounds.midY + 448 * oval8Copy4Bounds.height / 518.22), 69 | end: CGPoint(x: oval8Copy4Bounds.midX + 0 * oval8Copy4Bounds.width / 324.63, y: oval8Copy4Bounds.midY + 0 * oval8Copy4Bounds.height / 518.22), 70 | options: [.drawsBeforeStartLocation, .drawsAfterEndLocation]) 71 | context.restoreGState() 72 | 73 | 74 | //// Oval-8-Copy-3 Drawing 75 | let oval8Copy3Path = UIBezierPath() 76 | oval8Copy3Path.move(to: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height)) 77 | oval8Copy3Path.addCurve(to: CGPoint(x: frame.minX + 0.99850 * frame.width, y: frame.minY + 0.25633 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.99322 * frame.width, y: frame.minY + 0.20120 * frame.height)) 78 | oval8Copy3Path.addCurve(to: CGPoint(x: frame.minX + 0.17255 * frame.width, y: frame.minY + 0.59610 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.89134 * frame.width, y: frame.minY + 0.45293 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.56341 * frame.width, y: frame.minY + 0.59610 * frame.height)) 79 | oval8Copy3Path.addCurve(to: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.58709 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.11561 * frame.width, y: frame.minY + 0.59610 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.05387 * frame.width, y: frame.minY + 0.59289 * frame.height)) 80 | oval8Copy3Path.addCurve(to: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.00615 * frame.width, y: frame.minY + 0.41349 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height)) 81 | oval8Copy3Path.addLine(to: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height)) 82 | oval8Copy3Path.close() 83 | context.saveGState() 84 | oval8Copy3Path.addClip() 85 | let oval8Copy3Bounds: CGRect = oval8Copy3Path.cgPath.boundingBoxOfPath 86 | context.drawLinearGradient(linearGradient2, 87 | start: CGPoint(x: oval8Copy3Bounds.midX + 0 * oval8Copy3Bounds.width / 324.51, y: oval8Copy3Bounds.midY + 283.11 * oval8Copy3Bounds.height / 352.89), 88 | end: CGPoint(x: oval8Copy3Bounds.midX + 0 * oval8Copy3Bounds.width / 324.51, y: oval8Copy3Bounds.midY + 0 * oval8Copy3Bounds.height / 352.89), 89 | options: [.drawsBeforeStartLocation, .drawsAfterEndLocation]) 90 | context.restoreGState() 91 | 92 | 93 | //// Oval-8-Copy-2 Drawing 94 | let oval8Copy2Path = UIBezierPath() 95 | oval8Copy2Path.move(to: CGPoint(x: frame.minX + 0.54978 * frame.width, y: frame.minY + 0.00444 * frame.height)) 96 | oval8Copy2Path.addCurve(to: CGPoint(x: frame.minX + 0.60598 * frame.width, y: frame.minY + 0.12462 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.58558 * frame.width, y: frame.minY + 0.04003 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.60598 * frame.width, y: frame.minY + 0.08101 * frame.height)) 97 | oval8Copy2Path.addCurve(to: CGPoint(x: frame.minX + 0.15761 * frame.width, y: frame.minY + 0.37237 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.60598 * frame.width, y: frame.minY + 0.26145 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.40524 * frame.width, y: frame.minY + 0.37237 * frame.height)) 98 | oval8Copy2Path.addCurve(to: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.35886 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.10490 * frame.width, y: frame.minY + 0.37237 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.04698 * frame.width, y: frame.minY + 0.36809 * frame.height)) 99 | oval8Copy2Path.addCurve(to: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.00272 * frame.width, y: frame.minY + 0.25150 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height)) 100 | oval8Copy2Path.addCurve(to: CGPoint(x: frame.minX + 0.54978 * frame.width, y: frame.minY + 0.00444 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.38315 * frame.width, y: frame.minY + 0.00075 * frame.height)) 101 | oval8Copy2Path.close() 102 | context.saveGState() 103 | oval8Copy2Path.addClip() 104 | let oval8Copy2Bounds: CGRect = oval8Copy2Path.cgPath.boundingBoxOfPath 105 | context.drawLinearGradient(linearGradient2, 106 | start: CGPoint(x: oval8Copy2Bounds.midX + 0 * oval8Copy2Bounds.width / 196.94, y: oval8Copy2Bounds.midY + 146.67 * oval8Copy2Bounds.height / 220.44), 107 | end: CGPoint(x: oval8Copy2Bounds.midX + 0 * oval8Copy2Bounds.width / 196.94, y: oval8Copy2Bounds.midY + -10.62 * oval8Copy2Bounds.height / 220.44), 108 | options: [.drawsBeforeStartLocation, .drawsAfterEndLocation]) 109 | context.restoreGState() 110 | 111 | 112 | //// Oval-8-Copy- Drawing 113 | let oval8CopyPath = UIBezierPath() 114 | oval8CopyPath.move(to: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height)) 115 | oval8CopyPath.addCurve(to: CGPoint(x: frame.minX + 0.99884 * frame.width, y: frame.minY + 0.25571 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.98916 * frame.width, y: frame.minY + 0.21246 * frame.height)) 116 | oval8CopyPath.addCurve(to: CGPoint(x: frame.minX + 0.17255 * frame.width, y: frame.minY + 0.59610 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.89203 * frame.width, y: frame.minY + 0.45263 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.56383 * frame.width, y: frame.minY + 0.59610 * frame.height)) 117 | oval8CopyPath.addCurve(to: CGPoint(x: frame.minX + 0.00081 * frame.width, y: frame.minY + 0.58668 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.11375 * frame.width, y: frame.minY + 0.59610 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.05632 * frame.width, y: frame.minY + 0.59286 * frame.height)) 118 | oval8CopyPath.addCurve(to: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.00408 * frame.width, y: frame.minY + 0.43318 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.00000 * frame.width, y: frame.minY + 0.00000 * frame.height)) 119 | oval8CopyPath.addLine(to: CGPoint(x: frame.minX + 0.99728 * frame.width, y: frame.minY + 0.00000 * frame.height)) 120 | oval8CopyPath.close() 121 | context.saveGState() 122 | oval8CopyPath.addClip() 123 | let oval8CopyBounds: CGRect = oval8CopyPath.cgPath.boundingBoxOfPath 124 | context.drawLinearGradient(linearGradient2, 125 | start: CGPoint(x: oval8CopyBounds.midX + 0 * oval8CopyBounds.width / 324.62, y: oval8CopyBounds.midY + 283.11 * oval8CopyBounds.height / 352.89), 126 | end: CGPoint(x: oval8CopyBounds.midX + 0 * oval8CopyBounds.width / 324.62, y: oval8CopyBounds.midY + 0 * oval8CopyBounds.height / 352.89), 127 | options: [.drawsBeforeStartLocation, .drawsAfterEndLocation]) 128 | context.restoreGState() 129 | 130 | 131 | //// Oval-8-Copy 5 Drawing 132 | let oval8Copy5Rect = CGRect(x: frame.minX + fastFloor(frame.width * 0.02462 + 0.5), y: frame.minY + fastFloor(frame.height * 0.06250 + 0.5), width: fastFloor(frame.width * 0.36308 + 0.5) - fastFloor(frame.width * 0.02462 + 0.5), height: fastFloor(frame.height * 0.24831 + 0.5) - fastFloor(frame.height * 0.06250 + 0.5)) 133 | let oval8Copy5Path = UIBezierPath(ovalIn: oval8Copy5Rect) 134 | context.saveGState() 135 | oval8Copy5Path.addClip() 136 | context.drawLinearGradient(linearGradient1, 137 | start: CGPoint(x: oval8Copy5Rect.midX + 0 * oval8Copy5Rect.width / 110, y: oval8Copy5Rect.midY + 55 * oval8Copy5Rect.height / 110), 138 | end: CGPoint(x: oval8Copy5Rect.midX + 0 * oval8Copy5Rect.width / 110, y: oval8Copy5Rect.midY + -55 * oval8Copy5Rect.height / 110), 139 | options: [.drawsBeforeStartLocation, .drawsAfterEndLocation]) 140 | context.restoreGState() 141 | 142 | 143 | //// Bezier Drawing 144 | let bezierPath = UIBezierPath() 145 | bezierPath.move(to: CGPoint(x: frame.minX + 0.20308 * frame.width, y: frame.minY + 0.16055 * frame.height)) 146 | bezierPath.addCurve(to: CGPoint(x: frame.minX + 0.21385 * frame.width, y: frame.minY + 0.16976 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.20943 * frame.width, y: frame.minY + 0.16215 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.21385 * frame.width, y: frame.minY + 0.16567 * frame.height)) 147 | bezierPath.addCurve(to: CGPoint(x: frame.minX + 0.19538 * frame.width, y: frame.minY + 0.17990 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.21385 * frame.width, y: frame.minY + 0.17536 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.20558 * frame.width, y: frame.minY + 0.17990 * frame.height)) 148 | bezierPath.addCurve(to: CGPoint(x: frame.minX + 0.17692 * frame.width, y: frame.minY + 0.16976 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.18519 * frame.width, y: frame.minY + 0.17990 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.17692 * frame.width, y: frame.minY + 0.17536 * frame.height)) 149 | bezierPath.addCurve(to: CGPoint(x: frame.minX + 0.18769 * frame.width, y: frame.minY + 0.16055 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.17692 * frame.width, y: frame.minY + 0.16567 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.18134 * frame.width, y: frame.minY + 0.16215 * frame.height)) 150 | bezierPath.addLine(to: CGPoint(x: frame.minX + 0.18769 * frame.width, y: frame.minY + 0.13345 * frame.height)) 151 | bezierPath.addCurve(to: CGPoint(x: frame.minX + 0.19538 * frame.width, y: frame.minY + 0.12922 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.18769 * frame.width, y: frame.minY + 0.13112 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.19111 * frame.width, y: frame.minY + 0.12922 * frame.height)) 152 | bezierPath.addCurve(to: CGPoint(x: frame.minX + 0.20308 * frame.width, y: frame.minY + 0.13345 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.19963 * frame.width, y: frame.minY + 0.12922 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.20308 * frame.width, y: frame.minY + 0.13110 * frame.height)) 153 | bezierPath.addLine(to: CGPoint(x: frame.minX + 0.20308 * frame.width, y: frame.minY + 0.16055 * frame.height)) 154 | bezierPath.close() 155 | strokeColor.setStroke() 156 | bezierPath.lineWidth = 1 157 | bezierPath.stroke() 158 | 159 | 160 | //// Bezier 2 Drawing 161 | let bezier2Path = UIBezierPath() 162 | bezier2Path.move(to: CGPoint(x: frame.minX + 0.19846 * frame.width, y: frame.minY + 0.16322 * frame.height)) 163 | bezier2Path.addCurve(to: CGPoint(x: frame.minX + 0.20769 * frame.width, y: frame.minY + 0.16976 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.20377 * frame.width, y: frame.minY + 0.16397 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.20769 * frame.width, y: frame.minY + 0.16662 * frame.height)) 164 | bezier2Path.addCurve(to: CGPoint(x: frame.minX + 0.19538 * frame.width, y: frame.minY + 0.17652 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.20769 * frame.width, y: frame.minY + 0.17350 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.20218 * frame.width, y: frame.minY + 0.17652 * frame.height)) 165 | bezier2Path.addCurve(to: CGPoint(x: frame.minX + 0.18308 * frame.width, y: frame.minY + 0.16976 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.18859 * frame.width, y: frame.minY + 0.17652 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.18308 * frame.width, y: frame.minY + 0.17350 * frame.height)) 166 | bezier2Path.addCurve(to: CGPoint(x: frame.minX + 0.19231 * frame.width, y: frame.minY + 0.16322 * frame.height), controlPoint1: CGPoint(x: frame.minX + 0.18308 * frame.width, y: frame.minY + 0.16662 * frame.height), controlPoint2: CGPoint(x: frame.minX + 0.18700 * frame.width, y: frame.minY + 0.16397 * frame.height)) 167 | bezier2Path.addLine(to: CGPoint(x: frame.minX + 0.19231 * frame.width, y: frame.minY + 0.14949 * frame.height)) 168 | bezier2Path.addLine(to: CGPoint(x: frame.minX + 0.19846 * frame.width, y: frame.minY + 0.14949 * frame.height)) 169 | bezier2Path.addLine(to: CGPoint(x: frame.minX + 0.19846 * frame.width, y: frame.minY + 0.16322 * frame.height)) 170 | bezier2Path.close() 171 | bezier2Path.usesEvenOddFillRule = true 172 | fillColor.setFill() 173 | bezier2Path.fill() 174 | } 175 | 176 | //// Generated Images 177 | 178 | public dynamic class func imageOfBackgroundImage(imageSize: CGSize = CGSize(width: 325, height: 592), colorFirst: UIColor = UIColor(red: 0.824, green: 0.996, blue: 0.473, alpha: 1.000), colorSecond: UIColor = UIColor(red: 0.991, green: 0.514, blue: 0.343, alpha: 1.000)) -> UIImage { 179 | UIGraphicsBeginImageContextWithOptions(imageSize, false, 0) 180 | StyleKit.drawBackgroundImage(frame: CGRect(x: 0, y: 0, width: imageSize.width, height: imageSize.height), colorFirst: colorFirst, colorSecond: colorSecond) 181 | 182 | let imageOfBackgroundImage = UIGraphicsGetImageFromCurrentImageContext()! 183 | UIGraphicsEndImageContext() 184 | 185 | return imageOfBackgroundImage 186 | } 187 | 188 | } 189 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/TermViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TermViewController.swift 3 | // KnobGestureRecognizer 4 | // 5 | // Created by Dima on 01.03.17. 6 | // Copyright © 2017 CocoaPods. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import AVFoundation 11 | import KnobGestureRecognizer 12 | 13 | class TermViewController: UIViewController { 14 | 15 | @IBOutlet weak var controlView: UIImageView! 16 | @IBOutlet weak var backgroundImageView: UIImageView! 17 | 18 | let blueFirstColor = UIColor(red: 139.0/255.0, green: 205.0/255.0, blue: 1.000, alpha: 1.000) 19 | let blueSecondColor = UIColor(red: 106.0/255.0, green: 192.0/255.0, blue: 1.000, alpha: 1.000) 20 | 21 | let rerFirstColor = UIColor(red: 1.000, green: 215.0/255.0, blue: 139.0/255.0, alpha: 1.000) 22 | let rerSecondColor = UIColor(red: 1.000, green: 151.0/255.0, blue: 106.0/255.0, alpha: 1.000) 23 | 24 | var maxValue: CGFloat = 100 25 | var minValue: CGFloat = 0 26 | var radiansCount: CGFloat = 15 27 | fileprivate var bearing: CGFloat = 0.0 28 | fileprivate var oldBearing: CGFloat = 0.0 29 | 30 | fileprivate var value: CGFloat = 0 { 31 | didSet { 32 | switch value { 33 | case let x where x < minValue: 34 | value = minValue 35 | case let x where x > maxValue: 36 | value = maxValue 37 | default: 38 | break 39 | } 40 | self.redrawImage() 41 | } 42 | } 43 | 44 | override func viewDidLoad() { 45 | super.viewDidLoad() 46 | 47 | let gesture = KnobGestureRecognizer(target: self, action: #selector(rotationAction(_:)), to: controlView) 48 | value = 0 49 | gesture.delegate = self 50 | controlView.addGestureRecognizer(gesture) 51 | 52 | } 53 | } 54 | 55 | // MARK: - Private Methods 56 | 57 | extension TermViewController { 58 | 59 | fileprivate func generateFeedback() { 60 | 61 | AudioServicesPlaySystemSoundWithCompletion(1104, nil) 62 | if #available(iOS 10.0, *) { 63 | 64 | let generator = UIImpactFeedbackGenerator(style: .medium) 65 | generator.impactOccurred() 66 | } 67 | } 68 | 69 | fileprivate func gestureHandler(_ sender: KnobGestureRecognizer) { 70 | 71 | bearing += radiansCount * sender.rotation / .pi 72 | 73 | if round(bearing) > oldBearing { 74 | value += 1 75 | generateFeedback() 76 | } else if round(bearing) < oldBearing { 77 | generateFeedback() 78 | value -= 1 79 | } 80 | 81 | oldBearing = round(bearing) 82 | 83 | let viewTransform = self.controlView.transform 84 | let newTransform = viewTransform.rotated(by: sender.rotation) 85 | self.controlView.transform = newTransform 86 | } 87 | 88 | @objc fileprivate func rotationAction(_ sender: KnobGestureRecognizer) { 89 | 90 | switch sender.state { 91 | case .began: 92 | controlView.isHighlighted = true 93 | bearing = 0.0 94 | 95 | gestureHandler(sender) 96 | 97 | case .changed: 98 | gestureHandler(sender) 99 | case .ended: 100 | controlView.isHighlighted = false 101 | default: 102 | 103 | break 104 | } 105 | } 106 | 107 | fileprivate func redrawImage() { 108 | 109 | DispatchQueue.global(qos: .background).async { [weak self] 110 | () -> Void in 111 | if let fColor = self?.midleColor(firstColor: (self?.blueFirstColor)!, secondColor: (self?.rerFirstColor)!, colorRatio: (self?.value)!/(self?.maxValue)!), 112 | let sColor = self?.midleColor(firstColor: (self?.blueSecondColor)!, secondColor: (self?.rerSecondColor)!, colorRatio: (self?.value)!/(self?.maxValue)!) { 113 | 114 | let image = StyleKit.imageOfBackgroundImage(imageSize: (self?.view.bounds.size)!, colorFirst: fColor, colorSecond: sColor) 115 | DispatchQueue.main.async { 116 | self?.backgroundImageView.image = image 117 | } 118 | } 119 | } 120 | } 121 | 122 | fileprivate func midleColor(firstColor: UIColor, secondColor: UIColor, colorRatio: CGFloat) -> UIColor { 123 | 124 | var firstRed : CGFloat = 0 125 | var firstGreen : CGFloat = 0 126 | var firstBlue : CGFloat = 0 127 | var firstAlpha: CGFloat = 0 128 | 129 | firstColor.getRed(&firstRed, green: &firstGreen, blue: &firstBlue, alpha: &firstAlpha) 130 | 131 | var secondRed : CGFloat = 0 132 | var secondGreen : CGFloat = 0 133 | var secondBlue : CGFloat = 0 134 | var secondAlpha: CGFloat = 0 135 | 136 | secondColor.getRed(&secondRed, green: &secondGreen, blue: &secondBlue, alpha: &secondAlpha) 137 | 138 | let red = firstRed + (secondRed - firstRed) * colorRatio 139 | let green = firstGreen + (secondGreen - firstGreen) * colorRatio 140 | let blue = firstBlue + (secondBlue - firstBlue) * colorRatio 141 | 142 | let color = UIColor(red: CGFloat(red), green: CGFloat(green) , blue: CGFloat(blue), alpha: 1.000) 143 | 144 | return color 145 | } 146 | 147 | } 148 | 149 | // MARK: - UIGestureRecognizerDelegate 150 | 151 | extension TermViewController: UIGestureRecognizerDelegate { 152 | 153 | func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool { 154 | 155 | return true 156 | } 157 | } 158 | 159 | -------------------------------------------------------------------------------- /Example/KnobGestureRecognizer/ViewController.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | 4 | class ViewController: UIViewController { 5 | 6 | @IBOutlet var bpmControlView: BpmControlView! { 7 | didSet { 8 | bpmControlView.delegate = self 9 | } 10 | } 11 | 12 | @IBOutlet var bpmLabel: UILabel! 13 | 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | bpmLabel.text = "\(bpmControlView.bpmValue)" 17 | } 18 | } 19 | 20 | extension ViewController: BpmControlViewDelegate { 21 | 22 | func bpmControlView(_ view: BpmControlView, didChange state: BpmControlViewState) { 23 | bpmLabel.text = "\(view.bpmValue)" 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'KnobGestureRecognizer_Example' do 4 | pod 'KnobGestureRecognizer', :path => '../' 5 | 6 | target 'KnobGestureRecognizer_Tests' do 7 | inherit! :search_paths 8 | 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KnobGestureRecognizer (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - KnobGestureRecognizer (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KnobGestureRecognizer: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | KnobGestureRecognizer: b53cf4471daf13caf6b7120fc93fe599077bf873 13 | 14 | PODFILE CHECKSUM: 28226a64fa8569eb2c2c67005f7c3431131eac2e 15 | 16 | COCOAPODS: 1.2.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/KnobGestureRecognizer.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "KnobGestureRecognizer", 3 | "version": "0.1.0", 4 | "summary": "Knob Gesture Recognizer", 5 | "description": "Knob Gesture Recognizer detect circular gestures", 6 | "social_media_url": "https://twitter.com/TheMindStudios", 7 | "homepage": "https://github.com/TheMindStudios/KnobGestureRecognizer", 8 | "license": { 9 | "type": "MIT", 10 | "file": "LICENSE" 11 | }, 12 | "authors": { 13 | "hapichdima": "hapich@themindstudios.com" 14 | }, 15 | "source": { 16 | "git": "https://github.com/TheMindStudios/KnobGestureRecognizer.git", 17 | "tag": "0.1.0" 18 | }, 19 | "platforms": { 20 | "ios": "9.0" 21 | }, 22 | "source_files": "KnobGestureRecognizer/Classes/**/*" 23 | } 24 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KnobGestureRecognizer (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - KnobGestureRecognizer (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KnobGestureRecognizer: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | KnobGestureRecognizer: b53cf4471daf13caf6b7120fc93fe599077bf873 13 | 14 | PODFILE CHECKSUM: 28226a64fa8569eb2c2c67005f7c3431131eac2e 15 | 16 | COCOAPODS: 1.2.0 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 01D9DF443499E7A4A0272476A7BFBD63 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 11 | 089AB34D5B7949A2807EA5BB641A2BEA /* Pods-KnobGestureRecognizer_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = F2BEB24E8D8EF542ADD56CDA1A1C6405 /* Pods-KnobGestureRecognizer_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 12 | 0B0715FABD82320B265E652781E7EDE2 /* Pods-KnobGestureRecognizer_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 4E44D261C11DDF03670911D69FA87C70 /* Pods-KnobGestureRecognizer_Example-dummy.m */; }; 13 | 21AB02321AEC3AED19744C292E07BEDF /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 14 | 3D4A5CA7AC184343D791CF67862CFA66 /* Pods-KnobGestureRecognizer_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6EB96722EF28856F5223BCBBACD280AF /* Pods-KnobGestureRecognizer_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | 5B0DA35028F4151180E75FC9E5BF26BE /* KnobGestureRecognizer.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6BDB2AB591602E9F306E33C60B9E176 /* KnobGestureRecognizer.swift */; }; 16 | 876B8D722581056A3250D6824F0390D0 /* KnobGestureRecognizer-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = DFF07766D78659F1C55328FBF1A11922 /* KnobGestureRecognizer-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 17 | 8BE5C4407F3470C34DEFE1BD36648EAE /* KnobGestureRecognizer-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = BFF091F78D676567EBD3369CA567A33F /* KnobGestureRecognizer-dummy.m */; }; 18 | A867A1ED20B41E08D8BEDB8DCD41785A /* Pods-KnobGestureRecognizer_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = C5BDFEB4D15A77E661F85B45FEAFDAE9 /* Pods-KnobGestureRecognizer_Tests-dummy.m */; }; 19 | E9FB010D073121BABC839E296A0D5920 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */; }; 20 | /* End PBXBuildFile section */ 21 | 22 | /* Begin PBXContainerItemProxy section */ 23 | 3A24E82B2AA4A063DED52C325E2426BF /* PBXContainerItemProxy */ = { 24 | isa = PBXContainerItemProxy; 25 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 26 | proxyType = 1; 27 | remoteGlobalIDString = 44803A9C26A84D121A04C4A248FC9B70; 28 | remoteInfo = KnobGestureRecognizer; 29 | }; 30 | /* End PBXContainerItemProxy section */ 31 | 32 | /* Begin PBXFileReference section */ 33 | 01CBC1AC6F0431AA3E06F72471949007 /* Pods-KnobGestureRecognizer_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KnobGestureRecognizer_Example.release.xcconfig"; sourceTree = ""; }; 34 | 08DD329B973AE7D62ECA13106AD74573 /* Pods-KnobGestureRecognizer_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KnobGestureRecognizer_Tests-resources.sh"; sourceTree = ""; }; 35 | 10C3D1A325338969F63209F91E8C292C /* Pods-KnobGestureRecognizer_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-KnobGestureRecognizer_Tests-acknowledgements.markdown"; sourceTree = ""; }; 36 | 1281F3F9E11B1F0561A320E1275A7035 /* KnobGestureRecognizer-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KnobGestureRecognizer-prefix.pch"; sourceTree = ""; }; 37 | 129A16D68E7B4F787036C743E70F9B7E /* Pods-KnobGestureRecognizer_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-KnobGestureRecognizer_Tests.modulemap"; sourceTree = ""; }; 38 | 251DB0C91885CA11501CBAE276EA0C72 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 39 | 259556F318B5A4A7D33BA2CF4227EAD6 /* Pods_KnobGestureRecognizer_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_KnobGestureRecognizer_Example.framework; path = "Pods-KnobGestureRecognizer_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | 4533341ADCF200BA5DDD20B7917B3A24 /* KnobGestureRecognizer.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = KnobGestureRecognizer.modulemap; sourceTree = ""; }; 41 | 4E44D261C11DDF03670911D69FA87C70 /* Pods-KnobGestureRecognizer_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-KnobGestureRecognizer_Example-dummy.m"; sourceTree = ""; }; 42 | 5716A277477016DBAE4B535389FF4D4C /* KnobGestureRecognizer.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = KnobGestureRecognizer.framework; path = KnobGestureRecognizer.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 6DA1ACA2DA6CF9B23809C3B8CA680928 /* Pods-KnobGestureRecognizer_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-KnobGestureRecognizer_Tests-acknowledgements.plist"; sourceTree = ""; }; 44 | 6EB96722EF28856F5223BCBBACD280AF /* Pods-KnobGestureRecognizer_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-KnobGestureRecognizer_Example-umbrella.h"; sourceTree = ""; }; 45 | 860EEF1C775A25866F8139EAF4B3A4DE /* Pods-KnobGestureRecognizer_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KnobGestureRecognizer_Tests.debug.xcconfig"; sourceTree = ""; }; 46 | 87C3F3DFB3240D0601EB6BBCACC7D7B1 /* Pods-KnobGestureRecognizer_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-KnobGestureRecognizer_Example-acknowledgements.markdown"; sourceTree = ""; }; 47 | 88DA004E091F77E0C606400961F07259 /* KnobGestureRecognizer.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = KnobGestureRecognizer.xcconfig; sourceTree = ""; }; 48 | 8D0C8447D2FC1C178C3FD1B380E1E0B2 /* Pods-KnobGestureRecognizer_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KnobGestureRecognizer_Example.debug.xcconfig"; sourceTree = ""; }; 49 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 50 | 9633883852AFB22A45FF503D3B9FBAF2 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 51 | 9F5D0ACDD06AF66B0C4D1085FCD269C1 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 52 | AF147D99591967C9EA8EE7EB9CBC6DCA /* Pods-KnobGestureRecognizer_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KnobGestureRecognizer_Example-frameworks.sh"; sourceTree = ""; }; 53 | B5A28CC54ED0C1032C0E2875A3A05E5C /* Pods-KnobGestureRecognizer_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KnobGestureRecognizer_Tests.release.xcconfig"; sourceTree = ""; }; 54 | B6BDB2AB591602E9F306E33C60B9E176 /* KnobGestureRecognizer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = KnobGestureRecognizer.swift; sourceTree = ""; }; 55 | BFF091F78D676567EBD3369CA567A33F /* KnobGestureRecognizer-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "KnobGestureRecognizer-dummy.m"; sourceTree = ""; }; 56 | C5BDFEB4D15A77E661F85B45FEAFDAE9 /* Pods-KnobGestureRecognizer_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-KnobGestureRecognizer_Tests-dummy.m"; sourceTree = ""; }; 57 | CA0CBF5900139DFC6E128E1B6A90F9B6 /* Pods-KnobGestureRecognizer_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KnobGestureRecognizer_Example-resources.sh"; sourceTree = ""; }; 58 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; }; 59 | CE6642FDA9ECA72F3FC6DE4CA84F29B0 /* Pods-KnobGestureRecognizer_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KnobGestureRecognizer_Tests-frameworks.sh"; sourceTree = ""; }; 60 | D0213DAD641D3B646FA2D7914EA39E6F /* Pods-KnobGestureRecognizer_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-KnobGestureRecognizer_Example.modulemap"; sourceTree = ""; }; 61 | D69F0F7301218FA9718C6B3D4B046584 /* Pods_KnobGestureRecognizer_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_KnobGestureRecognizer_Tests.framework; path = "Pods-KnobGestureRecognizer_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 62 | DD23ADDA3896705243FBB5459B672965 /* Pods-KnobGestureRecognizer_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-KnobGestureRecognizer_Example-acknowledgements.plist"; sourceTree = ""; }; 63 | DFF07766D78659F1C55328FBF1A11922 /* KnobGestureRecognizer-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KnobGestureRecognizer-umbrella.h"; sourceTree = ""; }; 64 | F2BEB24E8D8EF542ADD56CDA1A1C6405 /* Pods-KnobGestureRecognizer_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-KnobGestureRecognizer_Tests-umbrella.h"; sourceTree = ""; }; 65 | /* End PBXFileReference section */ 66 | 67 | /* Begin PBXFrameworksBuildPhase section */ 68 | 86C065DBEB55F497B7BEB0EF798F928C /* Frameworks */ = { 69 | isa = PBXFrameworksBuildPhase; 70 | buildActionMask = 2147483647; 71 | files = ( 72 | 21AB02321AEC3AED19744C292E07BEDF /* Foundation.framework in Frameworks */, 73 | ); 74 | runOnlyForDeploymentPostprocessing = 0; 75 | }; 76 | 975887E29C43D98A4AC1F4DC2DFA625B /* Frameworks */ = { 77 | isa = PBXFrameworksBuildPhase; 78 | buildActionMask = 2147483647; 79 | files = ( 80 | E9FB010D073121BABC839E296A0D5920 /* Foundation.framework in Frameworks */, 81 | ); 82 | runOnlyForDeploymentPostprocessing = 0; 83 | }; 84 | A05F66AD85FB0F44D34AD0E5E735BCDE /* Frameworks */ = { 85 | isa = PBXFrameworksBuildPhase; 86 | buildActionMask = 2147483647; 87 | files = ( 88 | 01D9DF443499E7A4A0272476A7BFBD63 /* Foundation.framework in Frameworks */, 89 | ); 90 | runOnlyForDeploymentPostprocessing = 0; 91 | }; 92 | /* End PBXFrameworksBuildPhase section */ 93 | 94 | /* Begin PBXGroup section */ 95 | 199A26CDA200008BA0123B8FD7F3D8FA /* Targets Support Files */ = { 96 | isa = PBXGroup; 97 | children = ( 98 | 9C3DBCADD9E00B40E27E1296AFD3C700 /* Pods-KnobGestureRecognizer_Example */, 99 | 96E46B0B6F87AFD05A0E0B9BB17205B1 /* Pods-KnobGestureRecognizer_Tests */, 100 | ); 101 | name = "Targets Support Files"; 102 | sourceTree = ""; 103 | }; 104 | 2D7CC8467376837149A8B8947E85C388 /* KnobGestureRecognizer */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | F4FF3C179450D0B4C6D865EDB7BCA4EB /* KnobGestureRecognizer */, 108 | 83D58030FA93D42ECCEC597E2A48D522 /* Support Files */, 109 | ); 110 | name = KnobGestureRecognizer; 111 | path = ../..; 112 | sourceTree = ""; 113 | }; 114 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */ = { 115 | isa = PBXGroup; 116 | children = ( 117 | CBB3DE36805AF21409EC968A9691732F /* Foundation.framework */, 118 | ); 119 | name = iOS; 120 | sourceTree = ""; 121 | }; 122 | 7DB346D0F39D3F0E887471402A8071AB = { 123 | isa = PBXGroup; 124 | children = ( 125 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 126 | D32DC484F9FA0FCE049189B2FD2075C5 /* Development Pods */, 127 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */, 128 | 829D5EE003B07DA2879D5300D2B342E5 /* Products */, 129 | 199A26CDA200008BA0123B8FD7F3D8FA /* Targets Support Files */, 130 | ); 131 | sourceTree = ""; 132 | }; 133 | 829D5EE003B07DA2879D5300D2B342E5 /* Products */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 5716A277477016DBAE4B535389FF4D4C /* KnobGestureRecognizer.framework */, 137 | 259556F318B5A4A7D33BA2CF4227EAD6 /* Pods_KnobGestureRecognizer_Example.framework */, 138 | D69F0F7301218FA9718C6B3D4B046584 /* Pods_KnobGestureRecognizer_Tests.framework */, 139 | ); 140 | name = Products; 141 | sourceTree = ""; 142 | }; 143 | 83D58030FA93D42ECCEC597E2A48D522 /* Support Files */ = { 144 | isa = PBXGroup; 145 | children = ( 146 | 251DB0C91885CA11501CBAE276EA0C72 /* Info.plist */, 147 | 4533341ADCF200BA5DDD20B7917B3A24 /* KnobGestureRecognizer.modulemap */, 148 | 88DA004E091F77E0C606400961F07259 /* KnobGestureRecognizer.xcconfig */, 149 | BFF091F78D676567EBD3369CA567A33F /* KnobGestureRecognizer-dummy.m */, 150 | 1281F3F9E11B1F0561A320E1275A7035 /* KnobGestureRecognizer-prefix.pch */, 151 | DFF07766D78659F1C55328FBF1A11922 /* KnobGestureRecognizer-umbrella.h */, 152 | ); 153 | name = "Support Files"; 154 | path = "Example/Pods/Target Support Files/KnobGestureRecognizer"; 155 | sourceTree = ""; 156 | }; 157 | 96E46B0B6F87AFD05A0E0B9BB17205B1 /* Pods-KnobGestureRecognizer_Tests */ = { 158 | isa = PBXGroup; 159 | children = ( 160 | 9633883852AFB22A45FF503D3B9FBAF2 /* Info.plist */, 161 | 129A16D68E7B4F787036C743E70F9B7E /* Pods-KnobGestureRecognizer_Tests.modulemap */, 162 | 10C3D1A325338969F63209F91E8C292C /* Pods-KnobGestureRecognizer_Tests-acknowledgements.markdown */, 163 | 6DA1ACA2DA6CF9B23809C3B8CA680928 /* Pods-KnobGestureRecognizer_Tests-acknowledgements.plist */, 164 | C5BDFEB4D15A77E661F85B45FEAFDAE9 /* Pods-KnobGestureRecognizer_Tests-dummy.m */, 165 | CE6642FDA9ECA72F3FC6DE4CA84F29B0 /* Pods-KnobGestureRecognizer_Tests-frameworks.sh */, 166 | 08DD329B973AE7D62ECA13106AD74573 /* Pods-KnobGestureRecognizer_Tests-resources.sh */, 167 | F2BEB24E8D8EF542ADD56CDA1A1C6405 /* Pods-KnobGestureRecognizer_Tests-umbrella.h */, 168 | 860EEF1C775A25866F8139EAF4B3A4DE /* Pods-KnobGestureRecognizer_Tests.debug.xcconfig */, 169 | B5A28CC54ED0C1032C0E2875A3A05E5C /* Pods-KnobGestureRecognizer_Tests.release.xcconfig */, 170 | ); 171 | name = "Pods-KnobGestureRecognizer_Tests"; 172 | path = "Target Support Files/Pods-KnobGestureRecognizer_Tests"; 173 | sourceTree = ""; 174 | }; 175 | 9C3DBCADD9E00B40E27E1296AFD3C700 /* Pods-KnobGestureRecognizer_Example */ = { 176 | isa = PBXGroup; 177 | children = ( 178 | 9F5D0ACDD06AF66B0C4D1085FCD269C1 /* Info.plist */, 179 | D0213DAD641D3B646FA2D7914EA39E6F /* Pods-KnobGestureRecognizer_Example.modulemap */, 180 | 87C3F3DFB3240D0601EB6BBCACC7D7B1 /* Pods-KnobGestureRecognizer_Example-acknowledgements.markdown */, 181 | DD23ADDA3896705243FBB5459B672965 /* Pods-KnobGestureRecognizer_Example-acknowledgements.plist */, 182 | 4E44D261C11DDF03670911D69FA87C70 /* Pods-KnobGestureRecognizer_Example-dummy.m */, 183 | AF147D99591967C9EA8EE7EB9CBC6DCA /* Pods-KnobGestureRecognizer_Example-frameworks.sh */, 184 | CA0CBF5900139DFC6E128E1B6A90F9B6 /* Pods-KnobGestureRecognizer_Example-resources.sh */, 185 | 6EB96722EF28856F5223BCBBACD280AF /* Pods-KnobGestureRecognizer_Example-umbrella.h */, 186 | 8D0C8447D2FC1C178C3FD1B380E1E0B2 /* Pods-KnobGestureRecognizer_Example.debug.xcconfig */, 187 | 01CBC1AC6F0431AA3E06F72471949007 /* Pods-KnobGestureRecognizer_Example.release.xcconfig */, 188 | ); 189 | name = "Pods-KnobGestureRecognizer_Example"; 190 | path = "Target Support Files/Pods-KnobGestureRecognizer_Example"; 191 | sourceTree = ""; 192 | }; 193 | BC3CA7F9E30CC8F7E2DD044DD34432FC /* Frameworks */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | 7531C8F8DE19F1AA3C8A7AC97A91DC29 /* iOS */, 197 | ); 198 | name = Frameworks; 199 | sourceTree = ""; 200 | }; 201 | C461390B0DE5E87FB70602CEED410D5C /* Classes */ = { 202 | isa = PBXGroup; 203 | children = ( 204 | B6BDB2AB591602E9F306E33C60B9E176 /* KnobGestureRecognizer.swift */, 205 | ); 206 | name = Classes; 207 | path = Classes; 208 | sourceTree = ""; 209 | }; 210 | D32DC484F9FA0FCE049189B2FD2075C5 /* Development Pods */ = { 211 | isa = PBXGroup; 212 | children = ( 213 | 2D7CC8467376837149A8B8947E85C388 /* KnobGestureRecognizer */, 214 | ); 215 | name = "Development Pods"; 216 | sourceTree = ""; 217 | }; 218 | F4FF3C179450D0B4C6D865EDB7BCA4EB /* KnobGestureRecognizer */ = { 219 | isa = PBXGroup; 220 | children = ( 221 | C461390B0DE5E87FB70602CEED410D5C /* Classes */, 222 | ); 223 | name = KnobGestureRecognizer; 224 | path = KnobGestureRecognizer; 225 | sourceTree = ""; 226 | }; 227 | /* End PBXGroup section */ 228 | 229 | /* Begin PBXHeadersBuildPhase section */ 230 | C83C197C7C959E77D4549438DAD1AD72 /* Headers */ = { 231 | isa = PBXHeadersBuildPhase; 232 | buildActionMask = 2147483647; 233 | files = ( 234 | 089AB34D5B7949A2807EA5BB641A2BEA /* Pods-KnobGestureRecognizer_Tests-umbrella.h in Headers */, 235 | ); 236 | runOnlyForDeploymentPostprocessing = 0; 237 | }; 238 | F4E74A96D806664EE0B45F599284E91E /* Headers */ = { 239 | isa = PBXHeadersBuildPhase; 240 | buildActionMask = 2147483647; 241 | files = ( 242 | 3D4A5CA7AC184343D791CF67862CFA66 /* Pods-KnobGestureRecognizer_Example-umbrella.h in Headers */, 243 | ); 244 | runOnlyForDeploymentPostprocessing = 0; 245 | }; 246 | F7690C674927812938C779234CEE09F5 /* Headers */ = { 247 | isa = PBXHeadersBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | 876B8D722581056A3250D6824F0390D0 /* KnobGestureRecognizer-umbrella.h in Headers */, 251 | ); 252 | runOnlyForDeploymentPostprocessing = 0; 253 | }; 254 | /* End PBXHeadersBuildPhase section */ 255 | 256 | /* Begin PBXNativeTarget section */ 257 | 330D9D94FD17E8F21F2E6B386567A6FD /* Pods-KnobGestureRecognizer_Tests */ = { 258 | isa = PBXNativeTarget; 259 | buildConfigurationList = DF1B6D8560B7AD2D8BE7CD455D3ADBDE /* Build configuration list for PBXNativeTarget "Pods-KnobGestureRecognizer_Tests" */; 260 | buildPhases = ( 261 | 06812BDB82D90044BE2B902F12B49196 /* Sources */, 262 | 86C065DBEB55F497B7BEB0EF798F928C /* Frameworks */, 263 | C83C197C7C959E77D4549438DAD1AD72 /* Headers */, 264 | ); 265 | buildRules = ( 266 | ); 267 | dependencies = ( 268 | ); 269 | name = "Pods-KnobGestureRecognizer_Tests"; 270 | productName = "Pods-KnobGestureRecognizer_Tests"; 271 | productReference = D69F0F7301218FA9718C6B3D4B046584 /* Pods_KnobGestureRecognizer_Tests.framework */; 272 | productType = "com.apple.product-type.framework"; 273 | }; 274 | 44803A9C26A84D121A04C4A248FC9B70 /* KnobGestureRecognizer */ = { 275 | isa = PBXNativeTarget; 276 | buildConfigurationList = 951520905BC912D20D341DC710DF3628 /* Build configuration list for PBXNativeTarget "KnobGestureRecognizer" */; 277 | buildPhases = ( 278 | F13F27BEABC18520546F611AF9BFA0DE /* Sources */, 279 | A05F66AD85FB0F44D34AD0E5E735BCDE /* Frameworks */, 280 | F7690C674927812938C779234CEE09F5 /* Headers */, 281 | ); 282 | buildRules = ( 283 | ); 284 | dependencies = ( 285 | ); 286 | name = KnobGestureRecognizer; 287 | productName = KnobGestureRecognizer; 288 | productReference = 5716A277477016DBAE4B535389FF4D4C /* KnobGestureRecognizer.framework */; 289 | productType = "com.apple.product-type.framework"; 290 | }; 291 | C418E81DCA5DADD0ADD21A9B5DAAC8EE /* Pods-KnobGestureRecognizer_Example */ = { 292 | isa = PBXNativeTarget; 293 | buildConfigurationList = 28B8AF09A18124CFE47D37EF2D5EDD7E /* Build configuration list for PBXNativeTarget "Pods-KnobGestureRecognizer_Example" */; 294 | buildPhases = ( 295 | E356801633B91F90398C3F801257CECA /* Sources */, 296 | 975887E29C43D98A4AC1F4DC2DFA625B /* Frameworks */, 297 | F4E74A96D806664EE0B45F599284E91E /* Headers */, 298 | ); 299 | buildRules = ( 300 | ); 301 | dependencies = ( 302 | D889A1934B70562420D1CBCBD2EED7DA /* PBXTargetDependency */, 303 | ); 304 | name = "Pods-KnobGestureRecognizer_Example"; 305 | productName = "Pods-KnobGestureRecognizer_Example"; 306 | productReference = 259556F318B5A4A7D33BA2CF4227EAD6 /* Pods_KnobGestureRecognizer_Example.framework */; 307 | productType = "com.apple.product-type.framework"; 308 | }; 309 | /* End PBXNativeTarget section */ 310 | 311 | /* Begin PBXProject section */ 312 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 313 | isa = PBXProject; 314 | attributes = { 315 | LastSwiftUpdateCheck = 0730; 316 | LastUpgradeCheck = 0700; 317 | }; 318 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 319 | compatibilityVersion = "Xcode 3.2"; 320 | developmentRegion = English; 321 | hasScannedForEncodings = 0; 322 | knownRegions = ( 323 | en, 324 | ); 325 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 326 | productRefGroup = 829D5EE003B07DA2879D5300D2B342E5 /* Products */; 327 | projectDirPath = ""; 328 | projectRoot = ""; 329 | targets = ( 330 | 44803A9C26A84D121A04C4A248FC9B70 /* KnobGestureRecognizer */, 331 | C418E81DCA5DADD0ADD21A9B5DAAC8EE /* Pods-KnobGestureRecognizer_Example */, 332 | 330D9D94FD17E8F21F2E6B386567A6FD /* Pods-KnobGestureRecognizer_Tests */, 333 | ); 334 | }; 335 | /* End PBXProject section */ 336 | 337 | /* Begin PBXSourcesBuildPhase section */ 338 | 06812BDB82D90044BE2B902F12B49196 /* Sources */ = { 339 | isa = PBXSourcesBuildPhase; 340 | buildActionMask = 2147483647; 341 | files = ( 342 | A867A1ED20B41E08D8BEDB8DCD41785A /* Pods-KnobGestureRecognizer_Tests-dummy.m in Sources */, 343 | ); 344 | runOnlyForDeploymentPostprocessing = 0; 345 | }; 346 | E356801633B91F90398C3F801257CECA /* Sources */ = { 347 | isa = PBXSourcesBuildPhase; 348 | buildActionMask = 2147483647; 349 | files = ( 350 | 0B0715FABD82320B265E652781E7EDE2 /* Pods-KnobGestureRecognizer_Example-dummy.m in Sources */, 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | }; 354 | F13F27BEABC18520546F611AF9BFA0DE /* Sources */ = { 355 | isa = PBXSourcesBuildPhase; 356 | buildActionMask = 2147483647; 357 | files = ( 358 | 8BE5C4407F3470C34DEFE1BD36648EAE /* KnobGestureRecognizer-dummy.m in Sources */, 359 | 5B0DA35028F4151180E75FC9E5BF26BE /* KnobGestureRecognizer.swift in Sources */, 360 | ); 361 | runOnlyForDeploymentPostprocessing = 0; 362 | }; 363 | /* End PBXSourcesBuildPhase section */ 364 | 365 | /* Begin PBXTargetDependency section */ 366 | D889A1934B70562420D1CBCBD2EED7DA /* PBXTargetDependency */ = { 367 | isa = PBXTargetDependency; 368 | name = KnobGestureRecognizer; 369 | target = 44803A9C26A84D121A04C4A248FC9B70 /* KnobGestureRecognizer */; 370 | targetProxy = 3A24E82B2AA4A063DED52C325E2426BF /* PBXContainerItemProxy */; 371 | }; 372 | /* End PBXTargetDependency section */ 373 | 374 | /* Begin XCBuildConfiguration section */ 375 | 36E40BC93223DB79D65DC7396DDD8F68 /* Release */ = { 376 | isa = XCBuildConfiguration; 377 | baseConfigurationReference = 01CBC1AC6F0431AA3E06F72471949007 /* Pods-KnobGestureRecognizer_Example.release.xcconfig */; 378 | buildSettings = { 379 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 380 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 381 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 382 | CURRENT_PROJECT_VERSION = 1; 383 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 384 | DEFINES_MODULE = YES; 385 | DYLIB_COMPATIBILITY_VERSION = 1; 386 | DYLIB_CURRENT_VERSION = 1; 387 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 388 | ENABLE_STRICT_OBJC_MSGSEND = YES; 389 | GCC_NO_COMMON_BLOCKS = YES; 390 | INFOPLIST_FILE = "Target Support Files/Pods-KnobGestureRecognizer_Example/Info.plist"; 391 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 392 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 393 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 394 | MACH_O_TYPE = staticlib; 395 | MODULEMAP_FILE = "Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example.modulemap"; 396 | MTL_ENABLE_DEBUG_INFO = NO; 397 | OTHER_LDFLAGS = ""; 398 | OTHER_LIBTOOLFLAGS = ""; 399 | PODS_ROOT = "$(SRCROOT)"; 400 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 401 | PRODUCT_NAME = Pods_KnobGestureRecognizer_Example; 402 | SDKROOT = iphoneos; 403 | SKIP_INSTALL = YES; 404 | TARGETED_DEVICE_FAMILY = "1,2"; 405 | VERSIONING_SYSTEM = "apple-generic"; 406 | VERSION_INFO_PREFIX = ""; 407 | }; 408 | name = Release; 409 | }; 410 | 59B042A655B7C20CBAB90E385BF4E4C7 /* Debug */ = { 411 | isa = XCBuildConfiguration; 412 | buildSettings = { 413 | ALWAYS_SEARCH_USER_PATHS = NO; 414 | CLANG_ANALYZER_NONNULL = YES; 415 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 416 | CLANG_CXX_LIBRARY = "libc++"; 417 | CLANG_ENABLE_MODULES = YES; 418 | CLANG_ENABLE_OBJC_ARC = YES; 419 | CLANG_WARN_BOOL_CONVERSION = YES; 420 | CLANG_WARN_CONSTANT_CONVERSION = YES; 421 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 422 | CLANG_WARN_EMPTY_BODY = YES; 423 | CLANG_WARN_ENUM_CONVERSION = YES; 424 | CLANG_WARN_INT_CONVERSION = YES; 425 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 426 | CLANG_WARN_UNREACHABLE_CODE = YES; 427 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 428 | CODE_SIGNING_REQUIRED = NO; 429 | COPY_PHASE_STRIP = NO; 430 | ENABLE_TESTABILITY = YES; 431 | GCC_C_LANGUAGE_STANDARD = gnu99; 432 | GCC_DYNAMIC_NO_PIC = NO; 433 | GCC_OPTIMIZATION_LEVEL = 0; 434 | GCC_PREPROCESSOR_DEFINITIONS = ( 435 | "POD_CONFIGURATION_DEBUG=1", 436 | "DEBUG=1", 437 | "$(inherited)", 438 | ); 439 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 440 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 441 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 442 | GCC_WARN_UNDECLARED_SELECTOR = YES; 443 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 444 | GCC_WARN_UNUSED_FUNCTION = YES; 445 | GCC_WARN_UNUSED_VARIABLE = YES; 446 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 447 | ONLY_ACTIVE_ARCH = YES; 448 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 449 | STRIP_INSTALLED_PRODUCT = NO; 450 | SYMROOT = "${SRCROOT}/../build"; 451 | }; 452 | name = Debug; 453 | }; 454 | 8DAD7F251E339FA9DF3564C34CA6514E /* Release */ = { 455 | isa = XCBuildConfiguration; 456 | baseConfigurationReference = 88DA004E091F77E0C606400961F07259 /* KnobGestureRecognizer.xcconfig */; 457 | buildSettings = { 458 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 459 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 460 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 461 | CURRENT_PROJECT_VERSION = 1; 462 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 463 | DEFINES_MODULE = YES; 464 | DYLIB_COMPATIBILITY_VERSION = 1; 465 | DYLIB_CURRENT_VERSION = 1; 466 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 467 | ENABLE_STRICT_OBJC_MSGSEND = YES; 468 | GCC_NO_COMMON_BLOCKS = YES; 469 | GCC_PREFIX_HEADER = "Target Support Files/KnobGestureRecognizer/KnobGestureRecognizer-prefix.pch"; 470 | INFOPLIST_FILE = "Target Support Files/KnobGestureRecognizer/Info.plist"; 471 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 472 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 473 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 474 | MODULEMAP_FILE = "Target Support Files/KnobGestureRecognizer/KnobGestureRecognizer.modulemap"; 475 | MTL_ENABLE_DEBUG_INFO = NO; 476 | PRODUCT_NAME = KnobGestureRecognizer; 477 | SDKROOT = iphoneos; 478 | SKIP_INSTALL = YES; 479 | SWIFT_VERSION = 3.0; 480 | TARGETED_DEVICE_FAMILY = "1,2"; 481 | VERSIONING_SYSTEM = "apple-generic"; 482 | VERSION_INFO_PREFIX = ""; 483 | }; 484 | name = Release; 485 | }; 486 | A9014FC46EB56847938F862B31429FC5 /* Debug */ = { 487 | isa = XCBuildConfiguration; 488 | baseConfigurationReference = 88DA004E091F77E0C606400961F07259 /* KnobGestureRecognizer.xcconfig */; 489 | buildSettings = { 490 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 491 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 492 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 493 | CURRENT_PROJECT_VERSION = 1; 494 | DEBUG_INFORMATION_FORMAT = dwarf; 495 | DEFINES_MODULE = YES; 496 | DYLIB_COMPATIBILITY_VERSION = 1; 497 | DYLIB_CURRENT_VERSION = 1; 498 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 499 | ENABLE_STRICT_OBJC_MSGSEND = YES; 500 | GCC_NO_COMMON_BLOCKS = YES; 501 | GCC_PREFIX_HEADER = "Target Support Files/KnobGestureRecognizer/KnobGestureRecognizer-prefix.pch"; 502 | INFOPLIST_FILE = "Target Support Files/KnobGestureRecognizer/Info.plist"; 503 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 504 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 505 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 506 | MODULEMAP_FILE = "Target Support Files/KnobGestureRecognizer/KnobGestureRecognizer.modulemap"; 507 | MTL_ENABLE_DEBUG_INFO = YES; 508 | PRODUCT_NAME = KnobGestureRecognizer; 509 | SDKROOT = iphoneos; 510 | SKIP_INSTALL = YES; 511 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 512 | SWIFT_VERSION = 3.0; 513 | TARGETED_DEVICE_FAMILY = "1,2"; 514 | VERSIONING_SYSTEM = "apple-generic"; 515 | VERSION_INFO_PREFIX = ""; 516 | }; 517 | name = Debug; 518 | }; 519 | AFA5275C837AACC396F9FF6199A4C1AF /* Debug */ = { 520 | isa = XCBuildConfiguration; 521 | baseConfigurationReference = 8D0C8447D2FC1C178C3FD1B380E1E0B2 /* Pods-KnobGestureRecognizer_Example.debug.xcconfig */; 522 | buildSettings = { 523 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 524 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 525 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 526 | CURRENT_PROJECT_VERSION = 1; 527 | DEBUG_INFORMATION_FORMAT = dwarf; 528 | DEFINES_MODULE = YES; 529 | DYLIB_COMPATIBILITY_VERSION = 1; 530 | DYLIB_CURRENT_VERSION = 1; 531 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 532 | ENABLE_STRICT_OBJC_MSGSEND = YES; 533 | GCC_NO_COMMON_BLOCKS = YES; 534 | INFOPLIST_FILE = "Target Support Files/Pods-KnobGestureRecognizer_Example/Info.plist"; 535 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 536 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 537 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 538 | MACH_O_TYPE = staticlib; 539 | MODULEMAP_FILE = "Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example.modulemap"; 540 | MTL_ENABLE_DEBUG_INFO = YES; 541 | OTHER_LDFLAGS = ""; 542 | OTHER_LIBTOOLFLAGS = ""; 543 | PODS_ROOT = "$(SRCROOT)"; 544 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 545 | PRODUCT_NAME = Pods_KnobGestureRecognizer_Example; 546 | SDKROOT = iphoneos; 547 | SKIP_INSTALL = YES; 548 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 549 | TARGETED_DEVICE_FAMILY = "1,2"; 550 | VERSIONING_SYSTEM = "apple-generic"; 551 | VERSION_INFO_PREFIX = ""; 552 | }; 553 | name = Debug; 554 | }; 555 | B7324857C38B065FEB1EEE3105C2367A /* Release */ = { 556 | isa = XCBuildConfiguration; 557 | buildSettings = { 558 | ALWAYS_SEARCH_USER_PATHS = NO; 559 | CLANG_ANALYZER_NONNULL = YES; 560 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 561 | CLANG_CXX_LIBRARY = "libc++"; 562 | CLANG_ENABLE_MODULES = YES; 563 | CLANG_ENABLE_OBJC_ARC = YES; 564 | CLANG_WARN_BOOL_CONVERSION = YES; 565 | CLANG_WARN_CONSTANT_CONVERSION = YES; 566 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 567 | CLANG_WARN_EMPTY_BODY = YES; 568 | CLANG_WARN_ENUM_CONVERSION = YES; 569 | CLANG_WARN_INT_CONVERSION = YES; 570 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 571 | CLANG_WARN_UNREACHABLE_CODE = YES; 572 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 573 | CODE_SIGNING_REQUIRED = NO; 574 | COPY_PHASE_STRIP = YES; 575 | ENABLE_NS_ASSERTIONS = NO; 576 | GCC_C_LANGUAGE_STANDARD = gnu99; 577 | GCC_PREPROCESSOR_DEFINITIONS = ( 578 | "POD_CONFIGURATION_RELEASE=1", 579 | "$(inherited)", 580 | ); 581 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 582 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 583 | GCC_WARN_UNDECLARED_SELECTOR = YES; 584 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 585 | GCC_WARN_UNUSED_FUNCTION = YES; 586 | GCC_WARN_UNUSED_VARIABLE = YES; 587 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 588 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 589 | STRIP_INSTALLED_PRODUCT = NO; 590 | SYMROOT = "${SRCROOT}/../build"; 591 | VALIDATE_PRODUCT = YES; 592 | }; 593 | name = Release; 594 | }; 595 | DC94ECDE05FBE7F286F2AC77D487F5FF /* Debug */ = { 596 | isa = XCBuildConfiguration; 597 | baseConfigurationReference = 860EEF1C775A25866F8139EAF4B3A4DE /* Pods-KnobGestureRecognizer_Tests.debug.xcconfig */; 598 | buildSettings = { 599 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 600 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 601 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 602 | CURRENT_PROJECT_VERSION = 1; 603 | DEBUG_INFORMATION_FORMAT = dwarf; 604 | DEFINES_MODULE = YES; 605 | DYLIB_COMPATIBILITY_VERSION = 1; 606 | DYLIB_CURRENT_VERSION = 1; 607 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 608 | ENABLE_STRICT_OBJC_MSGSEND = YES; 609 | GCC_NO_COMMON_BLOCKS = YES; 610 | INFOPLIST_FILE = "Target Support Files/Pods-KnobGestureRecognizer_Tests/Info.plist"; 611 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 612 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 613 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 614 | MACH_O_TYPE = staticlib; 615 | MODULEMAP_FILE = "Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests.modulemap"; 616 | MTL_ENABLE_DEBUG_INFO = YES; 617 | OTHER_LDFLAGS = ""; 618 | OTHER_LIBTOOLFLAGS = ""; 619 | PODS_ROOT = "$(SRCROOT)"; 620 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 621 | PRODUCT_NAME = Pods_KnobGestureRecognizer_Tests; 622 | SDKROOT = iphoneos; 623 | SKIP_INSTALL = YES; 624 | TARGETED_DEVICE_FAMILY = "1,2"; 625 | VERSIONING_SYSTEM = "apple-generic"; 626 | VERSION_INFO_PREFIX = ""; 627 | }; 628 | name = Debug; 629 | }; 630 | E147DF1E8E4D99848D2EE2C06F14D00C /* Release */ = { 631 | isa = XCBuildConfiguration; 632 | baseConfigurationReference = B5A28CC54ED0C1032C0E2875A3A05E5C /* Pods-KnobGestureRecognizer_Tests.release.xcconfig */; 633 | buildSettings = { 634 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 635 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 636 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 637 | CURRENT_PROJECT_VERSION = 1; 638 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 639 | DEFINES_MODULE = YES; 640 | DYLIB_COMPATIBILITY_VERSION = 1; 641 | DYLIB_CURRENT_VERSION = 1; 642 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 643 | ENABLE_STRICT_OBJC_MSGSEND = YES; 644 | GCC_NO_COMMON_BLOCKS = YES; 645 | INFOPLIST_FILE = "Target Support Files/Pods-KnobGestureRecognizer_Tests/Info.plist"; 646 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 647 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 648 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 649 | MACH_O_TYPE = staticlib; 650 | MODULEMAP_FILE = "Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests.modulemap"; 651 | MTL_ENABLE_DEBUG_INFO = NO; 652 | OTHER_LDFLAGS = ""; 653 | OTHER_LIBTOOLFLAGS = ""; 654 | PODS_ROOT = "$(SRCROOT)"; 655 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 656 | PRODUCT_NAME = Pods_KnobGestureRecognizer_Tests; 657 | SDKROOT = iphoneos; 658 | SKIP_INSTALL = YES; 659 | TARGETED_DEVICE_FAMILY = "1,2"; 660 | VERSIONING_SYSTEM = "apple-generic"; 661 | VERSION_INFO_PREFIX = ""; 662 | }; 663 | name = Release; 664 | }; 665 | /* End XCBuildConfiguration section */ 666 | 667 | /* Begin XCConfigurationList section */ 668 | 28B8AF09A18124CFE47D37EF2D5EDD7E /* Build configuration list for PBXNativeTarget "Pods-KnobGestureRecognizer_Example" */ = { 669 | isa = XCConfigurationList; 670 | buildConfigurations = ( 671 | AFA5275C837AACC396F9FF6199A4C1AF /* Debug */, 672 | 36E40BC93223DB79D65DC7396DDD8F68 /* Release */, 673 | ); 674 | defaultConfigurationIsVisible = 0; 675 | defaultConfigurationName = Release; 676 | }; 677 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 678 | isa = XCConfigurationList; 679 | buildConfigurations = ( 680 | 59B042A655B7C20CBAB90E385BF4E4C7 /* Debug */, 681 | B7324857C38B065FEB1EEE3105C2367A /* Release */, 682 | ); 683 | defaultConfigurationIsVisible = 0; 684 | defaultConfigurationName = Release; 685 | }; 686 | 951520905BC912D20D341DC710DF3628 /* Build configuration list for PBXNativeTarget "KnobGestureRecognizer" */ = { 687 | isa = XCConfigurationList; 688 | buildConfigurations = ( 689 | A9014FC46EB56847938F862B31429FC5 /* Debug */, 690 | 8DAD7F251E339FA9DF3564C34CA6514E /* Release */, 691 | ); 692 | defaultConfigurationIsVisible = 0; 693 | defaultConfigurationName = Release; 694 | }; 695 | DF1B6D8560B7AD2D8BE7CD455D3ADBDE /* Build configuration list for PBXNativeTarget "Pods-KnobGestureRecognizer_Tests" */ = { 696 | isa = XCConfigurationList; 697 | buildConfigurations = ( 698 | DC94ECDE05FBE7F286F2AC77D487F5FF /* Debug */, 699 | E147DF1E8E4D99848D2EE2C06F14D00C /* Release */, 700 | ); 701 | defaultConfigurationIsVisible = 0; 702 | defaultConfigurationName = Release; 703 | }; 704 | /* End XCConfigurationList section */ 705 | }; 706 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 707 | } 708 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KnobGestureRecognizer/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KnobGestureRecognizer/KnobGestureRecognizer-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_KnobGestureRecognizer : NSObject 3 | @end 4 | @implementation PodsDummy_KnobGestureRecognizer 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KnobGestureRecognizer/KnobGestureRecognizer-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/KnobGestureRecognizer/KnobGestureRecognizer-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 KnobGestureRecognizerVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char KnobGestureRecognizerVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KnobGestureRecognizer/KnobGestureRecognizer.modulemap: -------------------------------------------------------------------------------- 1 | framework module KnobGestureRecognizer { 2 | umbrella header "KnobGestureRecognizer-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KnobGestureRecognizer/KnobGestureRecognizer.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/KnobGestureRecognizer 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_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-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## KnobGestureRecognizer 5 | 6 | The MIT License (MIT) 7 | 8 | Copyright (c) 2017 TheMindStudios 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 18 | all 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 26 | THE SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_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 | The MIT License (MIT) 18 | 19 | Copyright (c) 2017 TheMindStudios 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 29 | all 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 37 | THE SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | KnobGestureRecognizer 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-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_KnobGestureRecognizer_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_KnobGestureRecognizer_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | 91 | if [[ "$CONFIGURATION" == "Debug" ]]; then 92 | install_framework "$BUILT_PRODUCTS_DIR/KnobGestureRecognizer/KnobGestureRecognizer.framework" 93 | fi 94 | if [[ "$CONFIGURATION" == "Release" ]]; then 95 | install_framework "$BUILT_PRODUCTS_DIR/KnobGestureRecognizer/KnobGestureRecognizer.framework" 96 | fi 97 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 98 | wait 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 25 | TARGET_DEVICE_ARGS="--target-device mac" 26 | ;; 27 | esac 28 | 29 | install_resource() 30 | { 31 | if [[ "$1" = /* ]] ; then 32 | RESOURCE_PATH="$1" 33 | else 34 | RESOURCE_PATH="${PODS_ROOT}/$1" 35 | fi 36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 37 | cat << EOM 38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 39 | EOM 40 | exit 1 41 | fi 42 | case $RESOURCE_PATH in 43 | *.storyboard) 44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 46 | ;; 47 | *.xib) 48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 50 | ;; 51 | *.framework) 52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | ;; 57 | *.xcdatamodel) 58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 60 | ;; 61 | *.xcdatamodeld) 62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 64 | ;; 65 | *.xcmappingmodel) 66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 68 | ;; 69 | *.xcassets) 70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 72 | ;; 73 | *) 74 | echo "$RESOURCE_PATH" 75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 76 | ;; 77 | esac 78 | } 79 | 80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | fi 86 | rm -f "$RESOURCES_TO_COPY" 87 | 88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 89 | then 90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 92 | while read line; do 93 | if [[ $line != "${PODS_ROOT}*" ]]; then 94 | XCASSET_FILES+=("$line") 95 | fi 96 | done <<<"$OTHER_XCASSETS" 97 | 98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_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_KnobGestureRecognizer_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_KnobGestureRecognizer_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KnobGestureRecognizer" 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/KnobGestureRecognizer/KnobGestureRecognizer.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "KnobGestureRecognizer" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_KnobGestureRecognizer_Example { 2 | umbrella header "Pods-KnobGestureRecognizer_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Example/Pods-KnobGestureRecognizer_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KnobGestureRecognizer" 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/KnobGestureRecognizer/KnobGestureRecognizer.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "KnobGestureRecognizer" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_ROOT = ${SRCROOT}/Pods 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_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-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_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-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_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-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_KnobGestureRecognizer_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_KnobGestureRecognizer_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 63 | 64 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 65 | code_sign_cmd="$code_sign_cmd &" 66 | fi 67 | echo "$code_sign_cmd" 68 | eval "$code_sign_cmd" 69 | fi 70 | } 71 | 72 | # Strip invalid architectures 73 | strip_invalid_archs() { 74 | binary="$1" 75 | # Get architectures for current file 76 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 77 | stripped="" 78 | for arch in $archs; do 79 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 80 | # Strip non-valid architectures in-place 81 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 82 | stripped="$stripped $arch" 83 | fi 84 | done 85 | if [[ "$stripped" ]]; then 86 | echo "Stripped $binary of architectures:$stripped" 87 | fi 88 | } 89 | 90 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 91 | wait 92 | fi 93 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | 3) 22 | TARGET_DEVICE_ARGS="--target-device tv" 23 | ;; 24 | *) 25 | TARGET_DEVICE_ARGS="--target-device mac" 26 | ;; 27 | esac 28 | 29 | install_resource() 30 | { 31 | if [[ "$1" = /* ]] ; then 32 | RESOURCE_PATH="$1" 33 | else 34 | RESOURCE_PATH="${PODS_ROOT}/$1" 35 | fi 36 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 37 | cat << EOM 38 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 39 | EOM 40 | exit 1 41 | fi 42 | case $RESOURCE_PATH in 43 | *.storyboard) 44 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 45 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 46 | ;; 47 | *.xib) 48 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 49 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 50 | ;; 51 | *.framework) 52 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 54 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 55 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 56 | ;; 57 | *.xcdatamodel) 58 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 59 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 60 | ;; 61 | *.xcdatamodeld) 62 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 63 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 64 | ;; 65 | *.xcmappingmodel) 66 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 67 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 68 | ;; 69 | *.xcassets) 70 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 71 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 72 | ;; 73 | *) 74 | echo "$RESOURCE_PATH" 75 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 76 | ;; 77 | esac 78 | } 79 | 80 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 83 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 84 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 85 | fi 86 | rm -f "$RESOURCES_TO_COPY" 87 | 88 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 89 | then 90 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 91 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 92 | while read line; do 93 | if [[ $line != "${PODS_ROOT}*" ]]; then 94 | XCASSET_FILES+=("$line") 95 | fi 96 | done <<<"$OTHER_XCASSETS" 97 | 98 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 99 | fi 100 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_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_KnobGestureRecognizer_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_KnobGestureRecognizer_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KnobGestureRecognizer" 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/KnobGestureRecognizer/KnobGestureRecognizer.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_KnobGestureRecognizer_Tests { 2 | umbrella header "Pods-KnobGestureRecognizer_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KnobGestureRecognizer_Tests/Pods-KnobGestureRecognizer_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KnobGestureRecognizer" 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/KnobGestureRecognizer/KnobGestureRecognizer.framework/Headers" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT}/Pods 8 | -------------------------------------------------------------------------------- /Example/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/Tests/Tests.swift: -------------------------------------------------------------------------------- 1 | import UIKit 2 | import XCTest 3 | import KnobGestureRecognizer 4 | 5 | class Tests: XCTestCase { 6 | 7 | override func setUp() { 8 | super.setUp() 9 | // Put setup code here. This method is called before the invocation of each test method in the class. 10 | } 11 | 12 | override func tearDown() { 13 | // Put teardown code here. This method is called after the invocation of each test method in the class. 14 | super.tearDown() 15 | } 16 | 17 | func testExample() { 18 | // This is an example of a functional test case. 19 | XCTAssert(true, "Pass") 20 | } 21 | 22 | func testPerformanceExample() { 23 | // This is an example of a performance test case. 24 | 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /KnobGestureRecognizer.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = 'KnobGestureRecognizer' 4 | s.version = '1.0.0' 5 | s.summary = 'Knob Gesture Recognizer' 6 | s.description = 'Knob Gesture Recognizer which detects circular gestures' 7 | 8 | s.social_media_url = 'https://twitter.com/TheMindStudios' 9 | s.homepage = 'https://github.com/TheMindStudios/KnobGestureRecognizer' 10 | s.license = { :type => 'MIT', :file => 'LICENSE' } 11 | s.author = { 'hapichdima' => 'hapich@themindstudios.com' } 12 | s.source = { :git => 'https://github.com/TheMindStudios/KnobGestureRecognizer.git', :tag => s.version.to_s } 13 | 14 | s.ios.deployment_target = '9.0' 15 | 16 | s.source_files = 'KnobGestureRecognizer/Classes/**/*' 17 | 18 | end 19 | -------------------------------------------------------------------------------- /KnobGestureRecognizer/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/KnobGestureRecognizer/Assets/.gitkeep -------------------------------------------------------------------------------- /KnobGestureRecognizer/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/KnobGestureRecognizer/Classes/.gitkeep -------------------------------------------------------------------------------- /KnobGestureRecognizer/Classes/KnobGestureRecognizer.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KnobGestureRecognizer.swift 3 | // Pods 4 | // 5 | // Created by Dima on 08.02.17. 6 | // 7 | // 8 | 9 | import UIKit 10 | import UIKit.UIGestureRecognizerSubclass 11 | 12 | open class KnobGestureRecognizer: UIGestureRecognizer { 13 | 14 | /// rotation in radians 15 | fileprivate(set) open var rotation: CGFloat = 0.0 16 | 17 | /// clockwise - true counter-clockwise - false 18 | fileprivate(set) open var clockwiseDirection: Bool = true 19 | 20 | /// distance from anchor point 21 | fileprivate(set) open var radius: Float? = 0.0 22 | 23 | /// ignore event from center in % 24 | fileprivate(set) open var ignoreDistanceFromCenter: CGFloat = 10.0 25 | 26 | /// 27 | fileprivate(set) var controlView: UIView! 28 | 29 | /// rotation center 30 | open var anchor: CGPoint? 31 | 32 | fileprivate var prevTouch: UITouch? 33 | 34 | fileprivate lazy var center: CGPoint = { 35 | guard let anchor = self.anchor else { return CGPoint(x: self.controlView.bounds.midX, y: self.controlView.bounds.midY)} 36 | return anchor 37 | }() 38 | 39 | // MARK: - Initializers 40 | 41 | public init(target: Any?, action: Selector?, to controlView: UIView) { 42 | super.init(target: target, action: action) 43 | 44 | self.controlView = controlView 45 | anchor = CGPoint(x: controlView.bounds.midX, y: controlView.bounds.midY) 46 | } 47 | 48 | // MARK: - LifeCycle 49 | 50 | override open func touchesBegan(_ touches: Set, with event: UIEvent) { 51 | super.touchesBegan(touches, with: event) 52 | 53 | guard touches.count == 1 else { 54 | state = .failed 55 | return 56 | } 57 | } 58 | 59 | override open func touchesMoved(_ touches: Set, with event: UIEvent) { 60 | super.touchesMoved(touches, with: event) 61 | 62 | guard let touch = touches.first else { return } 63 | 64 | radius = calculateDistance(fromCenter: touch.location(in: controlView)) 65 | 66 | let currentAngle = getTouchAngle(touch.location(in: controlView)) 67 | let previousAngle = getTouchAngle(touch.previousLocation(in: controlView)) 68 | 69 | rotation = currentAngle - previousAngle 70 | 71 | if rotation > .pi { 72 | rotation -= .pi*2 73 | } else if rotation < -.pi { 74 | rotation += .pi*2 75 | } 76 | 77 | clockwiseDirection = currentAngle - previousAngle > 0 78 | state = .changed 79 | prevTouch = touch 80 | } 81 | 82 | func getTouchAngle(_ touch: CGPoint) -> CGFloat { 83 | 84 | guard let radius = radius else { return -1 } 85 | // ignore event near center, 10% of width default 86 | if radius < Float(controlView.bounds.width/ignoreDistanceFromCenter) && state == .changed { 87 | return -1 88 | } 89 | 90 | let x: CGFloat = touch.x - center.x 91 | let y: CGFloat = -(touch.y - center.y) 92 | 93 | let arctan: CGFloat = CGFloat(atanf(Float(x / y))) 94 | 95 | switch (x, y) { 96 | case let (x, y) where y == 0 && x > 0: 97 | return .pi / 2 98 | case let (_, y) where y == 0: 99 | return 3 * .pi / 2 100 | case let (x, y) where x >= 0 && y > 0: 101 | return arctan 102 | case let (x, y) where x < 0 && y > 0: 103 | return arctan + 2 * .pi 104 | case let (x, y) where x <= 0 && y < 0: 105 | return arctan + .pi 106 | case let (x, y) where x > 0 && y < 0: 107 | return arctan + .pi 108 | default: 109 | return -1 110 | } 111 | } 112 | 113 | override open func touchesEnded(_ touches: Set, with event: UIEvent) { 114 | super.touchesEnded(touches, with: event) 115 | state = .ended 116 | } 117 | 118 | override open func touchesCancelled(_ touches: Set, with event: UIEvent) { 119 | super.touchesCancelled(touches, with: event) 120 | state = .cancelled 121 | } 122 | 123 | fileprivate func calculateDistance(fromCenter point: CGPoint) -> Float { 124 | 125 | let dx: CGFloat = CGFloat(point.x - center.x) 126 | let dy: CGFloat = CGFloat(point.y - center.y) 127 | return sqrt(Float(dx * dx + dy * dy)) 128 | } 129 | } 130 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 TheMindStudios 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 13 | all 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 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KnobGestureRecognizer 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/KnobGestureRecognizer.svg?style=flat)](http://cocoapods.org/pods/KnobGestureRecognizer) 4 | ![Swift 3.0.x](https://img.shields.io/badge/Swift-3.0.x-orange.svg) 5 | 6 | 7 | [![TheMindStudios](https://github.com/TheMindStudios/KnobGestureRecognizer/blob/master/logo.png?raw=true)](https://themindstudios.com/) 8 | ## Features 9 | 10 | - [x] knob gesture 11 | - [x] get rotation radians of gesture 12 | - [x] set center of knob rotation 13 | - [x] get distance from center to touch (radius) 14 | - [x] get rotation direction (clockwise/ counter clockwise) 15 | 16 | ![Example](https://github.com/TheMindStudios/KnobGestureRecognizer/blob/master/mov1.gif) 17 | ![Example](https://github.com/TheMindStudios/KnobGestureRecognizer/blob/master/mov2.gif) 18 | 19 | ## Usage 20 | 21 | 1. Import `KnobGestureRecognizer` module to your `UIView` class/subclass 22 | 23 | ```swift 24 | import KnobGestureRecognizer 25 | ``` 26 | 2. Add gesture recognizer `KnobGestureRecognizer` to view 27 | 28 | ```swift 29 | override func awakeFromNib() { 30 | super.awakeFromNib() 31 | 32 | let gesture = KnobGestureRecognizer(target: self, action: #selector(rotationAction(_:)), to: controlView) 33 | 34 | gesture.delegate = self 35 | controlView.addGestureRecognizer(gesture) 36 | } 37 | ``` 38 | 3. Processing callback 39 | 40 | ```swift 41 | @objc fileprivate func rotationAction(_ sender: KnobGestureRecognizer) { 42 | ... 43 | } 44 | ``` 45 | 46 | ## Installation with CocoaPods 47 | 48 | To install via CocoaPods add this lines to your Podfile. You need CocoaPods v. 1.1 or higher 49 | 50 | ```bash 51 | $ gem install cocoapods 52 | ``` 53 | #### Podfile 54 | 55 | To integrate KnobGestureRecognizer into your Xcode project using CocoaPods, specify it in your `Podfile`: 56 | 57 | ```ruby 58 | source 'https://github.com/CocoaPods/Specs.git' 59 | platform :ios, '9.0' 60 | use_frameworks! 61 | 62 | target 'TargetName' do 63 | pod 'KnobGestureRecognizer', '~> 1.0' 64 | end 65 | ``` 66 | 67 | Then, run the following command: 68 | 69 | ```bash 70 | $ pod install 71 | ``` 72 | 73 | ## Properties 74 | 75 | Rotation in radians 76 | ```swift 77 | fileprivate(set) open var rotation: CGFloat = 0.0 78 | ``` 79 | Rotation direction 80 | ```swift 81 | fileprivate(set) open var clockwiseDirection: Bool = true 82 | ``` 83 | Distance from anchor point 84 | ```swift 85 | fileprivate(set) open var radius: Float? = 0.0 86 | ``` 87 | Knob center 88 | ```swift 89 | open var anchor: CGPoint? 90 | ``` 91 | ## License 92 | 93 | KnobGestureRecognizer is available under the MIT license. See the LICENSE file for more info. 94 | 95 | -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/logo.png -------------------------------------------------------------------------------- /mov1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/mov1.gif -------------------------------------------------------------------------------- /mov2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheMindStudios/KnobGestureRecognizer/66ec7730c6979567ef0ca34fb9591fe061fe4a2f/mov2.gif --------------------------------------------------------------------------------