I am running xcode 16.1 and in Module 3 Lesson 2: SwiftUI Tab Views. The only difference I’m seeing in MainView at the bottom is instead of line 38 in tut where it says struct MainView_Previews: PreviewProvider and so on, all I have there is #Preview {
MainView()
}
}
After following along, after adding the VStack for image and adding the SF name like in the tut, I got this syntax error and the Preview (canvas) is gone. Is this because I’m on 16 and need to change #Preview manually to match the tut’s code there? Not sure because I recall in tut that code was auto-generated when file was created.