Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Sources/TextView/TextView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -66,6 +67,7 @@ public struct TextView: View {
font: UIFont,
textColor: UIColor,
backgroundColor: UIColor,
keyboardType: UIKeyboardType,
returnType: UIReturnKeyType,
contentType: ContentType?,
autocorrection: Autocorrection,
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -260,6 +267,7 @@ public struct TextView: View {
font: font,
textColor: textColor,
backgroundColor: backgroundColor,
keyboardType: keyboardType,
returnType: returnType,
contentType: contentType,
autocorrection: autocorrection,
Expand Down