File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Sources/DiffableTextViewsXiOS Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ public struct DiffableTextField<Style: DiffableTextStyleXiOS>: UIViewRepresentab
5959 let uiView = BasicTextField ( )
6060 uiView. delegate = context. coordinator
6161 uiView. font = UIFont ( DiffableTextFont . body. monospaced ( ) )
62- uiView. setTextAlignment ( context. environment)
62+ uiView. setTextAlignment ( context. environment. multilineTextAlignment )
6363 uiView. setContentHuggingPriority ( . defaultHigh, for: . vertical)
6464 uiView. setContentCompressionResistancePriority ( . defaultLow, for: . horizontal)
6565 //=--------------------------------------=
Original file line number Diff line number Diff line change @@ -22,12 +22,8 @@ extension UITextField {
2222 // MARK: Transformations
2323 //=------------------------------------------------------------------------=
2424
25- @inlinable func setTextAlignment( _ environment: EnvironmentValues ) {
26- self . setTextAlignment ( environment. multilineTextAlignment)
27- }
28-
29- @inlinable func setTextAlignment( _ newValue: TextAlignment ) {
30- self . textAlignment = NSTextAlignment ( newValue, for: userInterfaceLayoutDirection)
25+ @inlinable func setTextAlignment( _ alignment: TextAlignment ) {
26+ self . textAlignment = NSTextAlignment ( alignment, for: userInterfaceLayoutDirection)
3127 }
3228}
3329
You can’t perform that action at this time.
0 commit comments