UIDevice.current.batteryLevel is not equal to status bar number in iOS 17

The number is not sync between UIDevice.current.batteryLevel and status bar battery level, maybe due to iOS system battery status update frequency

Answered by Frameworks Engineer in 772193022

This is expected on iOS 17—the value reported by UIDevice.current.batteryLevel now provides an approximation of the current battery level, rather than the precise level.

Accepted Answer

This is expected on iOS 17—the value reported by UIDevice.current.batteryLevel now provides an approximation of the current battery level, rather than the precise level.

UIDevice.current.batteryLevel is not equal to status bar number in iOS 17
 
 
Q