Post

Replies

Boosts

Views

Activity

Reply to Guided Capture sample - broken with iOS17 beta 4
Yes, actually its not that hard to fix. The object capture session is not an observed object anymore, but the AppDataModel (which the ObjectCaptureSession is in) is an environment object. Just remove the @ObservableObject ObjectCaptureSession anywhere and use the @Environment AppDataModel and access it from there. You also have to rewrite the feedback and state sink in the AppDataModel because they are also not published anymore. Use the "ObjectCaptureSession.feedbackUpdates / ObjectCaptureSession.stateUpdates" for that. Hope i could help, this took me a day to figure out yesterday.
Jul ’23
Reply to Accessing an environmentObject's function in another environmentObject which is created at the same time
Hello Dirk, thanks for your answer! The problem is, that is dont only need the billModel in the PDFManger but also everywhere else in the App because it contains the list with all entries from the DB. The PDFManager Class is no DataModel but a helper class that collects informations and provides functions for creating a pdf out of the collected informations.
Oct ’21