Skip to content

Commit

Permalink
Return content instead of super.text and return attributedContent ins…
Browse files Browse the repository at this point in the history
…tead of super.attributedText in TextInputField
  • Loading branch information
jvanzummeren committed Apr 16, 2019
1 parent 7bf824d commit 04dd047
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/TextInput/TextInputField/TextInputField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ open class TextInputField: AttributedTextInputField, TextInput {
// MARK: - Unavailable fields
@available(*, unavailable, message: "use content instead")
open override var text: String? {
set { super.text = newValue }
get { return super.text }
set { content = newValue }
get { return content }
}

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

@available(*, unavailable, message: "use textInputDelegates and textInputFieldDelegates instead")
Expand Down

0 comments on commit 04dd047

Please sign in to comment.