Skip to content

Commit 2f1daab

Browse files
[fix] Keyboard Appearance
1 parent 43a7db1 commit 2f1daab

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Example/WSTagsFieldExample/ViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ class ViewController: UIViewController {
4040
tagsField.backgroundColor = .lightGray
4141
tagsField.returnKeyType = .next
4242
tagsField.delimiter = ""
43+
tagsField.keyboardAppearance = .dark
4344

4445
tagsField.textDelegate = self
4546
//tagsField.acceptTagOption = .space

Source/WSTagsField.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ open class WSTagsField: UIScrollView {
142142

143143
open var keyboardAppearance: UIKeyboardAppearance = .default {
144144
didSet {
145+
textField.keyboardAppearance = self.keyboardAppearance
145146
tagViews.forEach { $0.keyboardAppearanceType = self.keyboardAppearance }
146147
}
147148
}

0 commit comments

Comments
 (0)