You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now when you enable showDoneButtonOnModals you get a "Done" (UIBarButtonItem.SystemItem.done) button on your modal. This could be confusing when having a form inside the modal, the user might assume the data also gets saved when they click "done".
I would prefer those modals to show "Close" (UIBarButtonItem.SystemItem.close) as I think that's more distinct and signalling that nothing is being saved.
Right now you can't configure what type of button is placed. I would also be happy with the default becoming close.
I can try to implement something but could use some direction on how to do so in Swift 😅
The text was updated successfully, but these errors were encountered:
and use CustomHotwireWebViewController instead of HotwireWebViewController in my SceneController! Make sure to disable Hotwire.config.showDoneButtonOnModals if you do this.
Maybe being able to customize it via a setting might still be nice :)
Your approach, subclassing HotwireWebViewController, looks good to me. I don't see us exposing anything outside of the "Done" button via a configuration, there are just way too many options.
Right now when you enable
showDoneButtonOnModals
you get a "Done" (UIBarButtonItem.SystemItem.done
) button on your modal. This could be confusing when having a form inside the modal, the user might assume the data also gets saved when they click "done".I would prefer those modals to show "Close" (
UIBarButtonItem.SystemItem.close
) as I think that's more distinct and signalling that nothing is being saved.Right now you can't configure what type of button is placed. I would also be happy with the default becoming close.
I can try to implement something but could use some direction on how to do so in Swift 😅
The text was updated successfully, but these errors were encountered: