Skip to content

Commit 070b5b2

Browse files
authored
Merge pull request #37 from cemolcay/fix/cemolcay-deployment-target
Target iOS +8.0
2 parents f9ddf65 + 83b4987 commit 070b5b2

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

Keyboard/KeyboardViewController.swift

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ class KeyboardViewController: UIInputViewController, CustomKeyboardDelegate {
2424
view.addSubview(customKeyboard)
2525

2626
// Autolayout
27-
customKeyboard.leftAnchor.constraintEqualToAnchor(view.leftAnchor).active = true
28-
customKeyboard.rightAnchor.constraintEqualToAnchor(view.rightAnchor).active = true
29-
customKeyboard.topAnchor.constraintEqualToAnchor(view.topAnchor).active = true
30-
customKeyboard.bottomAnchor.constraintEqualToAnchor(view.bottomAnchor).active = true
27+
if #available(iOSApplicationExtension 9.0, *) {
28+
customKeyboard.leftAnchor.constraintEqualToAnchor(view.leftAnchor).active = true
29+
customKeyboard.rightAnchor.constraintEqualToAnchor(view.rightAnchor).active = true
30+
customKeyboard.topAnchor.constraintEqualToAnchor(view.topAnchor).active = true
31+
customKeyboard.bottomAnchor.constraintEqualToAnchor(view.bottomAnchor).active = true
32+
} else {
33+
// Fallback on earlier versions
34+
}
3135

3236
// This is how you add extra buttons to layouts for customising CustomKeyboard without even subclass it!
3337
let customButton = KeyboardButton(

KeyboardLayoutEngine.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
1616
#
1717

1818
s.name = "KeyboardLayoutEngine"
19-
s.version = "0.9.2"
19+
s.version = "0.9.3"
2020
s.summary = "⌨️ Simplest custom keyboard generator for iOS ever!"
2121

2222
# This description is used to generate tags and improve search results.
@@ -336,7 +336,7 @@ optional func defaultKeyboardDidPressReturnButton(defaultKeyboard: DefaultKeyboa
336336
# Supports git, hg, bzr, svn and HTTP.
337337
#
338338

339-
s.source = { :git => "https://github.com/cemolcay/KeyboardLayoutEngine.git", :tag => "0.9.2" }
339+
s.source = { :git => "https://github.com/cemolcay/KeyboardLayoutEngine.git", :tag => "0.9.3" }
340340

341341

342342
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #

KeyboardLayoutEngine.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@
853853
baseConfigurationReference = 1A703E494B5253AB13CA7294 /* Pods-Keyboard.debug.xcconfig */;
854854
buildSettings = {
855855
INFOPLIST_FILE = Keyboard/Info.plist;
856+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
856857
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
857858
PRODUCT_BUNDLE_IDENTIFIER = co.prototapp.KeyboardLayoutEngine.Keyboard;
858859
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -865,6 +866,7 @@
865866
baseConfigurationReference = C45C1A2FFE11C55DDFB7314C /* Pods-Keyboard.release.xcconfig */;
866867
buildSettings = {
867868
INFOPLIST_FILE = Keyboard/Info.plist;
869+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
868870
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
869871
PRODUCT_BUNDLE_IDENTIFIER = co.prototapp.KeyboardLayoutEngine.Keyboard;
870872
PRODUCT_NAME = "$(TARGET_NAME)";

0 commit comments

Comments
 (0)