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?
Post
Replies
Boosts
Views
Activity
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.
I’m thinking of trading in an Intel MacBook Air for an M1 iMac. Another possibility is an M1 MacBook Air or 13” Pro with a second screen.
I know portability would be a big difference but any other thoughts? I would love to hear your ideas.
We are buying some extra monitors for developers and writers at work. It would be great to find a monitor that:
you can get power and video with one cable
is retina resolution
is 24-30"
I am looking at monitors like: Dell UltraSharp 27 USB-C Hub Monitor - U2721DE
LG 27UD88-W
The LG Ultra 5K would also fit the bill and the camera is nice but probably beyond our budget.
Suggestions welcome!
When I try to open the Xcode Documentation inside Xcode 12 (downloaded from the app store), the whole app closes. Is anyone else seeing this
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?
When using the SwiftUI declarations to define an app, where do you put the code for registering for notifications that would normally go in the app delegate?
var body: some View {
switch family {
case .systemSmall:
ZStack {
AvatarView(entry.character)
.foregroundColor(.white)
}
.background(Color.gameBackground)
.widgetURL(entry.character.url)
With that last modifier, I get a white widget in the preview instead of the actual content. Is anyone else seeing this?
Apple posted this the other day:https://developer.apple.com/news/?id=01212020aDo you think this means Cordova apps with HTML content wrapped inside the app would be a problem?