Post

Replies

Boosts

Views

Activity

Async/Await with PhotogrammetrySession
I'm trying out the PhotogrammetrySession api following the wwdc2021-10076 tutorial here However I get this error when trying the async/await for looping the session.output For-in loop requires 'AnyPublisher<PhotogrammetrySession.Output, Error>' to conform to 'AsyncSequence' Code: async {     for try await output in session.output {         switch output {         case .requestProgress(let request, let fraction):             print("Request progressL \(fraction)")         }     } } Using Xcode 13.0 beta and macOS 12.0 Beta. MacBook Pro (15-inch, 2019) Thanks.
2
0
555
Jun ’21