Closed florentlotthepro closed 1 year ago
@daniel-dumortier It's a wanted behavior to have not editable TextField in the "states" section 😅 Because the purpose is to show all states of the TextField and not test them. To test them there is the "dynamic" section.
I'm not really sure about the password use case because I think it's not a recommended way to do it for Apple. Indeed in SwiftUI, there is no built-in option to switch from secure mode to no secure mode (like it's done in UIKit). Apple used to display the last letter in a readable way to avoid the need to toggle between a secure and not secure mode.
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
Feedback from the design review:
The color of the placeholders here seems very clear, I'm not sure if it is "content tertiary"?
It's a system color that we cannot customize -> Need a design update for iOS.
Ready to merge ✅
Changes description
Add text input component to SwiftUI.
Context
Checklist
Does this introduce a breaking change?
outline
style is renamedoutlined
.VitaminTextField.Style
is renamedVitaminTextFieldStyle
.VitaminTextField.State
is renamedVitaminTextFieldState
.Screenshots
iPhone
iPad
Other information
Co-authored-by: @MBarantal Co-authored-by: @baptistedajon