//initalize with your API Key
let rf = RoboflowMobile(apiKey: API_KEY)
var model: RFObjectDetectionModel?
//model is your model's project name
rf.load(model: "YOUR-MODEL-ID", modelVersion: YOUR-MODEL-VERSION-#) { [self] model, error, modelName, modelType in
print(error?.localizedDescription as Any)
model?.configure(threshold: threshold, overlap: overlap, maxObjects: maxObjects)
//model?.detect takes a UIImage and runs inference on it
let img = UIImage(named: "example.jpeg")
model?.detect(image: img!) { predictions, error in