EddyVerbruggen / cordova-plugin-safariviewcontroller

:tiger: :elephant: :crocodile: Forget InAppBrowser for iOS - this is way better for displaying read-only web content in your PhoneGap app
MIT License
282 stars 144 forks source link

Change wording on Done button #187

Open ThinkBlackInk opened 1 year ago

ThinkBlackInk commented 1 year ago

Is it possible to change the wording on the button that closes the viewer? I want to set it to "Back to App" instead of "Done". It makes more sense in my app.

I also would like to hide the URL, if possible. I know that has been asked before, but putting another request in for it, in case that will help get the feature in there!

S-AT commented 1 year ago

iOS does not allow user-defined wording on the close button, the only allowed values are: 'Done', 'Close', 'Cancel'. I've implemented this in my fork here, see dismissButtonStyle option.

Also I've added barCollapsingEnabled option to minimize the nav bar when user is scrolling the page. But iOS does not allow to hide it completely, due to the security issues I think.