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
281 stars 143 forks source link

With customize navigation bar and tool-bar #139

Open JazzHunter opened 5 years ago

JazzHunter commented 5 years ago

Hello~ Thanks very much for your great work of this plugin, which is just the Right one for my cordova app targeting Native IOS/Android when open an external link without jump out. Just want these issues: In IOS:

  1. Navigation-bar title on top show targeting Html's title now the center shows the URL. Could it be possible to show the html's title?(Though I know Safari also shows the URL...)
  2. Navigation-bar title on top with customize button's icons. I want to replace the text 'done' with an left arrow icon, and move Share button at bottom to the right of navigation-bar....could it be possible in your future update version?
  3. No tool-bar at bottom this toolbar's style is not unified with my App, so I want to move all the functions (Share, Open in Browser) to the Top, and hide the toolbar at bottom.

In Android

  1. Customize Color for Navigationbar on Top in current version it is gray, and can't be changed..
  2. Navigation-bar title on top with customize button's icons. Besides the feature request in IOS, In android, the location bar seems useless for me...could it be replaced by Html's title?

Again, thanks very much for your excellent work of this Plugin~

ghost commented 5 years ago

To customize color for NavigationBar use barColor for iOS, but toolbarColor for Android. It's inconsistent across platforms: toolbarColor: '#f7f7f9', // for Android barColor: '#f7f7f9', // for iOS only tintColor: '#1ca8dd', // for iOS only controlTintColor: '#1ca8dd' // for iOS only