On iOS17, UIDevice.current.batteryLevel is returning values rounded to 0.05, such as 1, 0.95, 0.9. Which used to be a 1% granularity in iOS16. Is this a bug or a new feature?
Battery level getting from UIDevice is not accurate on iOS17
@Frameworks Engineer It looks like this is not working at all on MacCatalyst builds. I'm consistently getting batteryLevel: 0 and the following error printed to console while debugging:
Error retrieving battery status: result=-536870207 percent=-2109898751 hasExternalConnected=0 isCharging=4 isFullyCharged=244
Is this also intended behavior? We're depending on this value while in fullscreen mode for our users to have a semi-accurate representation of their battery life, specifically for MacBook users.