https://developer.apple.com/forums/thread/756079#756079021
https://developer.apple.com/forums/thread/756089
Post
Replies
Boosts
Views
Activity
Thank you! Really great solution - you clearly know your way around the detail!
👍 Thank you for all your help!
Shame I only need to load the image's metadata - I'll raise a feedback request.
Also I am right in thinking that there is no async method yet to load pure data - i.e. Data.init(withContentsOfURL: URL) async?
If so I'll raise a feedback request for this as well, or would this be barking up the wrong tree?
Having looked and thought carefully about this, I have found that adding Task.yield() solves the issue, as I proactively await?
Thank you! Yes, the following compiles...
@MainActor
class Model: ObservableObject {
@Published var num: Int = 0
func updateNumber(_ newNum: Int) {
self.num = newNum
}
}
Thanks for coming back to me.
I think where I'm coming from, is that because one doesn't have to rely on genstrings in Xcode 13, I'm wondering how to create the initial translation files.