File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Demo Project/ResponsiveTextFieldDemo
Sources/ResponsiveTextField Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,10 @@ struct ContentView: View {
124124 Toggle ( " Enabled? " , isOn: $isEnabled)
125125 . padding ( . bottom)
126126
127+ Button ( " Random password " ) {
128+ password = UUID ( ) . uuidString
129+ }
130+
127131 Text ( " You typed the following email: " )
128132 . padding ( . bottom)
129133
Original file line number Diff line number Diff line change @@ -271,6 +271,7 @@ extension ResponsiveTextField: UIViewRepresentable {
271271 uiView. isSecureTextEntry = isSecure
272272 uiView. returnKeyType = returnKeyType
273273 uiView. font = font
274+ uiView. text = text. wrappedValue
274275
275276 switch ( uiView. isFirstResponder, firstResponderDemand? . wrappedValue) {
276277 case ( true , . shouldResignFirstResponder) :
You can’t perform that action at this time.
0 commit comments