This is simply a deprecation warning saying that the method you are using to initialize the CoreML model will not be supported in the future. I would suggest updating your code to use the more recent initialization technique as follows.
let model: ImageClassifierModel = try! ImageClassifierModel(configuration: .init())
or
let model: ImageClassifierModel = try! ImageClassifierModel(configuration: MLModelConfiguration())
Although, I would also handle the error if the model fails to initialize.
Topic:
Programming Languages
SubTopic:
Swift
Tags: