@@ -22,7 +22,7 @@ public struct WSTagAcceptOption: OptionSet {
2222
2323open class WSTagsField : UIScrollView {
2424
25- fileprivate let textField = BackspaceDetectingTextField ( )
25+ public let textField = BackspaceDetectingTextField ( )
2626
2727 /// Dedicated text field delegate.
2828 open weak var textDelegate : UITextFieldDelegate ?
@@ -107,13 +107,15 @@ open class WSTagsField: UIScrollView {
107107 }
108108 }
109109
110+ @available ( * , deprecated, message: " use 'textField.textColor' directly. " )
110111 open var fieldTextColor : UIColor ? {
111112 didSet {
112113 textField. textColor = fieldTextColor
113114 }
114115 }
115116
116117 @available ( iOS 10 . 0 , * )
118+ @available ( * , deprecated, message: " use 'textField.fieldTextContentType' directly. " )
117119 open var fieldTextContentType : UITextContentType ! {
118120 set {
119121 textField. textContentType = newValue
@@ -348,10 +350,6 @@ open class WSTagsField: UIScrollView {
348350 self . textField. resignFirstResponder ( )
349351 }
350352
351- public var targetInputField : UITextField {
352- textField
353- }
354-
355353 open override func reloadInputViews( ) {
356354 self . textField. reloadInputViews ( )
357355 }
@@ -546,31 +544,37 @@ open class WSTagsField: UIScrollView {
546544
547545extension WSTagsField {
548546
547+ @available ( * , deprecated, message: " use 'textField.keyboardType' directly. " )
549548 public var keyboardType : UIKeyboardType {
550549 get { return textField. keyboardType }
551550 set { textField. keyboardType = newValue }
552551 }
553552
553+ @available ( * , deprecated, message: " use 'textField.returnKeyType' directly. " )
554554 public var returnKeyType : UIReturnKeyType {
555555 get { return textField. returnKeyType }
556556 set { textField. returnKeyType = newValue }
557557 }
558558
559+ @available ( * , deprecated, message: " use 'textField.spellCheckingType' directly. " )
559560 public var spellCheckingType : UITextSpellCheckingType {
560561 get { return textField. spellCheckingType }
561562 set { textField. spellCheckingType = newValue }
562563 }
563564
565+ @available ( * , deprecated, message: " use 'textField.autocapitalizationType' directly. " )
564566 public var autocapitalizationType : UITextAutocapitalizationType {
565567 get { return textField. autocapitalizationType }
566568 set { textField. autocapitalizationType = newValue }
567569 }
568570
571+ @available ( * , deprecated, message: " use 'textField.autocorrectionType' directly. " )
569572 public var autocorrectionType : UITextAutocorrectionType {
570573 get { return textField. autocorrectionType }
571574 set { textField. autocorrectionType = newValue }
572575 }
573576
577+ @available ( * , deprecated, message: " use 'textField.enablesReturnKeyAutomatically' directly. " )
574578 public var enablesReturnKeyAutomatically : Bool {
575579 get { return textField. enablesReturnKeyAutomatically }
576580 set { textField. enablesReturnKeyAutomatically = newValue }
@@ -617,7 +621,6 @@ extension WSTagsField {
617621 textField. spellCheckingType = . no
618622 textField. delegate = self
619623 textField. font = font
620- textField. textColor = fieldTextColor
621624 addSubview ( textField)
622625
623626 layerBoundsObserver = self . observe ( \. layer. bounds, options: [ . old, . new] ) { [ weak self] sender, change in
0 commit comments