The number is not sync between UIDevice.current.batteryLevel and status bar battery level, maybe due to iOS system battery status update frequency
UIDevice.current.batteryLevel is not equal to status bar number in iOS 17
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.