From the course: iOS Development Tips

Unlock this course with a free trial

Join today to access over 23,200 courses taught by industry experts.

Add pages in SwiftUI

Add pages in SwiftUI

- [Instructor] In SwiftUI Essential Training, you built an app that looks a lot like this one with a scrolling list of pizzas. In SwiftUI, you can also make pages so you could scroll through them laterally, a full screen of information at a time, rather easily. I've set up the views for a similar to Essential Training, including a History View that we used a couple of weeks ago here in the tips. So to find out how to do that one, go back a few tips. Now let's go over here to Content View, and I'm going to go ahead and make up this Page View. And, first thing I'm going to do is get rid of the Scroll View that I have now for the ones I'm using. So I'm just going to comment this out for now. And, underneath that we'll put some new stuff. Now, pages are actually a form of tab views. So you just start with putting in a TabView. Then inside of that TabView, you'll add a ForEach to iterate through the views. And I'll use my…

Contents