From the course: iOS Development Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Custom modifiers in SwiftUI

Custom modifiers in SwiftUI

From the course: iOS Development Tips

Custom modifiers in SwiftUI

- [Instructor] Last step, I set up some selection buttons for a vertical selection and app to simulate ships tablet, in the Solar Clipper Lois MCKendrick. "The Freighter From Quarter Share" and many other books from the "Tales of the Golden Age of the Solar Clipper" by Nathan Lowell. Now that I can select the button, I want to view to appear when I do, and fade in with special transition. Let's look at how to make this effect as its own modifier. So let's go ahead and close this up. And if you look at these files that I downloaded from the exercise files, you'll find that I actually have some more views in here. And I'm going to select those views. And I'm going to hit command + slash to uncomment them. And I'm going to go ahead and comment in environmental view. And those are all the views we now have, that will be in place. And you'll notice at the end of them I've added an isSelected: self.index. So what will happen…

Contents