ok when I did more troubleshooting, it turns out this line causes a crash
@Environment(.showsWidgetContainerBackground) var showBG : Bool
Post
Replies
Boosts
Views
Activity
I submitted twice and both times it said We’ll be back soon. So I guess that didn't go through?
In the terminal run:
defaults write com.apple.dt.Xcode DVTEnableCoreDevice enabled
Then restart Xcode 14 the iOS 17 device will show up in Xcode like below and you can run and debug the app as usual. (You may need to go to Devices and Simulators to pair/trust > the device)
I have Xcode 15 beta installed alongside Xcode 14, I'm not sure if that's required or not.
wow you just saved me an insane amount of time, thanks so much
I have a different but related question. I’ve seen some apps able to animate continuously in live activities like a character dancing non stop. How is that done? I don’t think the app is sending live activities updates every second. It wouldn’t even be possible I don’t think when backgrounded.
I was able to get it working using @brandonK212 approach but here's the thing, what is the "proper" way of loading a file into image from the ActivityConfiguration?
Right now I have
let _ = print(context.attributes.imageFilename)
if let image = FileIO.load(filename: context.attributes.imageFilename) {
Image(uiImage: image)
}
}
But is that even a good idea? It looks like I have to do file IO every time the view is rendered. I don't think you can hold State or StateObjects because this isn't a SwiftUI View
I was literally searching for this tonight. I can't understand how this works. Does one side need the app open? So namedrop is a special case?