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

Add SwiftUI Button #86

Open
mpospese opened this issue May 5, 2023 · 0 comments
Open

Add SwiftUI Button #86

mpospese opened this issue May 5, 2023 · 0 comments
Labels
enhancement New feature or request SwiftUI

Comments

@mpospese
Copy link
Contributor

mpospese commented May 5, 2023

Implement a SwiftUI version of TypographyButton.

It should be named TextStyleButton and it should wrap TypographyButton using a TypographyButtonRepresentable.

See TextStyleLabel and TypographyLabelRepresentable for how to structure code and how to unit test as best as possible.

The import parts are that the button should have a height that is determined by the line height of the Typography (and whatever padding it might have).

It's OK for this to be only for single line buttons (just as TextStyleLabel is only for single line labels for now).

@mpospese mpospese added enhancement New feature or request SwiftUI labels May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SwiftUI
Development

No branches or pull requests

1 participant