From the course: Complete Guide to SwiftUI
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Shapes
- [Instructor] One more customization feature is adding your own shapes. While this is a very deep topic and I can't cover all here, I'm going to show you one way you could use this by building custom shapes. We've had an old style surfboard in our app, we didn't know it. If you go over to menu here, and I'll just pick a Spam Musubi as an example, we have two different surfboards here. We have our green surfboard, which is a common one today, but this background shape here is actually a surfboard and was the original native Hawaiian surfboard. And we're going to use that shape. Now, we've been faking it with a capsule and putting a square image on one end to make it look like it was that shape. But let's go ahead and make a true surfboard shape for this now. And we're going to do that using a path. Now, for those not familiar with paths, let's do a little explanation. A path is a series of points that connect to one…
Contents
-
-
-
-
-
-
-
-
-
-
-
-
-
- (Locked) Extensions5m 14s
- (Locked) Custom modifiers3m 53s
- (Locked) More modifiers2m 33s
- (Locked) Modifiers with parameters5m 13s
- (Locked) Shapes6m 11s
- (Locked) Modifiers with added views5m 19s
- (Locked) ViewBuilder3m
- (Locked) Conditional ViewBuilder3m 40s
- (Locked) Challenge: Make Home a back button29s
- (Locked) Solution: Make Home a back button5m 36s
- (Locked)
-
-
-
-