codeandtheory / YMatterType

An opinionated take on Design System Typography for iOS and tvOS.
Apache License 2.0
22 stars 8 forks source link

Add SwiftUI TextField #87

Open mpospese opened 1 year ago

mpospese commented 1 year ago

Implement a SwiftUI version of TypographyTextField.

It should be named TextStyleTextField and it should wrap TypographyTextField using a TypographyTextFieldRepresentable.

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

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