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
646
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
646
Activity
Jun ’24
Is there a way to change the title of the swipe to delete button in SwiftUI?
On a regular UITableView, you can use titleForDeleteConfirmationButtonForRowAtIndexPath to change the title of the swipe to delete button. Can this be done on a ForEach in SwiftUI?
Replies
1
Boosts
0
Views
933
Activity
Jul ’21
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.7k
Activity
Jun ’23