Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions Keyboard/KeyboardViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ class KeyboardViewController: UIInputViewController, CustomKeyboardDelegate {
view.addSubview(customKeyboard)

// Autolayout
customKeyboard.leftAnchor.constraintEqualToAnchor(view.leftAnchor).active = true
customKeyboard.rightAnchor.constraintEqualToAnchor(view.rightAnchor).active = true
customKeyboard.topAnchor.constraintEqualToAnchor(view.topAnchor).active = true
customKeyboard.bottomAnchor.constraintEqualToAnchor(view.bottomAnchor).active = true
if #available(iOSApplicationExtension 9.0, *) {
customKeyboard.leftAnchor.constraintEqualToAnchor(view.leftAnchor).active = true
customKeyboard.rightAnchor.constraintEqualToAnchor(view.rightAnchor).active = true
customKeyboard.topAnchor.constraintEqualToAnchor(view.topAnchor).active = true
customKeyboard.bottomAnchor.constraintEqualToAnchor(view.bottomAnchor).active = true
} else {
// Fallback on earlier versions
}

// This is how you add extra buttons to layouts for customising CustomKeyboard without even subclass it!
let customButton = KeyboardButton(
Expand Down
4 changes: 2 additions & 2 deletions KeyboardLayoutEngine.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "KeyboardLayoutEngine"
s.version = "0.9.2"
s.version = "0.9.3"
s.summary = "⌨️ Simplest custom keyboard generator for iOS ever!"

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

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


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down
2 changes: 2 additions & 0 deletions KeyboardLayoutEngine.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,7 @@
baseConfigurationReference = 1A703E494B5253AB13CA7294 /* Pods-Keyboard.debug.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Keyboard/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = co.prototapp.KeyboardLayoutEngine.Keyboard;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -865,6 +866,7 @@
baseConfigurationReference = C45C1A2FFE11C55DDFB7314C /* Pods-Keyboard.release.xcconfig */;
buildSettings = {
INFOPLIST_FILE = Keyboard/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = co.prototapp.KeyboardLayoutEngine.Keyboard;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down