Post

Replies

Boosts

Views

Activity

Comment on iOS 17.4 (21E217) CMAltimeter not working
Where does this code go? I dropped it into my app and got 4 compiler errors: Cannot find 'self' in scope; did you mean to use it in a type or extension context? Cannot infer contextual base in reference to member 'main' Cannot infer contextual base in reference to member 'now' Cannot infer contextual base in reference to member 'now'
May ’24
Comment on "UI unresponsiveness" warning on @main
I updated to OS 13.0.1 and Xcode to 14.1. My app now reports this same error "This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first." and traces it to this bit of code: if CLLocationManager.locationServicesEnabled(). So, I implemented the suggested fix, but the complier says that authorizationStatus was deprecated in iOS 14.0
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’22