File tree 1 file changed +14
-0
lines changed
TangemSdk/TangemSdk/UI/Views/Common
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ struct FocusableTextField: View {
22
22
SecureField ( " " , text: text, onCommit: onCommit)
23
23
. focused ( $focusedField, equals: . secure)
24
24
. keyboardType ( . default)
25
+ . writingToolsBehaviorDisabled ( )
26
+ . autocorrectionDisabled ( )
27
+ . textInputAutocapitalization ( . never)
25
28
. onAppear ( perform: model. onAppear)
26
29
. onReceive ( model. focusPublisher) { _ in
27
30
if shouldBecomeFirstResponder {
@@ -102,3 +105,14 @@ fileprivate extension UIApplication {
102
105
applicationState == . active
103
106
}
104
107
}
108
+
109
+ fileprivate extension View {
110
+ @ViewBuilder
111
+ func writingToolsBehaviorDisabled( ) -> some View {
112
+ if #available( iOS 18 . 0 , * ) {
113
+ self . writingToolsBehavior ( . disabled)
114
+ } else {
115
+ self
116
+ }
117
+ }
118
+ }
You can’t perform that action at this time.
0 commit comments