How To Know Iphone Bettry Charge In Swiftui

[Solved] How To Know Iphone Bettry Charge In Swiftui | Swift - Code Explorer | yomemimo.com
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

Answers related to how to know iphone bettry charge in swiftui

Code Explorer Popular Question For Swift