Post

Replies

Boosts

Views

Activity

Reply to iOS 17.4 (21E217) CMAltimeter not working
Found a workaround. Apparently the issue is that as of 17.4, CMLAltimeter startRelateiveAltitudeUpdates not needs "Motion & Fitness" permission. However, normally in iOS just using a service requiring the permission will initiate the permission prompt by iOS to the user. The trick it to force requesting permission. let recorder = CMSensorRecorder() recorder.recordAccelerometer(forDuration: 0.1) will prompt the user for permission. Once granted, relative altitude data works.
Mar ’24
Reply to iOS 17.4 (21E217) CMAltimeter not working
Found a workaround. Apparently the issue is that as of 17.4, CMLAltimeter startRelateiveAltitudeUpdates not needs "Motion & Fitness" permission. However, normally in iOS just using a service requiring the permission will initiate the permission prompt by iOS to the user. The trick it to force requesting permission. let recorder = CMSensorRecorder() recorder.recordAccelerometer(forDuration: 0.1) will prompt the user for permission. Once granted, relative altitude data works.
Mar ’24
Reply to Can't remove back button title, nor change tint color when pushing UIViewController from SwiftUI view via UIViewControllerRepresentable
Moved comment
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jul ’24
Reply to iOS 17.4 (21E217) CMAltimeter not working
Found a workaround but my post is being reviewed. let recorder = CMSensorRecorder() recorder.recordAccelerometer(forDuration: 0.1) Requests permission and gets it working.
Replies
Boosts
Views
Activity
Mar ’24
Reply to iOS 17.4 (21E217) CMAltimeter not working
Found a workaround. Apparently the issue is that as of 17.4, CMLAltimeter startRelateiveAltitudeUpdates not needs "Motion & Fitness" permission. However, normally in iOS just using a service requiring the permission will initiate the permission prompt by iOS to the user. The trick it to force requesting permission. let recorder = CMSensorRecorder() recorder.recordAccelerometer(forDuration: 0.1) will prompt the user for permission. Once granted, relative altitude data works.
Replies
Boosts
Views
Activity
Mar ’24
Reply to iOS 17.4 (21E217) CMAltimeter not working
Found a workaround. Apparently the issue is that as of 17.4, CMLAltimeter startRelateiveAltitudeUpdates not needs "Motion & Fitness" permission. However, normally in iOS just using a service requiring the permission will initiate the permission prompt by iOS to the user. The trick it to force requesting permission. let recorder = CMSensorRecorder() recorder.recordAccelerometer(forDuration: 0.1) will prompt the user for permission. Once granted, relative altitude data works.
Replies
Boosts
Views
Activity
Mar ’24
Reply to iOS 15 Simulator's Spotlight process consistently uses ~100% of CPU. Any ideas for mitigation?
On Xcode 13.1 tried the above scripts. It didn't stop Spotlight when running SwiftUI in a Playground.
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Nov ’21