Skip to content

Commit 025c24e

Browse files
committed
Add CustomKeyboardLayoutStyle
Update CustomKeyboard with CustomKeyboardLayoutStyle. Bump podspec version
1 parent 30979c3 commit 025c24e

File tree

4 files changed

+264
-245
lines changed

4 files changed

+264
-245
lines changed

Keyboard/DefaultKeyboard/CustomKeyboard.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@ import UIKit
2020

2121
// MARK: - CustomKeyboard
2222
public class CustomKeyboard: UIView, KeyboardLayoutDelegate {
23-
public var keyboardLayout = CustomKeyboardLayout()
23+
public var keyboardLayout: CustomKeyboardLayout!
24+
public var keyboardStyle = CustomKeyboardLayoutStyle() {
25+
didSet {
26+
keyboardLayout = CustomKeyboardLayout(style: keyboardStyle)
27+
}
28+
}
29+
2430
public weak var delegate: CustomKeyboardDelegate?
2531

2632
// MARK: CustomKeyobardShiftState
@@ -90,6 +96,7 @@ public class CustomKeyboard: UIView, KeyboardLayoutDelegate {
9096
}
9197

9298
private func defaultInit() {
99+
keyboardLayout = CustomKeyboardLayout(style: keyboardStyle)
93100
keyboardLayoutStateDidChange(oldState: nil, newState: keyboardLayoutState)
94101
}
95102

0 commit comments

Comments
 (0)