Display Webpage with SFSafariViewController in iOS with Swift – Code Hangout 26

[ad_1]
DOWNLOAD projects and FREE iOS Course here:

Prior to 2015 – the year of iOS 9, if we want to load a webpage in our app, there are 3 ways to do it: (1) direct our user to Safari, leaving our app — (2) use UIWebView and a progress bar — (3) use WebKit, add progress bar, work on some custom code to add back and forward buttons.

Yet, these methods aren’t perfect as you can imagine. We don’t have the whole powerful Safari with things like design, interaction, animation, password auto-fill – which is so critical when the user needs to log in to something like Facebook or Instagram.

With the introduction of iOS 9, everything becomes so much more easier with SFSafariViewController. It allows us to have the whole powerful Safari in our app — I mean all the features of Safari!

Let’s first download the starter project in this Code Hangout, and of course, I have a freebie for you as my THANKS for checking out Code Hangout.

DOWNLOAD projects and FREE iOS Course here:

*** ABOUT CODE HANGOUT ***

Code Hangout is hosted by Duc Tran, founder of Developers Academy. This is his free-style no notes, no teleprompter presentation and live coding broadcast with you guys everyday.

*** FREE TRAININGS IN IOS DEVELOPMENT ***

To subscribe and get free tutorials, courses and weekly content, visit us at:

Get Duc’s free new iOS crash course:
Join Duc’s programs:
Join Total iOS Blueprint:
Join Socialize Your Apps:

Go to his blog, new content daily:


Posted

in

by

Tags:

Comments

3 responses to “Display Webpage with SFSafariViewController in iOS with Swift – Code Hangout 26”

  1. Denis Petrov Avatar

    Can it download files when clicked on donwload links?
    How about upload, can i upload files using <input type="file"> ?

  2. Alex Chao Avatar

    Everything worked, thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *