Post

Replies

Boosts

Views

Activity

Reply to Core ML in Swift Playground
It might be worth adding that it seems like using Bundle.main.url (or Bundle(for: self)) always fails. For some reason ModelEntity.load(named: "apple.usdz") works while Bundle.main.url(forResource: "apple", withExtension: "usdz") doesn´t. All the tutorials say the latter is the right way to load resources, but has Apple changed something?
Apr ’23
Reply to Core ML in Swift Playground
It might be worth adding that it seems like using Bundle.main.url (or Bundle(for: self)) always fails. For some reason ModelEntity.load(named: "apple.usdz") works while Bundle.main.url(forResource: "apple", withExtension: "usdz") doesn´t. All the tutorials say the latter is the right way to load resources, but has Apple changed something?
Replies
Boosts
Views
Activity
Apr ’23