From the course: iPadOS 13 Development Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Cross-platform web browser

Solution: Cross-platform web browser - iOS Tutorial

From the course: iPadOS 13 Development Essential Training

Start my 1-month free trial

Solution: Cross-platform web browser

(upbeat music) - [Instructor] Here was my solution to the challenge. I actually started out pretty far along. So we took the WebView we created previously in the course and I added a Binding urlString to it. And when the URL is initially loaded, it comes from that Binding string. So what we want to do is whenever that URL string is updated, we want to reload the URL. Now, we actually already have a handler for that in updateUIView. This method gets called whenever a bound variable is updated and of course, when this object is initialized. So we could even cut this code here and move it here. To confirm it works, we can put a default urlString in there and then test the app. So I'll show the canvas and then I'm just going to test on iPad for now. So I'm going to hit the Run button and we should see the website loading and there it is. So this is what we're starting out with. We have a web view and we need to add…

Contents