ResponderChain icon indicating copy to clipboard operation
ResponderChain copied to clipboard

Add ResponderChainReader

Open Amzd opened this issue 3 years ago • 0 comments

Add ResponderChainReader for syntax like ScrollViewReader and GeometryReader.

ResponderChainReader { chain in
    HStack {
        TextField(...).responderTag("field1")
        Button("Focus") {
            chain.firstResponder = "field1"
        }
    }
}

Maybe named ResponderReader?

Amzd avatar Jan 21 '21 20:01 Amzd