From the course: Apple watchOS 7 App 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.
Add previews and scrolling - watchOS Tutorial
From the course: Apple watchOS 7 App Development Essential Training
Add previews and scrolling
- [Narrator] You've made the detail controller but on the watch even the large 44 millimeter one, we have text cutoff at the bottom. We'll fix this with a scroll view. Now I have two strategies that i could use here. One is a scroll view around the description and the way I would do this is real simple. I just go down to where it says item description and I would put it inside of a scroll view. So I just click over here and type scroll view, and embed it like that. Imma go over here to the preview, and I'm going to make it a live preview. And what that does is it lets you move the text right here. Now, that's okay, but let's say that I wanted to put a button underneath it. Let's see how that looks. All right, and you can see once again we're going to start getting this crowding problem. So it's kind of hard to read this. So that becomes a bit of a problem and the button is still pretty scrunched. So that may…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Starting a SwiftUI watch project by extensions3m 48s
-
(Locked)
SwiftUI on watchOS3m 45s
-
(Locked)
Copy a phone interface5m 36s
-
(Locked)
Add a watch interface3m 57s
-
(Locked)
Add previews and scrolling1m 53s
-
(Locked)
Presenting navigation3m 20s
-
(Locked)
Add buttons and dismissals5m 33s
-
(Locked)
Challenge: Ratings page39s
-
(Locked)
Solution: Ratings page7m 28s
-
(Locked)
-
-
-
-
-