Skip to content

Commit

Permalink
Merge pull request #19 from luximetr/textfield_bug_ios_10
Browse files Browse the repository at this point in the history
Fix issue where the textfield would be cleared when losing focus iOS 10
  • Loading branch information
luximetr authored Apr 16, 2019
2 parents 764a73d + 04dd047 commit 5a5b7bf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/TextInput/TextInputField/TextInputField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@ open class TextInputField: AttributedTextInputField, TextInput {
// MARK: - Unavailable fields
@available(*, unavailable, message: "use content instead")
open override var text: String? {
set {}
get { return nil }
set { content = newValue }
get { return content }
}

@available(*, unavailable, message: "use attributedContent instead")
open override var attributedText: NSAttributedString? {
set {}
get { return nil }
set { attributedContent = newValue }
get { return attributedContent }
}

@available(*, unavailable, message: "use textInputDelegates and textInputFieldDelegates instead")
open override var delegate: UITextFieldDelegate? {
set {}
Expand Down

0 comments on commit 5a5b7bf

Please sign in to comment.