diff --git a/Sources/TextView/TextView.swift b/Sources/TextView/TextView.swift index c6152b7..b19b963 100644 --- a/Sources/TextView/TextView.swift +++ b/Sources/TextView/TextView.swift @@ -44,6 +44,7 @@ public struct TextView: View { private let font: UIFont private let textColor: UIColor private let backgroundColor: UIColor + private let keyboardType: UIKeyboardType private let returnType: UIReturnKeyType private let contentType: ContentType? private let autocorrection: Autocorrection @@ -66,6 +67,7 @@ public struct TextView: View { font: UIFont, textColor: UIColor, backgroundColor: UIColor, + keyboardType: UIKeyboardType, returnType: UIReturnKeyType, contentType: ContentType?, autocorrection: Autocorrection, @@ -88,6 +90,7 @@ public struct TextView: View { self.font = font self.textColor = textColor self.backgroundColor = backgroundColor + self.keyboardType = keyboardType self.returnType = returnType self.contentType = contentType self.autocorrection = autocorrection @@ -130,6 +133,7 @@ public struct TextView: View { textView.font = font textView.textColor = textColor textView.backgroundColor = backgroundColor + textView.keyboardType = keyboardType textView.returnKeyType = returnType textView.textContentType = contentType textView.autocorrectionType = autocorrection @@ -178,6 +182,7 @@ public struct TextView: View { private let textColor: UIColor private let placeholderColor: Color private let backgroundColor: UIColor + private let keyboardType: UIKeyboardType private let returnType: UIReturnKeyType private let contentType: ContentType? private let autocorrection: Autocorrection @@ -205,6 +210,7 @@ public struct TextView: View { textColor: UIColor = .label, placeholderColor: Color = .init(.placeholderText), backgroundColor: UIColor = .clear, + keyboardType: UIKeyboardType = .default, returnType: UIReturnKeyType = .default, contentType: ContentType? = nil, autocorrection: Autocorrection = .default, @@ -232,6 +238,7 @@ public struct TextView: View { self.textColor = textColor self.placeholderColor = placeholderColor self.backgroundColor = backgroundColor + self.keyboardType = keyboardType self.returnType = returnType self.contentType = contentType self.autocorrection = autocorrection @@ -260,6 +267,7 @@ public struct TextView: View { font: font, textColor: textColor, backgroundColor: backgroundColor, + keyboardType: keyboardType, returnType: returnType, contentType: contentType, autocorrection: autocorrection,