Skip to content

Commit

Permalink
[fix] Keyboard Appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardopereira committed Sep 14, 2018
1 parent 43a7db1 commit 2f1daab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Example/WSTagsFieldExample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ViewController: UIViewController {
tagsField.backgroundColor = .lightGray
tagsField.returnKeyType = .next
tagsField.delimiter = ""
tagsField.keyboardAppearance = .dark

tagsField.textDelegate = self
//tagsField.acceptTagOption = .space
Expand Down
1 change: 1 addition & 0 deletions Source/WSTagsField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ open class WSTagsField: UIScrollView {

open var keyboardAppearance: UIKeyboardAppearance = .default {
didSet {
textField.keyboardAppearance = self.keyboardAppearance
tagViews.forEach { $0.keyboardAppearanceType = self.keyboardAppearance }
}
}
Expand Down

0 comments on commit 2f1daab

Please sign in to comment.