We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdff576 commit d9e984dCopy full SHA for d9e984d
Demo Project/ResponsiveTextFieldDemo/ContentView.swift
@@ -124,6 +124,10 @@ struct ContentView: View {
124
Toggle("Enabled?", isOn: $isEnabled)
125
.padding(.bottom)
126
127
+ Button("Random password") {
128
+ password = UUID().uuidString
129
+ }
130
+
131
Text("You typed the following email:")
132
133
Sources/ResponsiveTextField/ResponsiveTextField.swift
@@ -271,6 +271,7 @@ extension ResponsiveTextField: UIViewRepresentable {
271
uiView.isSecureTextEntry = isSecure
272
uiView.returnKeyType = returnKeyType
273
uiView.font = font
274
+ uiView.text = text.wrappedValue
275
276
switch (uiView.isFirstResponder, firstResponderDemand?.wrappedValue) {
277
case (true, .shouldResignFirstResponder):
0 commit comments