Sample Project: An iOS Dedicated WebKit Web Browser in Swift

Within our own native iOS application it may be desirable or necessary to display content that is already being hosted on our website. Displaying our already existing Privacy Policy or Terms of Service agreement content is one example. A reasonable user experience would allow them to navigate our web content but prevent them from straying to external websites or other parts of our website. 

Dedicated Web Browser


This sample project instantiates an Apple's WKWebView class and uses it as the backbone of our dedicated web browser. This class comes equipped with a delegate, WKNavigationDelegate,  protocol that we interface with for the purpose of controlling where the user navigates too. We also use Key Value Observing (KVO) to listen in on changes to the browser's forward and backward history to toggle the availability of those buttons and the estimated progress to finish when content is loading and a separate content loading Boolean flag to control whether the progress bar is visible or not. This project also displays an alert message if the user attempts to stray from our site's root domain.

This project can be found on GitHub.

4 comments:

  1. Wow!its a wonderful post that you are giving to us.I am really happy to inform you that its a very nice post and you are explaining it in a very understanding form.Thank you very much for your great work.Custom essay writing service is the better service that helps students for their academic course while giving more and effective tips for writing works.

    ReplyDelete
  2. I'm not an Apple's user and I'm not sad about it at all, I would even say I was happy with that. I don't have that many troubles with system and data transfer, my battery is pretty powerful as well. And I can't even watch live tranny webcams properly by iOS, even though I tried. If you want to go this amazing site, go there and enjoy the view.

    ReplyDelete
  3. IOS is a very fast and growing technology, now-a-days every business has there own mobile phone app so my opinion of this technology is very positive. I am also a IOS app developer so i know the importance of this technology. I was complete my Online Bachelor Degree Programs in UAE University.

    ReplyDelete