Post

Replies

Boosts

Views

Activity

Reply to Missing iOS 17 device support files
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
Jul ’23
Reply to How to fetch an image in the Live Activity (ActivityKit)
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
Jul ’23