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
8 changes: 6 additions & 2 deletions Keyboard/DefaultKeyboard/CustomKeyboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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
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.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.
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.5" }
s.source = { :git => "https://github.com/cemolcay/KeyboardLayoutEngine.git", :tag => "0.9.6" }


# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
Expand Down