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
luximetr authored Apr 16, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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
@@ -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 {}

0 comments on commit 5a5b7bf

Please sign in to comment.