Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Underlyne style #102

Open
Open
@zvjerka24

Description

@zvjerka24

If you put two AnimatedTextInput controls on the same screen and if all has the same custom style

        textinput2.style = LoginTextInputStyle()
        textInput1.style = LoginTextInputStyle()
        textInput1.backgroundColor = .yellow
        textinput2.backgroundColor = .green
        textInput3.style = LoginTextInputStyle()
        textInput3.backgroundColor = .red

where line height is defined in LoginTextInputStyle.

struct LoginTextInputStyle: AnimatedTextInputStyle {
   ...
    var lineHeight: CGFloat = 3
}

Style has been applied, but line height is correct only for the first text input, on others it is 0,5.

1

If apply custom style is moved to viewDidAppear, all of the text inputs has line height 0,5.

2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions