Post

Replies

Boosts

Views

Activity

Cannot find type Content in scope
I am trying to follow along in the SwiftUI containers session and I am getting the error Cannot find type Content in scope when using a line like: @ViewBuilder var content: Content I am using Xcode 16 beta and the project is set for iOS 18 as a minimum. Is there more I need to do?
Topic: UI Frameworks SubTopic: SwiftUI
0
2
664
Jun ’24
Cannot find type Content in scope
I am trying to follow along in the SwiftUI containers session and I am getting the error Cannot find type Content in scope when using a line like: @ViewBuilder var content: Content I am using Xcode 16 beta and the project is set for iOS 18 as a minimum. Is there more I need to do?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
0
Boosts
2
Views
664
Activity
Jun ’24
Error after adding previewContainer during code-along
I am getting this error in my preview: CompileDylibError: Failed to build ContentView.swift Compiling failed: main actor-isolated let 'previewContainer' can not be referenced from a non-isolated context I don't know enough about @MainActor to figure this out.
Replies
6
Boosts
8
Views
1.8k
Activity
Jun ’23