We have a custom `TextFieldBehaviour` using Native...
# doodle
c
We have a custom
TextFieldBehaviour
using NativeModifier, is there away to add padding to the text? It’s too close to the TextField border.
n
hmm, there’s no direct API for this now, though it’d be easy to expose. could you wrap the TextField in a view and manage the border on that view? this assumes you are ok with a non-platform border of course.
Copy code
view {
    + textField

    layout = constrain(textField) {
        it.edges eq parent.edges + insets
    }

    render = {
        // draw border when text field has focus
    }
}
👍 1