diff --git a/Keyboard/DefaultKeyboard/CustomKeyboard.swift b/Keyboard/DefaultKeyboard/CustomKeyboard.swift index 619ea80..cd24d39 100644 --- a/Keyboard/DefaultKeyboard/CustomKeyboard.swift +++ b/Keyboard/DefaultKeyboard/CustomKeyboard.swift @@ -37,7 +37,7 @@ public class CustomKeyboard: UIView, KeyboardLayoutDelegate { case Symbols } - private(set) var keyboardLayoutState: CustomKeyboardLayoutState = .Letters(shiftState: CustomKeyboardShiftState.Once) { + public private(set) var keyboardLayoutState: CustomKeyboardLayoutState = .Letters(shiftState: CustomKeyboardShiftState.Once) { didSet { keyboardLayoutStateDidChange(oldState: oldValue, newState: keyboardLayoutState) } @@ -166,8 +166,12 @@ public class CustomKeyboard: UIView, KeyboardLayoutDelegate { } // MARK: Capitalize + public func switchToLetters(shiftState shift: CustomKeyboardShiftState) { + keyboardLayoutState = .Letters(shiftState: shift) + } + public func capitalize() { - keyboardLayoutState = .Letters(shiftState: .Once) + switchToLetters(shiftState: .Once) } // MARK: Backspace Auto Delete diff --git a/KeyboardLayoutEngine.podspec b/KeyboardLayoutEngine.podspec index 695e968..1c732b1 100644 --- a/KeyboardLayoutEngine.podspec +++ b/KeyboardLayoutEngine.podspec @@ -16,7 +16,7 @@ Pod::Spec.new do |s| # s.name = "KeyboardLayoutEngine" - s.version = "0.9.5" + s.version = "0.9.6" s.summary = "⌨️ Simplest custom keyboard generator for iOS ever!" # This description is used to generate tags and improve search results. @@ -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.5" } + s.source = { :git => "https://github.com/cemolcay/KeyboardLayoutEngine.git", :tag => "0.9.6" } # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #