Get battery health

I have the task to add the battery health in app. I searched for a couple of hours and did not find a specific answer whether this is possible in iOS 14 - 15. I found objective-c methods to get this information however they are marked as depricated. Thanks for any help.

Accessible information has been limited since iOS 10.

Could this provide some help ?

https://stackoverflow.com/questions/36024247/getting-battery-health-information-on-ios

Get battery health
 
 
Q