Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11] Add NiceTextField #43

Merged
merged 3 commits into from
Jan 26, 2024
Merged

[11] Add NiceTextField #43

merged 3 commits into from
Jan 26, 2024

Conversation

brendanlensink
Copy link
Collaborator

For #11

This PR adds a new UI element - a Nice text field!
Screen Shot 2023-01-05 at 11 18 06 AM
Screen Shot 2023-01-05 at 11 18 11 AM

There's certainly some iterating to be done here, but I think this gives us a decent foundation to start with. It supports all the basic stuff we usually want like secure entry, different keyboards, etc and a decent amount of styling by piggy-backing on a lot of the button styling options.

move some things from niceButton into NiceButtonStyle to accomadate sharing them with NiceTextField
@brendanlensink
Copy link
Collaborator Author

@AZielinsky95 just noticed this never got merged 😅 any reason to not just merge it now?

Copy link
Contributor

@AZielinsky95 AZielinsky95 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 🚀

Added a super minor nitpick comment

Comment on lines 108 to 109
.padding(.top, text.isEmpty ? 16 : 8)
.padding(.bottom, text.isEmpty ? 16 : 8)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: can be reduced to 1 line using .vertical

@brendanlensink brendanlensink merged commit d2d0c22 into main Jan 26, 2024
@brendanlensink brendanlensink deleted the bwl/nice-text-field branch January 26, 2024 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants