├── .gitignore ├── .swift-version ├── .travis.yml ├── CHANGELOG.md ├── Example ├── KeyboardController.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ └── KeyboardController-Example.xcscheme ├── KeyboardController.xcworkspace │ └── contents.xcworkspacedata ├── KeyboardController │ ├── AppDelegate.swift │ ├── Base.lproj │ │ ├── LaunchScreen.xib │ │ └── Main.storyboard │ ├── Images.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── KeyboardController.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ └── project.pbxproj │ └── Target Support Files │ │ ├── KeyboardController │ │ ├── Info.plist │ │ ├── KeyboardController-dummy.m │ │ ├── KeyboardController-prefix.pch │ │ ├── KeyboardController-umbrella.h │ │ ├── KeyboardController.modulemap │ │ └── KeyboardController.xcconfig │ │ ├── Pods-KeyboardController_Example │ │ ├── Info.plist │ │ ├── Pods-KeyboardController_Example-acknowledgements.markdown │ │ ├── Pods-KeyboardController_Example-acknowledgements.plist │ │ ├── Pods-KeyboardController_Example-dummy.m │ │ ├── Pods-KeyboardController_Example-frameworks.sh │ │ ├── Pods-KeyboardController_Example-resources.sh │ │ ├── Pods-KeyboardController_Example-umbrella.h │ │ ├── Pods-KeyboardController_Example.debug.xcconfig │ │ ├── Pods-KeyboardController_Example.modulemap │ │ └── Pods-KeyboardController_Example.release.xcconfig │ │ └── Pods-KeyboardController_Tests │ │ ├── Info.plist │ │ ├── Pods-KeyboardController_Tests-acknowledgements.markdown │ │ ├── Pods-KeyboardController_Tests-acknowledgements.plist │ │ ├── Pods-KeyboardController_Tests-dummy.m │ │ ├── Pods-KeyboardController_Tests-frameworks.sh │ │ ├── Pods-KeyboardController_Tests-resources.sh │ │ ├── Pods-KeyboardController_Tests-umbrella.h │ │ ├── Pods-KeyboardController_Tests.debug.xcconfig │ │ ├── Pods-KeyboardController_Tests.modulemap │ │ └── Pods-KeyboardController_Tests.release.xcconfig └── Tests │ ├── Info.plist │ └── KeyboardControllerTests.swift ├── KeyboardController.podspec ├── KeyboardController ├── Assets │ └── .gitkeep └── Classes │ ├── .gitkeep │ └── KeyboardController.swift ├── LICENSE ├── README.md └── _Pods.xcodeproj /.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode8 3 | # cache: cocoapods 4 | podfile: Example/Podfile 5 | before_install: 6 | - gem install cocoapods -v 1.1.1 7 | - pod install --project-directory=Example 8 | script: 9 | - set -o pipefail && xcodebuild clean test -workspace Example/KeyboardController.xcworkspace -scheme KeyboardController-Example -sdk iphonesimulator -destination 'name=iPhone 6,OS=10.0' ONLY_ACTIVE_ARCH=NO | xcpretty 10 | - pod lib lint 11 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## [4.0.0](https://github.com/michalkonturek/KeyboardController/tree/4.0.0) (2016-11-07) 4 | [Full Changelog](https://github.com/michalkonturek/KeyboardController/compare/3.1.0...4.0.0) 5 | 6 | **Merged pull requests:** 7 | 8 | - Transition to Swift 3.0 [\#7](https://github.com/michalkonturek/KeyboardController/pull/7) ([michalkonturek](https://github.com/michalkonturek)) 9 | 10 | ## [3.1.0](https://github.com/michalkonturek/KeyboardController/tree/3.1.0) (2016-09-03) 11 | [Full Changelog](https://github.com/michalkonturek/KeyboardController/compare/3.0.0...3.1.0) 12 | 13 | **Merged pull requests:** 14 | 15 | - Updates code documentation and unit tests [\#5](https://github.com/michalkonturek/KeyboardController/pull/5) ([michalkonturek](https://github.com/michalkonturek)) 16 | 17 | ## [3.0.0](https://github.com/michalkonturek/KeyboardController/tree/3.0.0) (2016-08-05) 18 | [Full Changelog](https://github.com/michalkonturek/KeyboardController/compare/2.0.3...3.0.0) 19 | 20 | **Merged pull requests:** 21 | 22 | - Swift implementation [\#4](https://github.com/michalkonturek/KeyboardController/pull/4) ([michalkonturek](https://github.com/michalkonturek)) 23 | 24 | ## [2.0.3](https://github.com/michalkonturek/KeyboardController/tree/2.0.3) (2014-09-26) 25 | [Full Changelog](https://github.com/michalkonturek/KeyboardController/compare/2.0.2...2.0.3) 26 | 27 | ## [2.0.2](https://github.com/michalkonturek/KeyboardController/tree/2.0.2) (2014-04-06) 28 | [Full Changelog](https://github.com/michalkonturek/KeyboardController/compare/2.0.1...2.0.2) 29 | 30 | ## [2.0.1](https://github.com/michalkonturek/KeyboardController/tree/2.0.1) (2014-03-31) 31 | [Full Changelog](https://github.com/michalkonturek/KeyboardController/compare/2.0.0...2.0.1) 32 | 33 | ## [2.0.0](https://github.com/michalkonturek/KeyboardController/tree/2.0.0) (2014-02-14) 34 | [Full Changelog](https://github.com/michalkonturek/KeyboardController/compare/1.0.0...2.0.0) 35 | 36 | ## [1.0.0](https://github.com/michalkonturek/KeyboardController/tree/1.0.0) (2014-01-12) 37 | 38 | 39 | \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* -------------------------------------------------------------------------------- /Example/KeyboardController.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; }; 14 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; }; 15 | 607FACEC1AFB9204008FA782 /* KeyboardControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* KeyboardControllerTests.swift */; }; 16 | E3E980724160D1091693DA22 /* Pods_KeyboardController_Tests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 90CF005504107AD211C881AB /* Pods_KeyboardController_Tests.framework */; }; 17 | FED556F3B5A7975EE3E68A22 /* Pods_KeyboardController_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4B573FE0E5149DC2BBCB5FD1 /* Pods_KeyboardController_Example.framework */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 607FACC81AFB9204008FA782 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 607FACCF1AFB9204008FA782; 26 | remoteInfo = KeyboardController; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 1DBAA661E2AE419062F93C7C /* Pods-KeyboardController_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KeyboardController_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests.debug.xcconfig"; sourceTree = ""; }; 32 | 4B573FE0E5149DC2BBCB5FD1 /* Pods_KeyboardController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KeyboardController_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 33 | 58A85DE8C40C356C0AD79BCC /* Pods-KeyboardController_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KeyboardController_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests.release.xcconfig"; sourceTree = ""; }; 34 | 5BE6516416CC52588AB27BFC /* LICENSE */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = ""; }; 35 | 607FACD01AFB9204008FA782 /* KeyboardController_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = KeyboardController_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 36 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 37 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 38 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 39 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 40 | 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 41 | 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = ""; }; 42 | 607FACE51AFB9204008FA782 /* KeyboardController_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = KeyboardController_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 43 | 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 44 | 607FACEB1AFB9204008FA782 /* KeyboardControllerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyboardControllerTests.swift; sourceTree = ""; }; 45 | 75F6B97C04089EF2053F16F5 /* Pods-KeyboardController_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KeyboardController_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example.debug.xcconfig"; sourceTree = ""; }; 46 | 7B91182E572DD6A527DAC5F0 /* KeyboardController.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = KeyboardController.podspec; path = ../KeyboardController.podspec; sourceTree = ""; }; 47 | 90CF005504107AD211C881AB /* Pods_KeyboardController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_KeyboardController_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 48 | AA3A016C7E8A5707BA0A310C /* Pods-KeyboardController_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-KeyboardController_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example.release.xcconfig"; sourceTree = ""; }; 49 | E6CA8541585B718269D20AF8 /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 50 | /* End PBXFileReference section */ 51 | 52 | /* Begin PBXFrameworksBuildPhase section */ 53 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 54 | isa = PBXFrameworksBuildPhase; 55 | buildActionMask = 2147483647; 56 | files = ( 57 | FED556F3B5A7975EE3E68A22 /* Pods_KeyboardController_Example.framework in Frameworks */, 58 | ); 59 | runOnlyForDeploymentPostprocessing = 0; 60 | }; 61 | 607FACE21AFB9204008FA782 /* Frameworks */ = { 62 | isa = PBXFrameworksBuildPhase; 63 | buildActionMask = 2147483647; 64 | files = ( 65 | E3E980724160D1091693DA22 /* Pods_KeyboardController_Tests.framework in Frameworks */, 66 | ); 67 | runOnlyForDeploymentPostprocessing = 0; 68 | }; 69 | /* End PBXFrameworksBuildPhase section */ 70 | 71 | /* Begin PBXGroup section */ 72 | 16E50004025441E5B1696373 /* Frameworks */ = { 73 | isa = PBXGroup; 74 | children = ( 75 | 4B573FE0E5149DC2BBCB5FD1 /* Pods_KeyboardController_Example.framework */, 76 | 90CF005504107AD211C881AB /* Pods_KeyboardController_Tests.framework */, 77 | ); 78 | name = Frameworks; 79 | sourceTree = ""; 80 | }; 81 | 607FACC71AFB9204008FA782 = { 82 | isa = PBXGroup; 83 | children = ( 84 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 85 | 607FACD21AFB9204008FA782 /* Example for KeyboardController */, 86 | 607FACE81AFB9204008FA782 /* Tests */, 87 | 607FACD11AFB9204008FA782 /* Products */, 88 | A1776B5C3515B083888611E2 /* Pods */, 89 | 16E50004025441E5B1696373 /* Frameworks */, 90 | ); 91 | sourceTree = ""; 92 | }; 93 | 607FACD11AFB9204008FA782 /* Products */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 607FACD01AFB9204008FA782 /* KeyboardController_Example.app */, 97 | 607FACE51AFB9204008FA782 /* KeyboardController_Tests.xctest */, 98 | ); 99 | name = Products; 100 | sourceTree = ""; 101 | }; 102 | 607FACD21AFB9204008FA782 /* Example for KeyboardController */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 106 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 107 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 108 | 607FACDC1AFB9204008FA782 /* Images.xcassets */, 109 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */, 110 | 607FACD31AFB9204008FA782 /* Supporting Files */, 111 | ); 112 | name = "Example for KeyboardController"; 113 | path = KeyboardController; 114 | sourceTree = ""; 115 | }; 116 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 117 | isa = PBXGroup; 118 | children = ( 119 | 607FACD41AFB9204008FA782 /* Info.plist */, 120 | ); 121 | name = "Supporting Files"; 122 | sourceTree = ""; 123 | }; 124 | 607FACE81AFB9204008FA782 /* Tests */ = { 125 | isa = PBXGroup; 126 | children = ( 127 | 607FACEB1AFB9204008FA782 /* KeyboardControllerTests.swift */, 128 | 607FACE91AFB9204008FA782 /* Supporting Files */, 129 | ); 130 | path = Tests; 131 | sourceTree = ""; 132 | }; 133 | 607FACE91AFB9204008FA782 /* Supporting Files */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | 607FACEA1AFB9204008FA782 /* Info.plist */, 137 | ); 138 | name = "Supporting Files"; 139 | sourceTree = ""; 140 | }; 141 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 142 | isa = PBXGroup; 143 | children = ( 144 | 7B91182E572DD6A527DAC5F0 /* KeyboardController.podspec */, 145 | E6CA8541585B718269D20AF8 /* README.md */, 146 | 5BE6516416CC52588AB27BFC /* LICENSE */, 147 | ); 148 | name = "Podspec Metadata"; 149 | sourceTree = ""; 150 | }; 151 | A1776B5C3515B083888611E2 /* Pods */ = { 152 | isa = PBXGroup; 153 | children = ( 154 | 75F6B97C04089EF2053F16F5 /* Pods-KeyboardController_Example.debug.xcconfig */, 155 | AA3A016C7E8A5707BA0A310C /* Pods-KeyboardController_Example.release.xcconfig */, 156 | 1DBAA661E2AE419062F93C7C /* Pods-KeyboardController_Tests.debug.xcconfig */, 157 | 58A85DE8C40C356C0AD79BCC /* Pods-KeyboardController_Tests.release.xcconfig */, 158 | ); 159 | name = Pods; 160 | sourceTree = ""; 161 | }; 162 | /* End PBXGroup section */ 163 | 164 | /* Begin PBXNativeTarget section */ 165 | 607FACCF1AFB9204008FA782 /* KeyboardController_Example */ = { 166 | isa = PBXNativeTarget; 167 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KeyboardController_Example" */; 168 | buildPhases = ( 169 | C4A479EC97940415AC8BB26A /* [CP] Check Pods Manifest.lock */, 170 | 607FACCC1AFB9204008FA782 /* Sources */, 171 | 607FACCD1AFB9204008FA782 /* Frameworks */, 172 | 607FACCE1AFB9204008FA782 /* Resources */, 173 | C3658443D5B1E4EFB81C5417 /* [CP] Embed Pods Frameworks */, 174 | 4A7B1602671CF86FBA72721B /* [CP] Copy Pods Resources */, 175 | ); 176 | buildRules = ( 177 | ); 178 | dependencies = ( 179 | ); 180 | name = KeyboardController_Example; 181 | productName = KeyboardController; 182 | productReference = 607FACD01AFB9204008FA782 /* KeyboardController_Example.app */; 183 | productType = "com.apple.product-type.application"; 184 | }; 185 | 607FACE41AFB9204008FA782 /* KeyboardController_Tests */ = { 186 | isa = PBXNativeTarget; 187 | buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KeyboardController_Tests" */; 188 | buildPhases = ( 189 | D7D065E787F1BCBAE0B70228 /* [CP] Check Pods Manifest.lock */, 190 | 607FACE11AFB9204008FA782 /* Sources */, 191 | 607FACE21AFB9204008FA782 /* Frameworks */, 192 | 607FACE31AFB9204008FA782 /* Resources */, 193 | FD10D76F71AD74B1ADC673EB /* [CP] Embed Pods Frameworks */, 194 | FB6C66C0246310DBAF46FA66 /* [CP] Copy Pods Resources */, 195 | ); 196 | buildRules = ( 197 | ); 198 | dependencies = ( 199 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */, 200 | ); 201 | name = KeyboardController_Tests; 202 | productName = Tests; 203 | productReference = 607FACE51AFB9204008FA782 /* KeyboardController_Tests.xctest */; 204 | productType = "com.apple.product-type.bundle.unit-test"; 205 | }; 206 | /* End PBXNativeTarget section */ 207 | 208 | /* Begin PBXProject section */ 209 | 607FACC81AFB9204008FA782 /* Project object */ = { 210 | isa = PBXProject; 211 | attributes = { 212 | LastSwiftUpdateCheck = 0720; 213 | LastUpgradeCheck = 0720; 214 | ORGANIZATIONNAME = CocoaPods; 215 | TargetAttributes = { 216 | 607FACCF1AFB9204008FA782 = { 217 | CreatedOnToolsVersion = 6.3.1; 218 | LastSwiftMigration = 0810; 219 | }; 220 | 607FACE41AFB9204008FA782 = { 221 | CreatedOnToolsVersion = 6.3.1; 222 | LastSwiftMigration = 0810; 223 | TestTargetID = 607FACCF1AFB9204008FA782; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KeyboardController" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | Base, 234 | ); 235 | mainGroup = 607FACC71AFB9204008FA782; 236 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 237 | projectDirPath = ""; 238 | projectRoot = ""; 239 | targets = ( 240 | 607FACCF1AFB9204008FA782 /* KeyboardController_Example */, 241 | 607FACE41AFB9204008FA782 /* KeyboardController_Tests */, 242 | ); 243 | }; 244 | /* End PBXProject section */ 245 | 246 | /* Begin PBXResourcesBuildPhase section */ 247 | 607FACCE1AFB9204008FA782 /* Resources */ = { 248 | isa = PBXResourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 252 | 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */, 253 | 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | 607FACE31AFB9204008FA782 /* Resources */ = { 258 | isa = PBXResourcesBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | ); 262 | runOnlyForDeploymentPostprocessing = 0; 263 | }; 264 | /* End PBXResourcesBuildPhase section */ 265 | 266 | /* Begin PBXShellScriptBuildPhase section */ 267 | 4A7B1602671CF86FBA72721B /* [CP] Copy Pods Resources */ = { 268 | isa = PBXShellScriptBuildPhase; 269 | buildActionMask = 2147483647; 270 | files = ( 271 | ); 272 | inputPaths = ( 273 | ); 274 | name = "[CP] Copy Pods Resources"; 275 | outputPaths = ( 276 | ); 277 | runOnlyForDeploymentPostprocessing = 0; 278 | shellPath = /bin/sh; 279 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example-resources.sh\"\n"; 280 | showEnvVarsInLog = 0; 281 | }; 282 | C3658443D5B1E4EFB81C5417 /* [CP] Embed Pods Frameworks */ = { 283 | isa = PBXShellScriptBuildPhase; 284 | buildActionMask = 2147483647; 285 | files = ( 286 | ); 287 | inputPaths = ( 288 | ); 289 | name = "[CP] Embed Pods Frameworks"; 290 | outputPaths = ( 291 | ); 292 | runOnlyForDeploymentPostprocessing = 0; 293 | shellPath = /bin/sh; 294 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example-frameworks.sh\"\n"; 295 | showEnvVarsInLog = 0; 296 | }; 297 | C4A479EC97940415AC8BB26A /* [CP] Check Pods Manifest.lock */ = { 298 | isa = PBXShellScriptBuildPhase; 299 | buildActionMask = 2147483647; 300 | files = ( 301 | ); 302 | inputPaths = ( 303 | ); 304 | name = "[CP] Check Pods Manifest.lock"; 305 | outputPaths = ( 306 | ); 307 | runOnlyForDeploymentPostprocessing = 0; 308 | shellPath = /bin/sh; 309 | shellScript = "diff \"${PODS_ROOT}/../Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n"; 310 | showEnvVarsInLog = 0; 311 | }; 312 | D7D065E787F1BCBAE0B70228 /* [CP] Check Pods Manifest.lock */ = { 313 | isa = PBXShellScriptBuildPhase; 314 | buildActionMask = 2147483647; 315 | files = ( 316 | ); 317 | inputPaths = ( 318 | ); 319 | name = "[CP] Check Pods Manifest.lock"; 320 | outputPaths = ( 321 | ); 322 | runOnlyForDeploymentPostprocessing = 0; 323 | shellPath = /bin/sh; 324 | 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"; 325 | showEnvVarsInLog = 0; 326 | }; 327 | FB6C66C0246310DBAF46FA66 /* [CP] Copy Pods Resources */ = { 328 | isa = PBXShellScriptBuildPhase; 329 | buildActionMask = 2147483647; 330 | files = ( 331 | ); 332 | inputPaths = ( 333 | ); 334 | name = "[CP] Copy Pods Resources"; 335 | outputPaths = ( 336 | ); 337 | runOnlyForDeploymentPostprocessing = 0; 338 | shellPath = /bin/sh; 339 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests-resources.sh\"\n"; 340 | showEnvVarsInLog = 0; 341 | }; 342 | FD10D76F71AD74B1ADC673EB /* [CP] Embed Pods Frameworks */ = { 343 | isa = PBXShellScriptBuildPhase; 344 | buildActionMask = 2147483647; 345 | files = ( 346 | ); 347 | inputPaths = ( 348 | ); 349 | name = "[CP] Embed Pods Frameworks"; 350 | outputPaths = ( 351 | ); 352 | runOnlyForDeploymentPostprocessing = 0; 353 | shellPath = /bin/sh; 354 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests-frameworks.sh\"\n"; 355 | showEnvVarsInLog = 0; 356 | }; 357 | /* End PBXShellScriptBuildPhase section */ 358 | 359 | /* Begin PBXSourcesBuildPhase section */ 360 | 607FACCC1AFB9204008FA782 /* Sources */ = { 361 | isa = PBXSourcesBuildPhase; 362 | buildActionMask = 2147483647; 363 | files = ( 364 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 365 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 366 | ); 367 | runOnlyForDeploymentPostprocessing = 0; 368 | }; 369 | 607FACE11AFB9204008FA782 /* Sources */ = { 370 | isa = PBXSourcesBuildPhase; 371 | buildActionMask = 2147483647; 372 | files = ( 373 | 607FACEC1AFB9204008FA782 /* KeyboardControllerTests.swift in Sources */, 374 | ); 375 | runOnlyForDeploymentPostprocessing = 0; 376 | }; 377 | /* End PBXSourcesBuildPhase section */ 378 | 379 | /* Begin PBXTargetDependency section */ 380 | 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = { 381 | isa = PBXTargetDependency; 382 | target = 607FACCF1AFB9204008FA782 /* KeyboardController_Example */; 383 | targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */; 384 | }; 385 | /* End PBXTargetDependency section */ 386 | 387 | /* Begin PBXVariantGroup section */ 388 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 389 | isa = PBXVariantGroup; 390 | children = ( 391 | 607FACDA1AFB9204008FA782 /* Base */, 392 | ); 393 | name = Main.storyboard; 394 | sourceTree = ""; 395 | }; 396 | 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = { 397 | isa = PBXVariantGroup; 398 | children = ( 399 | 607FACDF1AFB9204008FA782 /* Base */, 400 | ); 401 | name = LaunchScreen.xib; 402 | sourceTree = ""; 403 | }; 404 | /* End PBXVariantGroup section */ 405 | 406 | /* Begin XCBuildConfiguration section */ 407 | 607FACED1AFB9204008FA782 /* Debug */ = { 408 | isa = XCBuildConfiguration; 409 | buildSettings = { 410 | ALWAYS_SEARCH_USER_PATHS = NO; 411 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 412 | CLANG_CXX_LIBRARY = "libc++"; 413 | CLANG_ENABLE_MODULES = YES; 414 | CLANG_ENABLE_OBJC_ARC = YES; 415 | CLANG_WARN_BOOL_CONVERSION = YES; 416 | CLANG_WARN_CONSTANT_CONVERSION = YES; 417 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 418 | CLANG_WARN_EMPTY_BODY = YES; 419 | CLANG_WARN_ENUM_CONVERSION = YES; 420 | CLANG_WARN_INT_CONVERSION = YES; 421 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 422 | CLANG_WARN_UNREACHABLE_CODE = YES; 423 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 424 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 425 | COPY_PHASE_STRIP = NO; 426 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 427 | ENABLE_STRICT_OBJC_MSGSEND = YES; 428 | ENABLE_TESTABILITY = YES; 429 | GCC_C_LANGUAGE_STANDARD = gnu99; 430 | GCC_DYNAMIC_NO_PIC = NO; 431 | GCC_NO_COMMON_BLOCKS = YES; 432 | GCC_OPTIMIZATION_LEVEL = 0; 433 | GCC_PREPROCESSOR_DEFINITIONS = ( 434 | "DEBUG=1", 435 | "$(inherited)", 436 | ); 437 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 438 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 439 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 440 | GCC_WARN_UNDECLARED_SELECTOR = YES; 441 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 442 | GCC_WARN_UNUSED_FUNCTION = YES; 443 | GCC_WARN_UNUSED_VARIABLE = YES; 444 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 445 | MTL_ENABLE_DEBUG_INFO = YES; 446 | ONLY_ACTIVE_ARCH = YES; 447 | SDKROOT = iphoneos; 448 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 449 | }; 450 | name = Debug; 451 | }; 452 | 607FACEE1AFB9204008FA782 /* Release */ = { 453 | isa = XCBuildConfiguration; 454 | buildSettings = { 455 | ALWAYS_SEARCH_USER_PATHS = NO; 456 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 457 | CLANG_CXX_LIBRARY = "libc++"; 458 | CLANG_ENABLE_MODULES = YES; 459 | CLANG_ENABLE_OBJC_ARC = YES; 460 | CLANG_WARN_BOOL_CONVERSION = YES; 461 | CLANG_WARN_CONSTANT_CONVERSION = YES; 462 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 463 | CLANG_WARN_EMPTY_BODY = YES; 464 | CLANG_WARN_ENUM_CONVERSION = YES; 465 | CLANG_WARN_INT_CONVERSION = YES; 466 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 467 | CLANG_WARN_UNREACHABLE_CODE = YES; 468 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 469 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 470 | COPY_PHASE_STRIP = NO; 471 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 472 | ENABLE_NS_ASSERTIONS = NO; 473 | ENABLE_STRICT_OBJC_MSGSEND = YES; 474 | GCC_C_LANGUAGE_STANDARD = gnu99; 475 | GCC_NO_COMMON_BLOCKS = YES; 476 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 477 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 478 | GCC_WARN_UNDECLARED_SELECTOR = YES; 479 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 480 | GCC_WARN_UNUSED_FUNCTION = YES; 481 | GCC_WARN_UNUSED_VARIABLE = YES; 482 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 483 | MTL_ENABLE_DEBUG_INFO = NO; 484 | SDKROOT = iphoneos; 485 | VALIDATE_PRODUCT = YES; 486 | }; 487 | name = Release; 488 | }; 489 | 607FACF01AFB9204008FA782 /* Debug */ = { 490 | isa = XCBuildConfiguration; 491 | baseConfigurationReference = 75F6B97C04089EF2053F16F5 /* Pods-KeyboardController_Example.debug.xcconfig */; 492 | buildSettings = { 493 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 494 | INFOPLIST_FILE = KeyboardController/Info.plist; 495 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 496 | MODULE_NAME = ExampleApp; 497 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 498 | PRODUCT_NAME = "$(TARGET_NAME)"; 499 | SWIFT_VERSION = 3.0; 500 | }; 501 | name = Debug; 502 | }; 503 | 607FACF11AFB9204008FA782 /* Release */ = { 504 | isa = XCBuildConfiguration; 505 | baseConfigurationReference = AA3A016C7E8A5707BA0A310C /* Pods-KeyboardController_Example.release.xcconfig */; 506 | buildSettings = { 507 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 508 | INFOPLIST_FILE = KeyboardController/Info.plist; 509 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 510 | MODULE_NAME = ExampleApp; 511 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 512 | PRODUCT_NAME = "$(TARGET_NAME)"; 513 | SWIFT_VERSION = 3.0; 514 | }; 515 | name = Release; 516 | }; 517 | 607FACF31AFB9204008FA782 /* Debug */ = { 518 | isa = XCBuildConfiguration; 519 | baseConfigurationReference = 1DBAA661E2AE419062F93C7C /* Pods-KeyboardController_Tests.debug.xcconfig */; 520 | buildSettings = { 521 | FRAMEWORK_SEARCH_PATHS = ( 522 | "$(SDKROOT)/Developer/Library/Frameworks", 523 | "$(inherited)", 524 | ); 525 | GCC_PREPROCESSOR_DEFINITIONS = ( 526 | "DEBUG=1", 527 | "$(inherited)", 528 | ); 529 | INFOPLIST_FILE = Tests/Info.plist; 530 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 531 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 532 | PRODUCT_NAME = "$(TARGET_NAME)"; 533 | SWIFT_VERSION = 3.0; 534 | }; 535 | name = Debug; 536 | }; 537 | 607FACF41AFB9204008FA782 /* Release */ = { 538 | isa = XCBuildConfiguration; 539 | baseConfigurationReference = 58A85DE8C40C356C0AD79BCC /* Pods-KeyboardController_Tests.release.xcconfig */; 540 | buildSettings = { 541 | FRAMEWORK_SEARCH_PATHS = ( 542 | "$(SDKROOT)/Developer/Library/Frameworks", 543 | "$(inherited)", 544 | ); 545 | INFOPLIST_FILE = Tests/Info.plist; 546 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 547 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)"; 548 | PRODUCT_NAME = "$(TARGET_NAME)"; 549 | SWIFT_VERSION = 3.0; 550 | }; 551 | name = Release; 552 | }; 553 | /* End XCBuildConfiguration section */ 554 | 555 | /* Begin XCConfigurationList section */ 556 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "KeyboardController" */ = { 557 | isa = XCConfigurationList; 558 | buildConfigurations = ( 559 | 607FACED1AFB9204008FA782 /* Debug */, 560 | 607FACEE1AFB9204008FA782 /* Release */, 561 | ); 562 | defaultConfigurationIsVisible = 0; 563 | defaultConfigurationName = Release; 564 | }; 565 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KeyboardController_Example" */ = { 566 | isa = XCConfigurationList; 567 | buildConfigurations = ( 568 | 607FACF01AFB9204008FA782 /* Debug */, 569 | 607FACF11AFB9204008FA782 /* Release */, 570 | ); 571 | defaultConfigurationIsVisible = 0; 572 | defaultConfigurationName = Release; 573 | }; 574 | 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "KeyboardController_Tests" */ = { 575 | isa = XCConfigurationList; 576 | buildConfigurations = ( 577 | 607FACF31AFB9204008FA782 /* Debug */, 578 | 607FACF41AFB9204008FA782 /* Release */, 579 | ); 580 | defaultConfigurationIsVisible = 0; 581 | defaultConfigurationName = Release; 582 | }; 583 | /* End XCConfigurationList section */ 584 | }; 585 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 586 | } 587 | -------------------------------------------------------------------------------- /Example/KeyboardController.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/KeyboardController.xcodeproj/xcshareddata/xcschemes/KeyboardController-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/KeyboardController.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/KeyboardController/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // KeyboardController 4 | // 5 | // Created by Michal Konturek on 08/04/2016. 6 | // Copyright (c) 2016 Michal Konturek. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/KeyboardController/Base.lproj/LaunchScreen.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 20 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Example/KeyboardController/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | -------------------------------------------------------------------------------- /Example/KeyboardController/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/KeyboardController/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /Example/KeyboardController/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // KeyboardController 4 | // 5 | // Created by Michal Konturek on 08/04/2016. 6 | // Copyright (c) 2016 Michal Konturek. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | import KeyboardController 12 | 13 | class ViewController: UIViewController { 14 | @IBOutlet weak var field1: UITextField? 15 | @IBOutlet weak var field2: UITextField? 16 | @IBOutlet weak var field3: UITextField? 17 | @IBOutlet weak var field4: UITextField? 18 | @IBOutlet weak var field5: UITextField? 19 | 20 | var controller: KeyboardController? 21 | 22 | override func viewDidLoad() { 23 | super.viewDidLoad() 24 | 25 | let fields = [field1!, field2!, field3!, field4!, field5!] 26 | self.controller = KeyboardController(fields: fields) 27 | self.controller?.delegate = self 28 | self.controller?.textFieldDelegate = self 29 | } 30 | } 31 | 32 | extension ViewController: UITextFieldDelegate { 33 | 34 | func textFieldDidBeginEditing(_ textField: UITextField) { 35 | if (textField == self.field4) { self.moveViewBy(-10) } 36 | if (textField == self.field5) { self.moveViewBy(-200) } 37 | } 38 | 39 | func textFieldDidEndEditing(_ textField: UITextField) { 40 | if (textField == self.field4) { self.moveViewBy(10) } 41 | if (textField == self.field5) { self.moveViewBy(200) } 42 | } 43 | 44 | func moveViewBy(_ dy: CGFloat) { 45 | UIView.animate(withDuration: 0.2, animations: { 46 | self.view.frame = self.view.frame.offsetBy(dx: 0, dy: dy) 47 | }) 48 | } 49 | } 50 | 51 | extension ViewController: KeyboardNotificationHandling { 52 | 53 | func onKeyboardDidHide() { 54 | print("\(#function)") 55 | } 56 | 57 | func onKeyboardDidShow() { 58 | print("\(#function)") 59 | } 60 | 61 | func onKeyboardWillHide() { 62 | print("\(#function)") 63 | } 64 | 65 | func onKeyboardWillShow() { 66 | print("\(#function)") 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'KeyboardController_Example' do 4 | pod 'KeyboardController', :path => '../' 5 | 6 | target 'KeyboardController_Tests' do 7 | inherit! :search_paths 8 | 9 | pod 'KeyboardController', :path => '../' 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KeyboardController (3.1.0) 3 | 4 | DEPENDENCIES: 5 | - KeyboardController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KeyboardController: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | KeyboardController: d0ad85dcccb466d50117d525255e27b009edc3d3 13 | 14 | PODFILE CHECKSUM: e2c087a6f10dd7d1520687a7f4946c0291fd3424 15 | 16 | COCOAPODS: 1.1.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/KeyboardController.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "KeyboardController", 3 | "version": "3.1.0", 4 | "summary": "Simplifies iOS keyboard handling.", 5 | "homepage": "https://github.com/michalkonturek/KeyboardController", 6 | "license": { 7 | "type": "MIT", 8 | "file": "LICENSE" 9 | }, 10 | "authors": { 11 | "Michal Konturek": "michal.konturek@gmail.com" 12 | }, 13 | "source": { 14 | "git": "https://github.com/michalkonturek/KeyboardController.git", 15 | "tag": "3.1.0" 16 | }, 17 | "social_media_url": "https://twitter.com/michalkonturek", 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "KeyboardController/Classes/**/*", 22 | "frameworks": "UIKit" 23 | } 24 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - KeyboardController (3.1.0) 3 | 4 | DEPENDENCIES: 5 | - KeyboardController (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | KeyboardController: 9 | :path: "../" 10 | 11 | SPEC CHECKSUMS: 12 | KeyboardController: d0ad85dcccb466d50117d525255e27b009edc3d3 13 | 14 | PODFILE CHECKSUM: e2c087a6f10dd7d1520687a7f4946c0291fd3424 15 | 16 | COCOAPODS: 1.1.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 205CA98E7B620C05FD9429F02C261D8F /* Pods-KeyboardController_Example-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 5A5441DF20E1488B5395C0B0B2DAD898 /* Pods-KeyboardController_Example-dummy.m */; }; 11 | 43BC1CFCE81C04EE4E81CAB2791A74DB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 616BEB51ECCAD129BDBCB7A956B56CC6 /* Foundation.framework */; }; 12 | 450AD110023D31B52D9F95F39C7EBE09 /* Pods-KeyboardController_Tests-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = B0DC226B139E9C13E8BEDCAF548BBBA4 /* Pods-KeyboardController_Tests-dummy.m */; }; 13 | 5646EC7B57B2E0B89996945A0543F8D8 /* KeyboardController-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 42E1C273752C5E0562DF1C3A622183D0 /* KeyboardController-dummy.m */; }; 14 | 5E928B973A3BFDFE25448CC34D8E83D9 /* Pods-KeyboardController_Tests-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = C39CBE6B0BCCAC107FE86A1BD8C507FC /* Pods-KeyboardController_Tests-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 15 | A9D3D527181EFF297EC2E098FA189D0E /* KeyboardController.swift in Sources */ = {isa = PBXBuildFile; fileRef = AC247067D14D14B0F617BD01A3597B11 /* KeyboardController.swift */; }; 16 | BE6BFD1BE49CEF823D96FED4B1C60749 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 616BEB51ECCAD129BDBCB7A956B56CC6 /* Foundation.framework */; }; 17 | D17EE85DC990BE3B1A6DDA22EF4FE3E4 /* KeyboardController-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = B30924FCB4CCEFF99B66F1455E8EACD6 /* KeyboardController-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 18 | F16895A4528181B5BF5A90C3BCDA353A /* Pods-KeyboardController_Example-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 6ABB31F0D8C2C1CC45EAFA7AC7B5C438 /* Pods-KeyboardController_Example-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; }; 19 | F674FC6B204205023F2B412762ED0F67 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 616BEB51ECCAD129BDBCB7A956B56CC6 /* Foundation.framework */; }; 20 | FB4312495BE23D9883EAA868683B1C7D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 7EC994CDC2D681BA26389F78A7E4B325 /* UIKit.framework */; }; 21 | /* End PBXBuildFile section */ 22 | 23 | /* Begin PBXContainerItemProxy section */ 24 | 19FA0D9C5B2D1D85ECFC1B3DFDBDEA73 /* PBXContainerItemProxy */ = { 25 | isa = PBXContainerItemProxy; 26 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 27 | proxyType = 1; 28 | remoteGlobalIDString = 461A9F5E5725FF3DB7651E3D88609C76; 29 | remoteInfo = KeyboardController; 30 | }; 31 | C4EBB495D1ED3B56F6954D5D40261080 /* PBXContainerItemProxy */ = { 32 | isa = PBXContainerItemProxy; 33 | containerPortal = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 34 | proxyType = 1; 35 | remoteGlobalIDString = 461A9F5E5725FF3DB7651E3D88609C76; 36 | remoteInfo = KeyboardController; 37 | }; 38 | /* End PBXContainerItemProxy section */ 39 | 40 | /* Begin PBXFileReference section */ 41 | 17C2FAEAC50470C67FF24C41AD433777 /* Pods-KeyboardController_Example.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-KeyboardController_Example.modulemap"; sourceTree = ""; }; 42 | 2029FED1F090DF73AA4750E8C4971F8C /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 271378DEBC4AAF29D2CB59C4D2677579 /* Pods-KeyboardController_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KeyboardController_Tests.debug.xcconfig"; sourceTree = ""; }; 44 | 2BB8F0730253163DC906EAAEF124CA3C /* Pods-KeyboardController_Example-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-KeyboardController_Example-acknowledgements.markdown"; sourceTree = ""; }; 45 | 324C1D385B822C4EAECEB5C8271105E2 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 46 | 35371BB9D71005FD9FB656236124425F /* Pods_KeyboardController_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_KeyboardController_Tests.framework; path = "Pods-KeyboardController_Tests.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 47 | 42E1C273752C5E0562DF1C3A622183D0 /* KeyboardController-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "KeyboardController-dummy.m"; sourceTree = ""; }; 48 | 55952DD7E88DD6E088869C9D1269514E /* KeyboardController.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = KeyboardController.modulemap; sourceTree = ""; }; 49 | 55C0B9F358D723721FE06656F0B2965C /* KeyboardController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = KeyboardController.framework; path = KeyboardController.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 50 | 5A5441DF20E1488B5395C0B0B2DAD898 /* Pods-KeyboardController_Example-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-KeyboardController_Example-dummy.m"; sourceTree = ""; }; 51 | 616BEB51ECCAD129BDBCB7A956B56CC6 /* 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; }; 52 | 64A4416690F4E129B8DFF876E5C2C806 /* Pods-KeyboardController_Example-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-KeyboardController_Example-acknowledgements.plist"; sourceTree = ""; }; 53 | 6ABB31F0D8C2C1CC45EAFA7AC7B5C438 /* Pods-KeyboardController_Example-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-KeyboardController_Example-umbrella.h"; sourceTree = ""; }; 54 | 7160E774611510F99DBF7C66631B609A /* Pods-KeyboardController_Example-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KeyboardController_Example-frameworks.sh"; sourceTree = ""; }; 55 | 79FECD623DC8050EAE632B9E5DE6EA09 /* KeyboardController.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = KeyboardController.xcconfig; sourceTree = ""; }; 56 | 7EC994CDC2D681BA26389F78A7E4B325 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk/System/Library/Frameworks/UIKit.framework; sourceTree = DEVELOPER_DIR; }; 57 | 8689CC5E00AB84FC85FBB184F75F6989 /* Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 58 | 91B0EA3DA54F97243BD24F8A03ACB88B /* Pods-KeyboardController_Tests-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = "Pods-KeyboardController_Tests-acknowledgements.markdown"; sourceTree = ""; }; 59 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; lastKnownFileType = text; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.ruby; }; 60 | AC247067D14D14B0F617BD01A3597B11 /* KeyboardController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = KeyboardController.swift; sourceTree = ""; }; 61 | AFB59F3C72B16DEC14D0EBDD354A43AD /* Pods-KeyboardController_Tests-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KeyboardController_Tests-resources.sh"; sourceTree = ""; }; 62 | B0DC226B139E9C13E8BEDCAF548BBBA4 /* Pods-KeyboardController_Tests-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = "Pods-KeyboardController_Tests-dummy.m"; sourceTree = ""; }; 63 | B30924FCB4CCEFF99B66F1455E8EACD6 /* KeyboardController-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KeyboardController-umbrella.h"; sourceTree = ""; }; 64 | B4D71F6E2CFDECC6A6F38B1A9E481B7B /* Pods_KeyboardController_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = Pods_KeyboardController_Example.framework; path = "Pods-KeyboardController_Example.framework"; sourceTree = BUILT_PRODUCTS_DIR; }; 65 | B5C67EB406B1C7E8A8C9780ED8A82B52 /* KeyboardController-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "KeyboardController-prefix.pch"; sourceTree = ""; }; 66 | C371A32F5BBBC933A45A2C14CDFFE103 /* Pods-KeyboardController_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KeyboardController_Example.release.xcconfig"; sourceTree = ""; }; 67 | C39CBE6B0BCCAC107FE86A1BD8C507FC /* Pods-KeyboardController_Tests-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = "Pods-KeyboardController_Tests-umbrella.h"; sourceTree = ""; }; 68 | C505680870A8490CBB72ABA11F0A3D97 /* Pods-KeyboardController_Tests.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; path = "Pods-KeyboardController_Tests.modulemap"; sourceTree = ""; }; 69 | CF5D257EFF8F5E6055BDEFFAF99C36C6 /* Pods-KeyboardController_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KeyboardController_Example.debug.xcconfig"; sourceTree = ""; }; 70 | D63C4C950DEB655A229D440E6340EA62 /* Pods-KeyboardController_Tests-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = "Pods-KeyboardController_Tests-acknowledgements.plist"; sourceTree = ""; }; 71 | F34AE31D4063D0E9DFB747A1BB9F7E5D /* Pods-KeyboardController_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = "Pods-KeyboardController_Tests.release.xcconfig"; sourceTree = ""; }; 72 | F48DFF55ADD48BF0902FEFFC9AC90F5C /* Pods-KeyboardController_Example-resources.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KeyboardController_Example-resources.sh"; sourceTree = ""; }; 73 | FA1EB0DA62E85672A74DAB77A27CA118 /* Pods-KeyboardController_Tests-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = "Pods-KeyboardController_Tests-frameworks.sh"; sourceTree = ""; }; 74 | /* End PBXFileReference section */ 75 | 76 | /* Begin PBXFrameworksBuildPhase section */ 77 | 04B4731388E1254D5FC84B1B775C8971 /* Frameworks */ = { 78 | isa = PBXFrameworksBuildPhase; 79 | buildActionMask = 2147483647; 80 | files = ( 81 | 43BC1CFCE81C04EE4E81CAB2791A74DB /* Foundation.framework in Frameworks */, 82 | ); 83 | runOnlyForDeploymentPostprocessing = 0; 84 | }; 85 | 1527DEB10D31D4EC96B6EFE6E81C7462 /* Frameworks */ = { 86 | isa = PBXFrameworksBuildPhase; 87 | buildActionMask = 2147483647; 88 | files = ( 89 | F674FC6B204205023F2B412762ED0F67 /* Foundation.framework in Frameworks */, 90 | FB4312495BE23D9883EAA868683B1C7D /* UIKit.framework in Frameworks */, 91 | ); 92 | runOnlyForDeploymentPostprocessing = 0; 93 | }; 94 | 19878C8E299607121CF4BB17339094C0 /* Frameworks */ = { 95 | isa = PBXFrameworksBuildPhase; 96 | buildActionMask = 2147483647; 97 | files = ( 98 | BE6BFD1BE49CEF823D96FED4B1C60749 /* Foundation.framework in Frameworks */, 99 | ); 100 | runOnlyForDeploymentPostprocessing = 0; 101 | }; 102 | /* End PBXFrameworksBuildPhase section */ 103 | 104 | /* Begin PBXGroup section */ 105 | 04D04ECA5CCFF248E7BAA034BB13F98D /* Products */ = { 106 | isa = PBXGroup; 107 | children = ( 108 | 55C0B9F358D723721FE06656F0B2965C /* KeyboardController.framework */, 109 | B4D71F6E2CFDECC6A6F38B1A9E481B7B /* Pods_KeyboardController_Example.framework */, 110 | 35371BB9D71005FD9FB656236124425F /* Pods_KeyboardController_Tests.framework */, 111 | ); 112 | name = Products; 113 | sourceTree = ""; 114 | }; 115 | 3801B340102B08137C17BA9528F72334 /* KeyboardController */ = { 116 | isa = PBXGroup; 117 | children = ( 118 | 6DD8ED6CDC8289DF35601BF98EDF8BC0 /* KeyboardController */, 119 | DCDCC0A391EC5B002AFFF334D8C97489 /* Support Files */, 120 | ); 121 | name = KeyboardController; 122 | path = ../..; 123 | sourceTree = ""; 124 | }; 125 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */ = { 126 | isa = PBXGroup; 127 | children = ( 128 | E6EE98446B568159EE277B68FD442AF0 /* iOS */, 129 | ); 130 | name = Frameworks; 131 | sourceTree = ""; 132 | }; 133 | 6DD8ED6CDC8289DF35601BF98EDF8BC0 /* KeyboardController */ = { 134 | isa = PBXGroup; 135 | children = ( 136 | A3C8648E5813029F23F4F4EC342F6485 /* Classes */, 137 | ); 138 | name = KeyboardController; 139 | path = KeyboardController; 140 | sourceTree = ""; 141 | }; 142 | 7DB346D0F39D3F0E887471402A8071AB = { 143 | isa = PBXGroup; 144 | children = ( 145 | 93A4A3777CF96A4AAC1D13BA6DCCEA73 /* Podfile */, 146 | BE17F2FD57FB2AFF8E5A228C9CF669CD /* Development Pods */, 147 | 433CD3331B6C3787F473C941B61FC68F /* Frameworks */, 148 | 04D04ECA5CCFF248E7BAA034BB13F98D /* Products */, 149 | D638AD8DD97CEE8C93EC351B0E3489B5 /* Targets Support Files */, 150 | ); 151 | sourceTree = ""; 152 | }; 153 | A3C8648E5813029F23F4F4EC342F6485 /* Classes */ = { 154 | isa = PBXGroup; 155 | children = ( 156 | AC247067D14D14B0F617BD01A3597B11 /* KeyboardController.swift */, 157 | ); 158 | name = Classes; 159 | path = Classes; 160 | sourceTree = ""; 161 | }; 162 | BE17F2FD57FB2AFF8E5A228C9CF669CD /* Development Pods */ = { 163 | isa = PBXGroup; 164 | children = ( 165 | 3801B340102B08137C17BA9528F72334 /* KeyboardController */, 166 | ); 167 | name = "Development Pods"; 168 | sourceTree = ""; 169 | }; 170 | D638AD8DD97CEE8C93EC351B0E3489B5 /* Targets Support Files */ = { 171 | isa = PBXGroup; 172 | children = ( 173 | FAAECB3B6C4BE8FBCC7248F889E03302 /* Pods-KeyboardController_Example */, 174 | E1618845BE709563A7366EAA4094B113 /* Pods-KeyboardController_Tests */, 175 | ); 176 | name = "Targets Support Files"; 177 | sourceTree = ""; 178 | }; 179 | DCDCC0A391EC5B002AFFF334D8C97489 /* Support Files */ = { 180 | isa = PBXGroup; 181 | children = ( 182 | 8689CC5E00AB84FC85FBB184F75F6989 /* Info.plist */, 183 | 55952DD7E88DD6E088869C9D1269514E /* KeyboardController.modulemap */, 184 | 79FECD623DC8050EAE632B9E5DE6EA09 /* KeyboardController.xcconfig */, 185 | 42E1C273752C5E0562DF1C3A622183D0 /* KeyboardController-dummy.m */, 186 | B5C67EB406B1C7E8A8C9780ED8A82B52 /* KeyboardController-prefix.pch */, 187 | B30924FCB4CCEFF99B66F1455E8EACD6 /* KeyboardController-umbrella.h */, 188 | ); 189 | name = "Support Files"; 190 | path = "Example/Pods/Target Support Files/KeyboardController"; 191 | sourceTree = ""; 192 | }; 193 | E1618845BE709563A7366EAA4094B113 /* Pods-KeyboardController_Tests */ = { 194 | isa = PBXGroup; 195 | children = ( 196 | 2029FED1F090DF73AA4750E8C4971F8C /* Info.plist */, 197 | C505680870A8490CBB72ABA11F0A3D97 /* Pods-KeyboardController_Tests.modulemap */, 198 | 91B0EA3DA54F97243BD24F8A03ACB88B /* Pods-KeyboardController_Tests-acknowledgements.markdown */, 199 | D63C4C950DEB655A229D440E6340EA62 /* Pods-KeyboardController_Tests-acknowledgements.plist */, 200 | B0DC226B139E9C13E8BEDCAF548BBBA4 /* Pods-KeyboardController_Tests-dummy.m */, 201 | FA1EB0DA62E85672A74DAB77A27CA118 /* Pods-KeyboardController_Tests-frameworks.sh */, 202 | AFB59F3C72B16DEC14D0EBDD354A43AD /* Pods-KeyboardController_Tests-resources.sh */, 203 | C39CBE6B0BCCAC107FE86A1BD8C507FC /* Pods-KeyboardController_Tests-umbrella.h */, 204 | 271378DEBC4AAF29D2CB59C4D2677579 /* Pods-KeyboardController_Tests.debug.xcconfig */, 205 | F34AE31D4063D0E9DFB747A1BB9F7E5D /* Pods-KeyboardController_Tests.release.xcconfig */, 206 | ); 207 | name = "Pods-KeyboardController_Tests"; 208 | path = "Target Support Files/Pods-KeyboardController_Tests"; 209 | sourceTree = ""; 210 | }; 211 | E6EE98446B568159EE277B68FD442AF0 /* iOS */ = { 212 | isa = PBXGroup; 213 | children = ( 214 | 616BEB51ECCAD129BDBCB7A956B56CC6 /* Foundation.framework */, 215 | 7EC994CDC2D681BA26389F78A7E4B325 /* UIKit.framework */, 216 | ); 217 | name = iOS; 218 | sourceTree = ""; 219 | }; 220 | FAAECB3B6C4BE8FBCC7248F889E03302 /* Pods-KeyboardController_Example */ = { 221 | isa = PBXGroup; 222 | children = ( 223 | 324C1D385B822C4EAECEB5C8271105E2 /* Info.plist */, 224 | 17C2FAEAC50470C67FF24C41AD433777 /* Pods-KeyboardController_Example.modulemap */, 225 | 2BB8F0730253163DC906EAAEF124CA3C /* Pods-KeyboardController_Example-acknowledgements.markdown */, 226 | 64A4416690F4E129B8DFF876E5C2C806 /* Pods-KeyboardController_Example-acknowledgements.plist */, 227 | 5A5441DF20E1488B5395C0B0B2DAD898 /* Pods-KeyboardController_Example-dummy.m */, 228 | 7160E774611510F99DBF7C66631B609A /* Pods-KeyboardController_Example-frameworks.sh */, 229 | F48DFF55ADD48BF0902FEFFC9AC90F5C /* Pods-KeyboardController_Example-resources.sh */, 230 | 6ABB31F0D8C2C1CC45EAFA7AC7B5C438 /* Pods-KeyboardController_Example-umbrella.h */, 231 | CF5D257EFF8F5E6055BDEFFAF99C36C6 /* Pods-KeyboardController_Example.debug.xcconfig */, 232 | C371A32F5BBBC933A45A2C14CDFFE103 /* Pods-KeyboardController_Example.release.xcconfig */, 233 | ); 234 | name = "Pods-KeyboardController_Example"; 235 | path = "Target Support Files/Pods-KeyboardController_Example"; 236 | sourceTree = ""; 237 | }; 238 | /* End PBXGroup section */ 239 | 240 | /* Begin PBXHeadersBuildPhase section */ 241 | 38DB77DE6CC8C6CBE98DEA8ABC206F5D /* Headers */ = { 242 | isa = PBXHeadersBuildPhase; 243 | buildActionMask = 2147483647; 244 | files = ( 245 | 5E928B973A3BFDFE25448CC34D8E83D9 /* Pods-KeyboardController_Tests-umbrella.h in Headers */, 246 | ); 247 | runOnlyForDeploymentPostprocessing = 0; 248 | }; 249 | 5B9FE59D5FB730193D0F86E4E66DE1EC /* Headers */ = { 250 | isa = PBXHeadersBuildPhase; 251 | buildActionMask = 2147483647; 252 | files = ( 253 | D17EE85DC990BE3B1A6DDA22EF4FE3E4 /* KeyboardController-umbrella.h in Headers */, 254 | ); 255 | runOnlyForDeploymentPostprocessing = 0; 256 | }; 257 | F4497A1B41407427754D56237597519A /* Headers */ = { 258 | isa = PBXHeadersBuildPhase; 259 | buildActionMask = 2147483647; 260 | files = ( 261 | F16895A4528181B5BF5A90C3BCDA353A /* Pods-KeyboardController_Example-umbrella.h in Headers */, 262 | ); 263 | runOnlyForDeploymentPostprocessing = 0; 264 | }; 265 | /* End PBXHeadersBuildPhase section */ 266 | 267 | /* Begin PBXNativeTarget section */ 268 | 461A9F5E5725FF3DB7651E3D88609C76 /* KeyboardController */ = { 269 | isa = PBXNativeTarget; 270 | buildConfigurationList = 347E5F2E0DE97A6843DA2DB1FB77047F /* Build configuration list for PBXNativeTarget "KeyboardController" */; 271 | buildPhases = ( 272 | B531BEFD5DD9CDBA3BF0DA377C2C8037 /* Sources */, 273 | 1527DEB10D31D4EC96B6EFE6E81C7462 /* Frameworks */, 274 | 5B9FE59D5FB730193D0F86E4E66DE1EC /* Headers */, 275 | ); 276 | buildRules = ( 277 | ); 278 | dependencies = ( 279 | ); 280 | name = KeyboardController; 281 | productName = KeyboardController; 282 | productReference = 55C0B9F358D723721FE06656F0B2965C /* KeyboardController.framework */; 283 | productType = "com.apple.product-type.framework"; 284 | }; 285 | 9CDB2687E45D95F0225C9B7D724349B9 /* Pods-KeyboardController_Tests */ = { 286 | isa = PBXNativeTarget; 287 | buildConfigurationList = 568287A3AFE1BA7A48F8563142A13F38 /* Build configuration list for PBXNativeTarget "Pods-KeyboardController_Tests" */; 288 | buildPhases = ( 289 | 45E5CA0A6BB3DD69E44E7DF866D9B7FC /* Sources */, 290 | 19878C8E299607121CF4BB17339094C0 /* Frameworks */, 291 | 38DB77DE6CC8C6CBE98DEA8ABC206F5D /* Headers */, 292 | ); 293 | buildRules = ( 294 | ); 295 | dependencies = ( 296 | 1C47C40398683D8B1D9030B03E40A954 /* PBXTargetDependency */, 297 | ); 298 | name = "Pods-KeyboardController_Tests"; 299 | productName = "Pods-KeyboardController_Tests"; 300 | productReference = 35371BB9D71005FD9FB656236124425F /* Pods_KeyboardController_Tests.framework */; 301 | productType = "com.apple.product-type.framework"; 302 | }; 303 | EE02A1D06AB37141B456F70C1E7C2A0E /* Pods-KeyboardController_Example */ = { 304 | isa = PBXNativeTarget; 305 | buildConfigurationList = D040BF1C3E6C222C05AA87C272C7FBCF /* Build configuration list for PBXNativeTarget "Pods-KeyboardController_Example" */; 306 | buildPhases = ( 307 | D2D319F8B7791E1CB474EA46A7CD24E2 /* Sources */, 308 | 04B4731388E1254D5FC84B1B775C8971 /* Frameworks */, 309 | F4497A1B41407427754D56237597519A /* Headers */, 310 | ); 311 | buildRules = ( 312 | ); 313 | dependencies = ( 314 | 9A658C23E5E007A7C2C734B535E0B8A9 /* PBXTargetDependency */, 315 | ); 316 | name = "Pods-KeyboardController_Example"; 317 | productName = "Pods-KeyboardController_Example"; 318 | productReference = B4D71F6E2CFDECC6A6F38B1A9E481B7B /* Pods_KeyboardController_Example.framework */; 319 | productType = "com.apple.product-type.framework"; 320 | }; 321 | /* End PBXNativeTarget section */ 322 | 323 | /* Begin PBXProject section */ 324 | D41D8CD98F00B204E9800998ECF8427E /* Project object */ = { 325 | isa = PBXProject; 326 | attributes = { 327 | LastSwiftUpdateCheck = 0730; 328 | LastUpgradeCheck = 0700; 329 | }; 330 | buildConfigurationList = 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */; 331 | compatibilityVersion = "Xcode 3.2"; 332 | developmentRegion = English; 333 | hasScannedForEncodings = 0; 334 | knownRegions = ( 335 | en, 336 | ); 337 | mainGroup = 7DB346D0F39D3F0E887471402A8071AB; 338 | productRefGroup = 04D04ECA5CCFF248E7BAA034BB13F98D /* Products */; 339 | projectDirPath = ""; 340 | projectRoot = ""; 341 | targets = ( 342 | 461A9F5E5725FF3DB7651E3D88609C76 /* KeyboardController */, 343 | EE02A1D06AB37141B456F70C1E7C2A0E /* Pods-KeyboardController_Example */, 344 | 9CDB2687E45D95F0225C9B7D724349B9 /* Pods-KeyboardController_Tests */, 345 | ); 346 | }; 347 | /* End PBXProject section */ 348 | 349 | /* Begin PBXSourcesBuildPhase section */ 350 | 45E5CA0A6BB3DD69E44E7DF866D9B7FC /* Sources */ = { 351 | isa = PBXSourcesBuildPhase; 352 | buildActionMask = 2147483647; 353 | files = ( 354 | 450AD110023D31B52D9F95F39C7EBE09 /* Pods-KeyboardController_Tests-dummy.m in Sources */, 355 | ); 356 | runOnlyForDeploymentPostprocessing = 0; 357 | }; 358 | B531BEFD5DD9CDBA3BF0DA377C2C8037 /* Sources */ = { 359 | isa = PBXSourcesBuildPhase; 360 | buildActionMask = 2147483647; 361 | files = ( 362 | 5646EC7B57B2E0B89996945A0543F8D8 /* KeyboardController-dummy.m in Sources */, 363 | A9D3D527181EFF297EC2E098FA189D0E /* KeyboardController.swift in Sources */, 364 | ); 365 | runOnlyForDeploymentPostprocessing = 0; 366 | }; 367 | D2D319F8B7791E1CB474EA46A7CD24E2 /* Sources */ = { 368 | isa = PBXSourcesBuildPhase; 369 | buildActionMask = 2147483647; 370 | files = ( 371 | 205CA98E7B620C05FD9429F02C261D8F /* Pods-KeyboardController_Example-dummy.m in Sources */, 372 | ); 373 | runOnlyForDeploymentPostprocessing = 0; 374 | }; 375 | /* End PBXSourcesBuildPhase section */ 376 | 377 | /* Begin PBXTargetDependency section */ 378 | 1C47C40398683D8B1D9030B03E40A954 /* PBXTargetDependency */ = { 379 | isa = PBXTargetDependency; 380 | name = KeyboardController; 381 | target = 461A9F5E5725FF3DB7651E3D88609C76 /* KeyboardController */; 382 | targetProxy = 19FA0D9C5B2D1D85ECFC1B3DFDBDEA73 /* PBXContainerItemProxy */; 383 | }; 384 | 9A658C23E5E007A7C2C734B535E0B8A9 /* PBXTargetDependency */ = { 385 | isa = PBXTargetDependency; 386 | name = KeyboardController; 387 | target = 461A9F5E5725FF3DB7651E3D88609C76 /* KeyboardController */; 388 | targetProxy = C4EBB495D1ED3B56F6954D5D40261080 /* PBXContainerItemProxy */; 389 | }; 390 | /* End PBXTargetDependency section */ 391 | 392 | /* Begin XCBuildConfiguration section */ 393 | 145318DA90A24719F102491A09260160 /* Debug */ = { 394 | isa = XCBuildConfiguration; 395 | baseConfigurationReference = 271378DEBC4AAF29D2CB59C4D2677579 /* Pods-KeyboardController_Tests.debug.xcconfig */; 396 | buildSettings = { 397 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 398 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 399 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 400 | CURRENT_PROJECT_VERSION = 1; 401 | DEBUG_INFORMATION_FORMAT = dwarf; 402 | DEFINES_MODULE = YES; 403 | DYLIB_COMPATIBILITY_VERSION = 1; 404 | DYLIB_CURRENT_VERSION = 1; 405 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 406 | ENABLE_STRICT_OBJC_MSGSEND = YES; 407 | GCC_NO_COMMON_BLOCKS = YES; 408 | INFOPLIST_FILE = "Target Support Files/Pods-KeyboardController_Tests/Info.plist"; 409 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 410 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 411 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 412 | MACH_O_TYPE = staticlib; 413 | MODULEMAP_FILE = "Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests.modulemap"; 414 | MTL_ENABLE_DEBUG_INFO = YES; 415 | OTHER_LDFLAGS = ""; 416 | OTHER_LIBTOOLFLAGS = ""; 417 | PODS_ROOT = "$(SRCROOT)"; 418 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 419 | PRODUCT_NAME = Pods_KeyboardController_Tests; 420 | SDKROOT = iphoneos; 421 | SKIP_INSTALL = YES; 422 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 423 | TARGETED_DEVICE_FAMILY = "1,2"; 424 | VERSIONING_SYSTEM = "apple-generic"; 425 | VERSION_INFO_PREFIX = ""; 426 | }; 427 | name = Debug; 428 | }; 429 | 31ECD05C603E93DC968972A1DEA484A5 /* Release */ = { 430 | isa = XCBuildConfiguration; 431 | baseConfigurationReference = 79FECD623DC8050EAE632B9E5DE6EA09 /* KeyboardController.xcconfig */; 432 | buildSettings = { 433 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 434 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 435 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 436 | CURRENT_PROJECT_VERSION = 1; 437 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 438 | DEFINES_MODULE = YES; 439 | DYLIB_COMPATIBILITY_VERSION = 1; 440 | DYLIB_CURRENT_VERSION = 1; 441 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 442 | ENABLE_STRICT_OBJC_MSGSEND = YES; 443 | GCC_NO_COMMON_BLOCKS = YES; 444 | GCC_PREFIX_HEADER = "Target Support Files/KeyboardController/KeyboardController-prefix.pch"; 445 | INFOPLIST_FILE = "Target Support Files/KeyboardController/Info.plist"; 446 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 447 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 448 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 449 | MODULEMAP_FILE = "Target Support Files/KeyboardController/KeyboardController.modulemap"; 450 | MTL_ENABLE_DEBUG_INFO = NO; 451 | PRODUCT_NAME = KeyboardController; 452 | SDKROOT = iphoneos; 453 | SKIP_INSTALL = YES; 454 | SWIFT_VERSION = 3.0; 455 | TARGETED_DEVICE_FAMILY = "1,2"; 456 | VERSIONING_SYSTEM = "apple-generic"; 457 | VERSION_INFO_PREFIX = ""; 458 | }; 459 | name = Release; 460 | }; 461 | 453EAA33B6044F0C73036E1090A75672 /* Debug */ = { 462 | isa = XCBuildConfiguration; 463 | baseConfigurationReference = 79FECD623DC8050EAE632B9E5DE6EA09 /* KeyboardController.xcconfig */; 464 | buildSettings = { 465 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 466 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 467 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 468 | CURRENT_PROJECT_VERSION = 1; 469 | DEBUG_INFORMATION_FORMAT = dwarf; 470 | DEFINES_MODULE = YES; 471 | DYLIB_COMPATIBILITY_VERSION = 1; 472 | DYLIB_CURRENT_VERSION = 1; 473 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 474 | ENABLE_STRICT_OBJC_MSGSEND = YES; 475 | GCC_NO_COMMON_BLOCKS = YES; 476 | GCC_PREFIX_HEADER = "Target Support Files/KeyboardController/KeyboardController-prefix.pch"; 477 | INFOPLIST_FILE = "Target Support Files/KeyboardController/Info.plist"; 478 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 479 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 480 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 481 | MODULEMAP_FILE = "Target Support Files/KeyboardController/KeyboardController.modulemap"; 482 | MTL_ENABLE_DEBUG_INFO = YES; 483 | PRODUCT_NAME = KeyboardController; 484 | SDKROOT = iphoneos; 485 | SKIP_INSTALL = YES; 486 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 487 | SWIFT_VERSION = 3.0; 488 | TARGETED_DEVICE_FAMILY = "1,2"; 489 | VERSIONING_SYSTEM = "apple-generic"; 490 | VERSION_INFO_PREFIX = ""; 491 | }; 492 | name = Debug; 493 | }; 494 | 852E7367F1FED7C38270F36E2F26DBA3 /* Debug */ = { 495 | isa = XCBuildConfiguration; 496 | baseConfigurationReference = CF5D257EFF8F5E6055BDEFFAF99C36C6 /* Pods-KeyboardController_Example.debug.xcconfig */; 497 | buildSettings = { 498 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 499 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 500 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 501 | CURRENT_PROJECT_VERSION = 1; 502 | DEBUG_INFORMATION_FORMAT = dwarf; 503 | DEFINES_MODULE = YES; 504 | DYLIB_COMPATIBILITY_VERSION = 1; 505 | DYLIB_CURRENT_VERSION = 1; 506 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 507 | ENABLE_STRICT_OBJC_MSGSEND = YES; 508 | GCC_NO_COMMON_BLOCKS = YES; 509 | INFOPLIST_FILE = "Target Support Files/Pods-KeyboardController_Example/Info.plist"; 510 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 511 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 512 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 513 | MACH_O_TYPE = staticlib; 514 | MODULEMAP_FILE = "Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example.modulemap"; 515 | MTL_ENABLE_DEBUG_INFO = YES; 516 | OTHER_LDFLAGS = ""; 517 | OTHER_LIBTOOLFLAGS = ""; 518 | PODS_ROOT = "$(SRCROOT)"; 519 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 520 | PRODUCT_NAME = Pods_KeyboardController_Example; 521 | SDKROOT = iphoneos; 522 | SKIP_INSTALL = YES; 523 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 524 | TARGETED_DEVICE_FAMILY = "1,2"; 525 | VERSIONING_SYSTEM = "apple-generic"; 526 | VERSION_INFO_PREFIX = ""; 527 | }; 528 | name = Debug; 529 | }; 530 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */ = { 531 | isa = XCBuildConfiguration; 532 | buildSettings = { 533 | ALWAYS_SEARCH_USER_PATHS = NO; 534 | CLANG_ANALYZER_NONNULL = YES; 535 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 536 | CLANG_CXX_LIBRARY = "libc++"; 537 | CLANG_ENABLE_MODULES = YES; 538 | CLANG_ENABLE_OBJC_ARC = YES; 539 | CLANG_WARN_BOOL_CONVERSION = YES; 540 | CLANG_WARN_CONSTANT_CONVERSION = YES; 541 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 542 | CLANG_WARN_EMPTY_BODY = YES; 543 | CLANG_WARN_ENUM_CONVERSION = YES; 544 | CLANG_WARN_INT_CONVERSION = YES; 545 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 546 | CLANG_WARN_UNREACHABLE_CODE = YES; 547 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 548 | CODE_SIGNING_REQUIRED = NO; 549 | COPY_PHASE_STRIP = YES; 550 | ENABLE_NS_ASSERTIONS = NO; 551 | GCC_C_LANGUAGE_STANDARD = gnu99; 552 | GCC_PREPROCESSOR_DEFINITIONS = ( 553 | "POD_CONFIGURATION_RELEASE=1", 554 | "$(inherited)", 555 | ); 556 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 557 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 558 | GCC_WARN_UNDECLARED_SELECTOR = YES; 559 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 560 | GCC_WARN_UNUSED_FUNCTION = YES; 561 | GCC_WARN_UNUSED_VARIABLE = YES; 562 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 563 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 564 | STRIP_INSTALLED_PRODUCT = NO; 565 | SYMROOT = "${SRCROOT}/../build"; 566 | VALIDATE_PRODUCT = YES; 567 | }; 568 | name = Release; 569 | }; 570 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */ = { 571 | isa = XCBuildConfiguration; 572 | buildSettings = { 573 | ALWAYS_SEARCH_USER_PATHS = NO; 574 | CLANG_ANALYZER_NONNULL = YES; 575 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 576 | CLANG_CXX_LIBRARY = "libc++"; 577 | CLANG_ENABLE_MODULES = YES; 578 | CLANG_ENABLE_OBJC_ARC = YES; 579 | CLANG_WARN_BOOL_CONVERSION = YES; 580 | CLANG_WARN_CONSTANT_CONVERSION = YES; 581 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES; 582 | CLANG_WARN_EMPTY_BODY = YES; 583 | CLANG_WARN_ENUM_CONVERSION = YES; 584 | CLANG_WARN_INT_CONVERSION = YES; 585 | CLANG_WARN_OBJC_ROOT_CLASS = YES; 586 | CLANG_WARN_UNREACHABLE_CODE = YES; 587 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 588 | CODE_SIGNING_REQUIRED = NO; 589 | COPY_PHASE_STRIP = NO; 590 | ENABLE_TESTABILITY = YES; 591 | GCC_C_LANGUAGE_STANDARD = gnu99; 592 | GCC_DYNAMIC_NO_PIC = NO; 593 | GCC_OPTIMIZATION_LEVEL = 0; 594 | GCC_PREPROCESSOR_DEFINITIONS = ( 595 | "POD_CONFIGURATION_DEBUG=1", 596 | "DEBUG=1", 597 | "$(inherited)", 598 | ); 599 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 600 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 601 | GCC_WARN_ABOUT_RETURN_TYPE = YES; 602 | GCC_WARN_UNDECLARED_SELECTOR = YES; 603 | GCC_WARN_UNINITIALIZED_AUTOS = YES; 604 | GCC_WARN_UNUSED_FUNCTION = YES; 605 | GCC_WARN_UNUSED_VARIABLE = YES; 606 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 607 | ONLY_ACTIVE_ARCH = YES; 608 | PROVISIONING_PROFILE_SPECIFIER = NO_SIGNING/; 609 | STRIP_INSTALLED_PRODUCT = NO; 610 | SYMROOT = "${SRCROOT}/../build"; 611 | }; 612 | name = Debug; 613 | }; 614 | 9FB8F15CAB8F0D1BD5E650A4860255E6 /* Release */ = { 615 | isa = XCBuildConfiguration; 616 | baseConfigurationReference = F34AE31D4063D0E9DFB747A1BB9F7E5D /* Pods-KeyboardController_Tests.release.xcconfig */; 617 | buildSettings = { 618 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 619 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 620 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 621 | CURRENT_PROJECT_VERSION = 1; 622 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 623 | DEFINES_MODULE = YES; 624 | DYLIB_COMPATIBILITY_VERSION = 1; 625 | DYLIB_CURRENT_VERSION = 1; 626 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 627 | ENABLE_STRICT_OBJC_MSGSEND = YES; 628 | GCC_NO_COMMON_BLOCKS = YES; 629 | INFOPLIST_FILE = "Target Support Files/Pods-KeyboardController_Tests/Info.plist"; 630 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 631 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 632 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 633 | MACH_O_TYPE = staticlib; 634 | MODULEMAP_FILE = "Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests.modulemap"; 635 | MTL_ENABLE_DEBUG_INFO = NO; 636 | OTHER_LDFLAGS = ""; 637 | OTHER_LIBTOOLFLAGS = ""; 638 | PODS_ROOT = "$(SRCROOT)"; 639 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 640 | PRODUCT_NAME = Pods_KeyboardController_Tests; 641 | SDKROOT = iphoneos; 642 | SKIP_INSTALL = YES; 643 | TARGETED_DEVICE_FAMILY = "1,2"; 644 | VERSIONING_SYSTEM = "apple-generic"; 645 | VERSION_INFO_PREFIX = ""; 646 | }; 647 | name = Release; 648 | }; 649 | EC7758E5CDF537FDDF51B8F346673CAA /* Release */ = { 650 | isa = XCBuildConfiguration; 651 | baseConfigurationReference = C371A32F5BBBC933A45A2C14CDFFE103 /* Pods-KeyboardController_Example.release.xcconfig */; 652 | buildSettings = { 653 | "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; 654 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; 655 | "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; 656 | CURRENT_PROJECT_VERSION = 1; 657 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 658 | DEFINES_MODULE = YES; 659 | DYLIB_COMPATIBILITY_VERSION = 1; 660 | DYLIB_CURRENT_VERSION = 1; 661 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 662 | ENABLE_STRICT_OBJC_MSGSEND = YES; 663 | GCC_NO_COMMON_BLOCKS = YES; 664 | INFOPLIST_FILE = "Target Support Files/Pods-KeyboardController_Example/Info.plist"; 665 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 666 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 667 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 668 | MACH_O_TYPE = staticlib; 669 | MODULEMAP_FILE = "Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example.modulemap"; 670 | MTL_ENABLE_DEBUG_INFO = NO; 671 | OTHER_LDFLAGS = ""; 672 | OTHER_LIBTOOLFLAGS = ""; 673 | PODS_ROOT = "$(SRCROOT)"; 674 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; 675 | PRODUCT_NAME = Pods_KeyboardController_Example; 676 | SDKROOT = iphoneos; 677 | SKIP_INSTALL = YES; 678 | TARGETED_DEVICE_FAMILY = "1,2"; 679 | VERSIONING_SYSTEM = "apple-generic"; 680 | VERSION_INFO_PREFIX = ""; 681 | }; 682 | name = Release; 683 | }; 684 | /* End XCBuildConfiguration section */ 685 | 686 | /* Begin XCConfigurationList section */ 687 | 2D8E8EC45A3A1A1D94AE762CB5028504 /* Build configuration list for PBXProject "Pods" */ = { 688 | isa = XCConfigurationList; 689 | buildConfigurations = ( 690 | 9E1E4E48AF2EAB23169E611BF694090A /* Debug */, 691 | 8DED8AD26D381A6ACFF202E5217EC498 /* Release */, 692 | ); 693 | defaultConfigurationIsVisible = 0; 694 | defaultConfigurationName = Release; 695 | }; 696 | 347E5F2E0DE97A6843DA2DB1FB77047F /* Build configuration list for PBXNativeTarget "KeyboardController" */ = { 697 | isa = XCConfigurationList; 698 | buildConfigurations = ( 699 | 453EAA33B6044F0C73036E1090A75672 /* Debug */, 700 | 31ECD05C603E93DC968972A1DEA484A5 /* Release */, 701 | ); 702 | defaultConfigurationIsVisible = 0; 703 | defaultConfigurationName = Release; 704 | }; 705 | 568287A3AFE1BA7A48F8563142A13F38 /* Build configuration list for PBXNativeTarget "Pods-KeyboardController_Tests" */ = { 706 | isa = XCConfigurationList; 707 | buildConfigurations = ( 708 | 145318DA90A24719F102491A09260160 /* Debug */, 709 | 9FB8F15CAB8F0D1BD5E650A4860255E6 /* Release */, 710 | ); 711 | defaultConfigurationIsVisible = 0; 712 | defaultConfigurationName = Release; 713 | }; 714 | D040BF1C3E6C222C05AA87C272C7FBCF /* Build configuration list for PBXNativeTarget "Pods-KeyboardController_Example" */ = { 715 | isa = XCConfigurationList; 716 | buildConfigurations = ( 717 | 852E7367F1FED7C38270F36E2F26DBA3 /* Debug */, 718 | EC7758E5CDF537FDDF51B8F346673CAA /* Release */, 719 | ); 720 | defaultConfigurationIsVisible = 0; 721 | defaultConfigurationName = Release; 722 | }; 723 | /* End XCConfigurationList section */ 724 | }; 725 | rootObject = D41D8CD98F00B204E9800998ECF8427E /* Project object */; 726 | } 727 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KeyboardController/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 | 3.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KeyboardController/KeyboardController-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_KeyboardController : NSObject 3 | @end 4 | @implementation PodsDummy_KeyboardController 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KeyboardController/KeyboardController-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KeyboardController/KeyboardController-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double KeyboardControllerVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char KeyboardControllerVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KeyboardController/KeyboardController.modulemap: -------------------------------------------------------------------------------- 1 | framework module KeyboardController { 2 | umbrella header "KeyboardController-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/KeyboardController/KeyboardController.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/KeyboardController 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_LDFLAGS = -framework "UIKit" 5 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 6 | PODS_BUILD_DIR = $BUILD_DIR 7 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_ROOT = ${SRCROOT} 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_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-KeyboardController_Example/Pods-KeyboardController_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## KeyboardController 5 | 6 | Copyright (c) 2016 Michal Konturek 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2016 Michal Konturek <michal.konturek@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | KeyboardController 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_KeyboardController_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_KeyboardController_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/KeyboardController/KeyboardController.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/KeyboardController/KeyboardController.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 42 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 43 | ;; 44 | *.xib) 45 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 46 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double Pods_KeyboardController_ExampleVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char Pods_KeyboardController_ExampleVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KeyboardController" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/KeyboardController/KeyboardController.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "KeyboardController" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_KeyboardController_Example { 2 | umbrella header "Pods-KeyboardController_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Example/Pods-KeyboardController_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KeyboardController" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/KeyboardController/KeyboardController.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "KeyboardController" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_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-KeyboardController_Tests/Pods-KeyboardController_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## KeyboardController 5 | 6 | Copyright (c) 2016 Michal Konturek 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_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 | Copyright (c) 2016 Michal Konturek <michal.konturek@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | KeyboardController 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_KeyboardController_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_KeyboardController_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | install_framework() 10 | { 11 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 12 | local source="${BUILT_PRODUCTS_DIR}/$1" 13 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 14 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 15 | elif [ -r "$1" ]; then 16 | local source="$1" 17 | fi 18 | 19 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 20 | 21 | if [ -L "${source}" ]; then 22 | echo "Symlinked..." 23 | source="$(readlink "${source}")" 24 | fi 25 | 26 | # use filter instead of exclude so missing patterns dont' throw errors 27 | echo "rsync -av --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 28 | rsync -av --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 29 | 30 | local basename 31 | basename="$(basename -s .framework "$1")" 32 | binary="${destination}/${basename}.framework/${basename}" 33 | if ! [ -r "$binary" ]; then 34 | binary="${destination}/${basename}" 35 | fi 36 | 37 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 38 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 39 | strip_invalid_archs "$binary" 40 | fi 41 | 42 | # Resign the code if required by the build settings to avoid unstable apps 43 | code_sign_if_enabled "${destination}/$(basename "$1")" 44 | 45 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 46 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 47 | local swift_runtime_libs 48 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 49 | for lib in $swift_runtime_libs; do 50 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 51 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 52 | code_sign_if_enabled "${destination}/${lib}" 53 | done 54 | fi 55 | } 56 | 57 | # Signs a framework with the provided identity 58 | code_sign_if_enabled() { 59 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 60 | # Use the current code_sign_identitiy 61 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 62 | echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements \"$1\"" 63 | /usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements "$1" 64 | fi 65 | } 66 | 67 | # Strip invalid architectures 68 | strip_invalid_archs() { 69 | binary="$1" 70 | # Get architectures for current file 71 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 72 | stripped="" 73 | for arch in $archs; do 74 | if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then 75 | # Strip non-valid architectures in-place 76 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 77 | stripped="$stripped $arch" 78 | fi 79 | done 80 | if [[ "$stripped" ]]; then 81 | echo "Stripped $binary of architectures:$stripped" 82 | fi 83 | } 84 | 85 | 86 | if [[ "$CONFIGURATION" == "Debug" ]]; then 87 | install_framework "$BUILT_PRODUCTS_DIR/KeyboardController/KeyboardController.framework" 88 | fi 89 | if [[ "$CONFIGURATION" == "Release" ]]; then 90 | install_framework "$BUILT_PRODUCTS_DIR/KeyboardController/KeyboardController.framework" 91 | fi 92 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | case "${TARGETED_DEVICE_FAMILY}" in 12 | 1,2) 13 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 14 | ;; 15 | 1) 16 | TARGET_DEVICE_ARGS="--target-device iphone" 17 | ;; 18 | 2) 19 | TARGET_DEVICE_ARGS="--target-device ipad" 20 | ;; 21 | *) 22 | TARGET_DEVICE_ARGS="--target-device mac" 23 | ;; 24 | esac 25 | 26 | install_resource() 27 | { 28 | if [[ "$1" = /* ]] ; then 29 | RESOURCE_PATH="$1" 30 | else 31 | RESOURCE_PATH="${PODS_ROOT}/$1" 32 | fi 33 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 34 | cat << EOM 35 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 36 | EOM 37 | exit 1 38 | fi 39 | case $RESOURCE_PATH in 40 | *.storyboard) 41 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 42 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 43 | ;; 44 | *.xib) 45 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" 46 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 47 | ;; 48 | *.framework) 49 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 50 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 51 | echo "rsync -av $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 52 | rsync -av "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 53 | ;; 54 | *.xcdatamodel) 55 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" 56 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 57 | ;; 58 | *.xcdatamodeld) 59 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" 60 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 61 | ;; 62 | *.xcmappingmodel) 63 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" 64 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 65 | ;; 66 | *.xcassets) 67 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 68 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 69 | ;; 70 | *) 71 | echo "$RESOURCE_PATH" 72 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 73 | ;; 74 | esac 75 | } 76 | 77 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 78 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 79 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 80 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 81 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 82 | fi 83 | rm -f "$RESOURCES_TO_COPY" 84 | 85 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 86 | then 87 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 88 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 89 | while read line; do 90 | if [[ $line != "${PODS_ROOT}*" ]]; then 91 | XCASSET_FILES+=("$line") 92 | fi 93 | done <<<"$OTHER_XCASSETS" 94 | 95 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 96 | fi 97 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #endif 4 | 5 | 6 | FOUNDATION_EXPORT double Pods_KeyboardController_TestsVersionNumber; 7 | FOUNDATION_EXPORT const unsigned char Pods_KeyboardController_TestsVersionString[]; 8 | 9 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KeyboardController" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/KeyboardController/KeyboardController.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "KeyboardController" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_KeyboardController_Tests { 2 | umbrella header "Pods-KeyboardController_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-KeyboardController_Tests/Pods-KeyboardController_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | EMBEDDED_CONTENT_CONTAINS_SWIFT = YES 3 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/KeyboardController" 4 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 5 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 6 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/KeyboardController/KeyboardController.framework/Headers" 7 | OTHER_LDFLAGS = $(inherited) -framework "KeyboardController" 8 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 9 | PODS_BUILD_DIR = $BUILD_DIR 10 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/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/KeyboardControllerTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KeyboardControllerTests.swift 3 | // KeyboardController 4 | // 5 | // Copyright (c) 2016 Michal Konturek 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | 27 | import UIKit 28 | import XCTest 29 | 30 | @testable import KeyboardController 31 | 32 | class KeyboardControllerTests: XCTestCase { 33 | var sut: KeyboardController! 34 | 35 | let fakeCenter: FakeNotificationCenter = FakeNotificationCenter() 36 | 37 | let mockTextFieldDelegate: MockTextFieldDelegate = MockTextFieldDelegate() 38 | let mockTextField1: MockTextField = MockTextField() 39 | let mockTextField2: MockTextField = MockTextField() 40 | let mockTextField3: MockTextField = MockTextField() 41 | var mockFields: Array = [] 42 | 43 | override func setUp() { 44 | super.setUp() 45 | 46 | self.mockFields = [self.mockTextField1, self.mockTextField2, self.mockTextField3] 47 | self.sut = KeyboardController(fields: self.mockFields, 48 | notificationCenter: self.fakeCenter) 49 | } 50 | 51 | func test_init() { 52 | 53 | // then 54 | XCTAssertTrue(self.sut.fields == self.mockFields) 55 | XCTAssertTrue(self.sut.notificationCenter === self.fakeCenter) 56 | XCTAssertTrue(self.mockTextField1.delegate === self.sut) 57 | XCTAssertTrue(self.mockTextField2.delegate === self.sut) 58 | XCTAssertTrue(self.mockTextField3.delegate === self.sut) 59 | 60 | self.assertRegisteredObserver(self.fakeCenter.registeredObservers[0], 61 | observer: self.sut, 62 | name: Notification.Name.UIKeyboardDidHide, 63 | object: nil) 64 | self.assertRegisteredObserver(self.fakeCenter.registeredObservers[1], 65 | observer: self.sut, 66 | name: Notification.Name.UIKeyboardDidShow, 67 | object: nil) 68 | self.assertRegisteredObserver(self.fakeCenter.registeredObservers[2], 69 | observer: self.sut, 70 | name: Notification.Name.UIKeyboardWillHide, 71 | object: nil) 72 | self.assertRegisteredObserver(self.fakeCenter.registeredObservers[3], 73 | observer: self.sut, 74 | name: Notification.Name.UIKeyboardWillShow, 75 | object: nil) 76 | } 77 | 78 | func assertRegisteredObserver(_ registered: TestRegisteredObserver, 79 | observer: AnyObject, 80 | name: Notification.Name, 81 | object: AnyObject?) { 82 | XCTAssertTrue(registered.observer === observer) 83 | XCTAssertTrue(registered.name == name) 84 | XCTAssertTrue(registered.object === object) 85 | } 86 | 87 | func test_closeKeyboard() { 88 | 89 | // given 90 | self.mockTextField2.isEditing = true 91 | 92 | // when 93 | self.sut.closeKeyboard() 94 | 95 | // then 96 | XCTAssertFalse(self.mockTextField1.didResignFirstResponder) 97 | XCTAssertTrue(self.mockTextField2.didResignFirstResponder) 98 | XCTAssertFalse(self.mockTextField3.didResignFirstResponder) 99 | } 100 | 101 | func test_moveToPreviousField() { 102 | 103 | // given 104 | self.mockTextField2.isEditing = true 105 | 106 | // when 107 | self.sut.moveToPreviousField() 108 | 109 | // then 110 | XCTAssertTrue(self.mockTextField1.didBecomeFirstResponder) 111 | XCTAssertFalse(self.mockTextField2.didBecomeFirstResponder) 112 | XCTAssertFalse(self.mockTextField3.didBecomeFirstResponder) 113 | } 114 | 115 | func test_moveToPreviousField_doesNot() { 116 | 117 | // given 118 | self.mockTextField1.isEditing = true 119 | 120 | // when 121 | self.sut.moveToPreviousField() 122 | 123 | // then 124 | XCTAssertFalse(self.mockTextField1.didBecomeFirstResponder) 125 | XCTAssertFalse(self.mockTextField2.didBecomeFirstResponder) 126 | XCTAssertFalse(self.mockTextField3.didBecomeFirstResponder) 127 | } 128 | 129 | func test_moveToNextField() { 130 | 131 | // given 132 | self.mockTextField1.isEditing = true 133 | 134 | // when 135 | self.sut.moveToNextField() 136 | 137 | // then 138 | XCTAssertFalse(self.mockTextField1.didBecomeFirstResponder) 139 | XCTAssertTrue(self.mockTextField2.didBecomeFirstResponder) 140 | XCTAssertFalse(self.mockTextField3.didBecomeFirstResponder) 141 | } 142 | 143 | func test_moveToNextField_doesNot() { 144 | 145 | // given 146 | self.mockTextField3.isEditing = true 147 | 148 | // when 149 | self.sut.moveToNextField() 150 | 151 | // then 152 | XCTAssertFalse(self.mockTextField1.didBecomeFirstResponder) 153 | XCTAssertFalse(self.mockTextField2.didBecomeFirstResponder) 154 | XCTAssertFalse(self.mockTextField3.didBecomeFirstResponder) 155 | } 156 | 157 | func test_textFieldDelegate_beginEditing() { 158 | 159 | // given 160 | self.sut.textFieldDelegate = self.mockTextFieldDelegate 161 | 162 | // when 163 | self.sut.textFieldDidBeginEditing(self.mockTextField1) 164 | 165 | // then 166 | XCTAssertTrue(self.mockTextFieldDelegate.didTextFieldDidBeginEditing) 167 | XCTAssertTrue(self.mockTextFieldDelegate.capturedTextField === self.mockTextField1) 168 | } 169 | 170 | func test_textFieldDelegate_endEditing() { 171 | 172 | // given 173 | self.sut.textFieldDelegate = self.mockTextFieldDelegate 174 | 175 | // when 176 | self.sut.textFieldDidEndEditing(self.mockTextField1) 177 | 178 | // then 179 | XCTAssertTrue(self.mockTextFieldDelegate.didTextFieldDidEndEditing) 180 | XCTAssertTrue(self.mockTextFieldDelegate.capturedTextField === self.mockTextField1) 181 | } 182 | 183 | func test_textFieldShouldReturn_returnsTrue() { 184 | 185 | // given 186 | self.mockTextField1.isEditing = true 187 | self.mockTextField1.returnKeyType = .done 188 | 189 | // when 190 | let result = self.sut.textFieldShouldReturn(self.mockTextField1) 191 | 192 | // then 193 | XCTAssertTrue(result) 194 | XCTAssertTrue(self.mockTextField1.didResignFirstResponder) 195 | } 196 | 197 | func test_textFieldShouldReturn_returnsFalse() { 198 | 199 | // given 200 | self.mockTextField1.isEditing = true 201 | self.mockTextField1.returnKeyType = .next 202 | 203 | // when 204 | let result = self.sut.textFieldShouldReturn(self.mockTextField1) 205 | 206 | // then 207 | XCTAssertFalse(result) 208 | XCTAssertTrue(self.mockTextField2.didBecomeFirstResponder) 209 | } 210 | 211 | func test_keyboardNotificationHandling() { 212 | 213 | // given 214 | let delegate = MockKeyboardNotificationHandlingDelegate() 215 | self.sut.delegate = delegate 216 | 217 | // when 218 | self.fakeCenter.post(name: Notification.Name.UIKeyboardDidHide, object: nil) 219 | self.fakeCenter.post(name: Notification.Name.UIKeyboardDidShow, object: nil) 220 | self.fakeCenter.post(name: Notification.Name.UIKeyboardWillHide, object: nil) 221 | self.fakeCenter.post(name: Notification.Name.UIKeyboardWillShow, object: nil) 222 | 223 | // then 224 | XCTAssertTrue(delegate.didOnKeyboardDidHide) 225 | XCTAssertTrue(delegate.didOnKeyboardDidShow) 226 | XCTAssertTrue(delegate.didOnKeyboardWillHide) 227 | XCTAssertTrue(delegate.didOnKeyboardWillShow) 228 | } 229 | } 230 | 231 | class MockKeyboardNotificationHandlingDelegate: KeyboardNotificationHandling { 232 | internal var didOnKeyboardDidHide: Bool = false 233 | internal var didOnKeyboardDidShow: Bool = false 234 | internal var didOnKeyboardWillHide: Bool = false 235 | internal var didOnKeyboardWillShow: Bool = false 236 | 237 | internal func onKeyboardDidHide() { 238 | self.didOnKeyboardDidHide = true 239 | } 240 | 241 | internal func onKeyboardDidShow() { 242 | self.didOnKeyboardDidShow = true 243 | } 244 | 245 | internal func onKeyboardWillHide() { 246 | self.didOnKeyboardWillHide = true 247 | } 248 | 249 | internal func onKeyboardWillShow() { 250 | self.didOnKeyboardWillShow = true 251 | } 252 | } 253 | 254 | class MockTextFieldDelegate: NSObject, UITextFieldDelegate { 255 | internal var didTextFieldDidBeginEditing: Bool = false 256 | internal var didTextFieldDidEndEditing: Bool = false 257 | internal var capturedTextField: UITextField! = nil 258 | 259 | internal func textFieldDidBeginEditing(_ textField: UITextField) { 260 | self.didTextFieldDidBeginEditing = true 261 | self.capturedTextField = textField 262 | } 263 | 264 | internal func textFieldDidEndEditing(_ textField: UITextField) { 265 | self.didTextFieldDidEndEditing = true 266 | self.capturedTextField = textField 267 | } 268 | } 269 | 270 | class MockTextField: UITextField { 271 | internal var mockEditing: Bool = false 272 | internal var didResignFirstResponder: Bool = false 273 | internal var didBecomeFirstResponder: Bool = false 274 | 275 | override internal var isEditing: Bool { 276 | get { 277 | return mockEditing 278 | } 279 | set { 280 | mockEditing = newValue 281 | } 282 | } 283 | 284 | override func resignFirstResponder() -> Bool { 285 | self.didResignFirstResponder = true 286 | return true 287 | } 288 | 289 | override func becomeFirstResponder() -> Bool { 290 | self.didBecomeFirstResponder = true 291 | return true 292 | } 293 | } 294 | 295 | class FakeNotificationCenter: NotificationCenter { 296 | internal var registeredObservers: Array = [] 297 | 298 | override init () {} 299 | 300 | override func addObserver(_ observer: Any, 301 | selector aSelector: Selector, 302 | name aName: Notification.Name?, 303 | object anObject: Any?) { 304 | 305 | let item = TestRegisteredObserver() 306 | item.observer = observer as AnyObject! 307 | item.selector = aSelector 308 | item.name = aName! 309 | item.object = anObject as AnyObject? 310 | self.registeredObservers.append(item) 311 | } 312 | 313 | override func post(name aName: Notification.Name, object anObject: Any?) { 314 | for item in self.registeredObservers { 315 | if item.name == aName { 316 | _ = item.observer.perform(item.selector) 317 | break 318 | } 319 | } 320 | } 321 | } 322 | 323 | class TestRegisteredObserver { 324 | internal var observer: AnyObject! 325 | internal var object: AnyObject? 326 | internal var selector: Selector! 327 | internal var name: Notification.Name! 328 | } 329 | -------------------------------------------------------------------------------- /KeyboardController.podspec: -------------------------------------------------------------------------------- 1 | 2 | Pod::Spec.new do |s| 3 | s.name = 'KeyboardController' 4 | s.version = '4.0.0' 5 | s.summary = 'Simplifies iOS keyboard handling.' 6 | 7 | s.homepage = 'https://github.com/michalkonturek/KeyboardController' 8 | s.license = { :type => 'MIT', :file => 'LICENSE' } 9 | s.author = { 'Michal Konturek' => 'michal.konturek@gmail.com' } 10 | s.source = { :git => 'https://github.com/michalkonturek/KeyboardController.git', :tag => s.version.to_s } 11 | s.social_media_url = 'https://twitter.com/michalkonturek' 12 | 13 | s.ios.deployment_target = '8.0' 14 | 15 | s.source_files = 'KeyboardController/Classes/**/*' 16 | 17 | s.frameworks = 'UIKit' 18 | end 19 | -------------------------------------------------------------------------------- /KeyboardController/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalkonturek/KeyboardController/2b6ad10f01f78553ae5f86d3f05ffe24ba6d0f16/KeyboardController/Assets/.gitkeep -------------------------------------------------------------------------------- /KeyboardController/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michalkonturek/KeyboardController/2b6ad10f01f78553ae5f86d3f05ffe24ba6d0f16/KeyboardController/Classes/.gitkeep -------------------------------------------------------------------------------- /KeyboardController/Classes/KeyboardController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KeyboardController.swift 3 | // KeyboardController 4 | // 5 | // Copyright (c) 2016 Michal Konturek 6 | // 7 | // Permission is hereby granted, free of charge, to any person obtaining a copy 8 | // of this software and associated documentation files (the "Software"), to deal 9 | // in the Software without restriction, including without limitation the rights 10 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | // copies of the Software, and to permit persons to whom the Software is 12 | // furnished to do so, subject to the following conditions: 13 | // 14 | // The above copyright notice and this permission notice shall be included in 15 | // all copies or substantial portions of the Software. 16 | // 17 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | // THE SOFTWARE. 24 | // 25 | 26 | import UIKit 27 | 28 | /** 29 | `KeyboardController` delegate. 30 | 31 | A `class` with ability to receive changes in keyboard status. 32 | */ 33 | public protocol KeyboardNotificationHandling: class { 34 | 35 | /** 36 | Called when keyboard was hidden. 37 | 38 | - author: Michal Konturek 39 | */ 40 | func onKeyboardDidHide() 41 | 42 | /** 43 | Called when keyboard was shown. 44 | 45 | - author: Michal Konturek 46 | */ 47 | func onKeyboardDidShow() 48 | 49 | /** 50 | Called when keyboard is about to be hidden. 51 | 52 | - author: Michal Konturek 53 | */ 54 | func onKeyboardWillHide() 55 | 56 | /** 57 | Called when keyboard is about to be shown. 58 | 59 | - author: Michal Konturek 60 | */ 61 | func onKeyboardWillShow() 62 | } 63 | 64 | /** 65 | A `class` that controls keyboard. 66 | */ 67 | public class KeyboardController: NSObject { 68 | 69 | /** 70 | A delegate that conforms to `KeyboardNotificationHandling` protocol. 71 | 72 | - author: Michal Konturek 73 | */ 74 | public weak var delegate: KeyboardNotificationHandling? 75 | 76 | /** 77 | A delegate that conforms to `UITextFieldDelegate` protocol. 78 | 79 | - author: Michal Konturek 80 | */ 81 | public weak var textFieldDelegate: UITextFieldDelegate? 82 | 83 | let fields: Array 84 | var notificationCenter: NotificationCenter 85 | 86 | /** 87 | Instantiates `KeyboardController` object. 88 | 89 | - important: Initialises with default `NotificationCenter`. 90 | 91 | - parameter field: an `UITextField` object. 92 | 93 | - author: Michal Konturek 94 | */ 95 | convenience public init(field: UITextField) { 96 | self.init(fields: [field], notificationCenter: NotificationCenter.default) 97 | } 98 | 99 | /** 100 | Instantiates `KeyboardController` object. 101 | 102 | - important: Initialises with default `NotificationCenter`. 103 | 104 | - parameter fields: an array of `UITextField` objects. 105 | 106 | - author: Michal Konturek 107 | */ 108 | convenience public init(fields: Array) { 109 | self.init(fields: fields, notificationCenter: NotificationCenter.default) 110 | } 111 | 112 | /** 113 | Instantiates `KeyboardController` object. 114 | 115 | - parameter fields: an array of `UITextField` objects. 116 | 117 | - author: Michal Konturek 118 | */ 119 | public init(fields: Array, notificationCenter: NotificationCenter) { 120 | self.fields = fields 121 | self.notificationCenter = notificationCenter 122 | super.init() 123 | 124 | for field in self.fields { 125 | field.delegate = self 126 | } 127 | 128 | self.subscribeToNotifications() 129 | } 130 | 131 | func subscribeToNotifications() { 132 | let center = self.notificationCenter 133 | center.addObserver(self, 134 | selector: #selector(onKeyboardDidHide), 135 | name: Notification.Name.UIKeyboardDidHide, 136 | object: nil) 137 | center.addObserver(self, 138 | selector: #selector(onKeyboardDidShow), 139 | name: Notification.Name.UIKeyboardDidShow, 140 | object: nil) 141 | center.addObserver(self, 142 | selector: #selector(onKeyboardWillHide), 143 | name: Notification.Name.UIKeyboardWillHide, 144 | object: nil) 145 | center.addObserver(self, 146 | selector: #selector(onKeyboardWillShow), 147 | name: Notification.Name.UIKeyboardWillShow, 148 | object: nil) 149 | } 150 | 151 | deinit { 152 | self.notificationCenter.removeObserver(self) 153 | } 154 | } 155 | 156 | 157 | // MARK: Keybaord Handling 158 | 159 | protocol KeyboardHandling { 160 | 161 | /** 162 | Closes keyboard. 163 | 164 | - author: Michal Konturek 165 | */ 166 | func closeKeyboard() 167 | 168 | /** 169 | Sets previous text field as first responder. 170 | 171 | - author: Michal Konturek 172 | */ 173 | func moveToPreviousField() 174 | 175 | /** 176 | Sets next text field as first responder. 177 | 178 | - author: Michal Konturek 179 | */ 180 | func moveToNextField() 181 | } 182 | 183 | extension KeyboardController: KeyboardHandling { 184 | 185 | /** 186 | Closes keyboard. 187 | 188 | - author: Michal Konturek 189 | */ 190 | public func closeKeyboard() { 191 | for field in self.fields { 192 | if field.isEditing { 193 | field.resignFirstResponder() 194 | } 195 | } 196 | } 197 | 198 | /** 199 | Sets previous text field as first responder. 200 | 201 | - author: Michal Konturek 202 | */ 203 | public func moveToPreviousField() { 204 | for index in self.fields.indices { 205 | if self.fields[index].isEditing && index != 0 { 206 | self.fields[index - 1].becomeFirstResponder() 207 | break 208 | } 209 | } 210 | } 211 | 212 | /** 213 | Sets next text field as first responder. 214 | 215 | - author: Michal Konturek 216 | */ 217 | public func moveToNextField() { 218 | for index in self.fields.indices { 219 | if self.fields[index].isEditing && index != (self.fields.count - 1) { 220 | self.fields[index + 1].becomeFirstResponder() 221 | break 222 | } 223 | } 224 | } 225 | } 226 | 227 | 228 | // MARK: - UITextFieldDelegate 229 | 230 | extension KeyboardController: UITextFieldDelegate { 231 | 232 | public func textFieldDidBeginEditing(_ textField: UITextField) { 233 | self.textFieldDelegate?.textFieldDidBeginEditing?(textField) 234 | } 235 | 236 | public func textFieldDidEndEditing(_ textField: UITextField) { 237 | self.textFieldDelegate?.textFieldDidEndEditing?(textField) 238 | } 239 | 240 | public func textFieldShouldReturn(_ textField: UITextField) -> Bool { 241 | if textField.returnKeyType == .next { self.moveToNextField() } 242 | if textField.returnKeyType == .done { self.closeKeyboard() } 243 | return textField.returnKeyType == .done 244 | } 245 | } 246 | 247 | 248 | // MARK: - KeyboardNotificationHandling 249 | 250 | extension KeyboardController: KeyboardNotificationHandling { 251 | 252 | /** 253 | Called when keyboard was hidden. 254 | 255 | - author: Michal Konturek 256 | */ 257 | public func onKeyboardDidHide() { 258 | self.delegate?.onKeyboardDidHide() 259 | } 260 | 261 | /** 262 | Called when keyboard was shown. 263 | 264 | - author: Michal Konturek 265 | */ 266 | public func onKeyboardDidShow() { 267 | self.delegate?.onKeyboardDidShow() 268 | } 269 | 270 | /** 271 | Called when keyboard is about to be hidden. 272 | 273 | - author: Michal Konturek 274 | */ 275 | public func onKeyboardWillHide() { 276 | self.delegate?.onKeyboardWillHide() 277 | } 278 | 279 | /** 280 | Called when keyboard is about to be shown. 281 | 282 | - author: Michal Konturek 283 | */ 284 | public func onKeyboardWillShow() { 285 | self.delegate?.onKeyboardWillShow() 286 | } 287 | } 288 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Michal Konturek 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KeyboardController 2 | 3 | [![Version](https://img.shields.io/cocoapods/v/KeyboardController.svg)](http://cocoapods.org/pods/KeyboardController) 4 | [![Build Status](https://travis-ci.org/michalkonturek/KeyboardController.svg?branch=master)](https://travis-ci.org/michalkonturek/KeyboardController) 5 | [![Swift](https://img.shields.io/badge/%20compatible-swift%203.0-orange.svg)](http://swift.org) 6 | [![License](https://img.shields.io/cocoapods/l/KeyboardController.svg)](http://cocoapods.org/pods/KeyboardController) 7 | [![Twitter](https://img.shields.io/badge/contact-@MichalKonturek-blue.svg)](http://twitter.com/michalkonturek) 8 | 9 | Simplifies iOS keyboard handling. 10 | 11 | 12 | ## License 13 | 14 | Source code of this project is available under the standard MIT license. Please see [the license file][LICENSE]. 15 | 16 | [PODS]:http://cocoapods.org/ 17 | [LICENSE]:https://github.com/michalkonturek/KeyboardController/blob/master/LICENSE 18 | 19 | 20 | ## Usage 21 | 22 | To use `KeyboardController`, simply initialize it with an array of `UITextField` objects. 23 | 24 | ```swift 25 | let fields = [field1!, field2!, field3!, field4!, field5!] 26 | self.controller = KeyboardController(fields: fields) 27 | ``` 28 | 29 | You can interact with `KeyboardController` directly via the following methods: 30 | 31 | ```swift 32 | func moveToNextField() 33 | func moveToPreviousField() 34 | func closeKeyboard() 35 | ``` 36 | 37 | `KeyboardController`, depending on a `returnKeyType` property of an `UITextField` instance, will: 38 | 39 | * `UIReturnKeyNext` - move to next text field 40 | * `UIReturnKeyDone` - close keyboard 41 | 42 | 43 | ### KeyboardControllerDelegate 44 | 45 | You could also take advantage of delegation methods: 46 | 47 | ```swift 48 | func controllerDidHideKeyboard(controller: KeyboardController) 49 | func controllerDidShowKeyboard(controller: KeyboardController) 50 | func controllerWillHideKeyboard(controller: KeyboardController) 51 | func controllerWillShowKeyboard(controller: KeyboardController) 52 | ``` 53 | 54 | by setting a `delegate` property of a `KeyboardController`: 55 | 56 | ```swift 57 | self.keyboardController.delegate = self; 58 | ``` 59 | 60 | 61 | ### UITextFieldDelegate 62 | 63 | There is also an option of setting a `textFieldDelegate` property of all textFields that are under control of `KeyboardController`: 64 | 65 | ```swift 66 | self.keyboardController.textFieldDelegate = self; 67 | ``` 68 | 69 | This could be particulary useful if you would like to add individual behaviour to `UITextFields` objects. 70 | 71 | ```swift 72 | func textFieldDidBeginEditing(_ textField: UITextField) { 73 | if (textField == self.field4) { self.moveViewBy(-10) } 74 | if (textField == self.field5) { self.moveViewBy(-200) } 75 | } 76 | 77 | func textFieldDidEndEditing(_ textField: UITextField) { 78 | if (textField == self.field4) { self.moveViewBy(10) } 79 | if (textField == self.field5) { self.moveViewBy(200) } 80 | } 81 | ``` 82 | 83 | ## Contributing 84 | 85 | 1. Fork it. 86 | 2. Create your feature branch (`git checkout -b new-feature`). 87 | 3. Commit your changes (`git commit -am 'Added new-feature'`). 88 | 4. Push to the branch (`git push origin new-feature`). 89 | 5. Create new Pull Request. -------------------------------------------------------------------------------- /_Pods.xcodeproj: -------------------------------------------------------------------------------- 1 | Example/Pods/Pods.xcodeproj --------------------------------------------------------------------------------