swiftui-currency-field icon indicating copy to clipboard operation
swiftui-currency-field copied to clipboard

.toolbar -> ToolbarItemGroup(placement: .keyboard) ?

Open maceip opened this issue 2 years ago • 1 comments

great work, love this repo!

I would like to extend it by adding a toolbar to the top of the keyboard. Is there a preferred way to do this?

When I try

                        CurrencyField(value: $value).toolbar {
                            ToolbarItem(placement: .keyboard) {
                                Button("Click me!") {
                                    print("Clicked")
                                }
                            }
                        }

nothing is displayed

maceip avatar Jan 17 '23 20:01 maceip

Hello, I've been looking for this kind of currency input field and loving it. I have the same question as maceip. Is there a way to add a toolbar button? So that the user can move to the next TextField without having to tap into the next TextField.

Thanks!

notam42 avatar Feb 12 '23 21:02 notam42