diniska / modal-view

Present Modal view with Swift UI in the same way you would do with NavigationView
MIT License
92 stars 9 forks source link

.onTapGesture missing #11

Open Fahrenberg opened 4 years ago

Fahrenberg commented 4 years ago

Is it possible to add a .onTapGesture to ModalLink/ModalPresenter?

diniska commented 3 years ago

Yes, you can add onTapGesture to any view according to SwiftUI docs. Here is the screenshot of the method definition. I don't think that we need to do something specific here unless it works in an unexpected way for you. Снимок экрана 2020-10-16 в 23 54 21