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.

Quick Help in SwiftUI

Quick Help in SwiftUI

- [Instructor] There's some powerful documentation features of xcode that you may not be using and may make your life a lot easier. Take a look at the downloaded exercise file. You can go ahead and run it like I have here. Essentially, I've written a simple app to turning on and off a matrix of lights. You can go ahead and stop that app. If I'm looking here at the content view code it's hard to figure out what's going on. So let's go look at the definition here of LightBank view. I'm going to do an Option Click here and it says declared in LightBankView.swift so I can go there real quick. You'll see here that I've got a LightBank up top and a toggle button view below it, that I made. Now one's a model and one's a view. I might use them elsewhere when they're hard to code. Now if you Option Click on the Hstack here, like I just did earlier, you get a pop-up which describes how Hstack works. If you open the right sidebar and…

Contents