Skip to content

Commit 04dd047

Browse files
committed
Return content instead of super.text and return attributedContent instead of super.attributedText in TextInputField
1 parent 7bf824d commit 04dd047

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Source/TextInput/TextInputField/TextInputField.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ open class TextInputField: AttributedTextInputField, TextInput {
2828
// MARK: - Unavailable fields
2929
@available(*, unavailable, message: "use content instead")
3030
open override var text: String? {
31-
set { super.text = newValue }
32-
get { return super.text }
31+
set { content = newValue }
32+
get { return content }
3333
}
3434

3535
@available(*, unavailable, message: "use attributedContent instead")
3636
open override var attributedText: NSAttributedString? {
37-
set { super.attributedText = newValue }
38-
get { return super.attributedText }
37+
set { attributedContent = newValue }
38+
get { return attributedContent }
3939
}
4040

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

0 commit comments

Comments
 (0)