Safari WebView

Safari WebView

View and activate on the Corona Store

The Safari WebView plugin allows you to create faster and more feature-rich web views in iOS.
Documentation

Hi Scott,

I have some questions regarding your plugin. 

  • Can you set anchor points to the view?
  • Can you set the width & height to use display.contentWidth and display.contentHeight?
  • Does the navigation bar appear like normal Safari App or just the html part?
  • Is it faster than the built-in webview bundled with corona? Is so, how fast?
  • Can I show local image files within the local html file in the view?
  • Can you please post an image of how the view will look like?
  • I read the discription but I want to know what is the primary features of the plugins?

Thanks in advance,

  1. No not currently

  2. Yep

  3. Just html part

  4. Top web view is my plugin https://youtu.be/g60XDbRK6SA

  5. Yes you can via file path ( myWebView:requestFromFile(path)) or just passing in some html code via string( myWebView:requestFromString(html))

  6. Check out https://youtu.be/g60XDbRK6SA ( top web view is my plugin and bottem one is native plugin)

  7. This Plugin has more features like 3D Touch, webview page loading progress ( returns value between 0-1), mine are faster, get title of page, has secure content, and displaying local html code via string.

@Scott,

Thanks for answering my questions.

Will anchoring be added in an update?

Will it be on top of scene objects all the time? In another word, can it be added to Corona scene Group? 

  1. “A Boolean value indicating whether all resources on the page have been loaded through securely encrypted connections.”

https://developer.apple.com/documentation/webkit/wkwebview/1415002-hasonlysecurecontent

  1. Yeh it is a native object

  2. I cannot insert web views (Safari web views) into Corona display groups because Corona has not shed light on how to do this.

Ok, so at this point I think we all just have to admit that Scott Harrison is a bona fide genius with a lot of time on his hands. Two thumbs up Scott!

If he was a genius it would work on Android too :wink:

lol, “Safari” is only on iOS and macOS 

You answered my unedited post. Anyhow, thanks for your feedback. 

We should call you iScott from now on…

Hi Scott,

is there a way to hide the safari web view? unfortunately .isVisible = false does not seem to work.

Hi DevilSquid, there is no api to hide an webview, but what you can do is move it off screen and bring it back when you need it.