Question : HOW TO KNOW IPHONE BETTRY CHARGE IN SWIFTUI
Answered by : crowded-chamois-semk0fnv5z8x
UIDevice.current.isBatteryMonitoringEnabled = true
let level = UIDevice.current.batteryLevel
Source : https://www.hackingwithswift.com/example-code/uikit/how-to-read-the-battery-level-of-an-iphone-or-ipad | Last Update : Wed, 21 Apr 21