Recently I've been playing around with iOS Widgets. Inspired by Android's Gauge Battery Widget, I built an app that is a Battery Meter. It's a simple app that monitors the device's battery state and presents the information using a custom meter view. Additionally, there are two Home Screen widgets. The first one recreates Apple's battery indicator. The second one is a compact battery meter. I also implemented a simple, monochromatic widget for the Lock Screen.

Overall, it is a simple application, but not perfect. Unfortunately, the WidgetKit API doesn't allow monitoring battery state changes. Therefore widgets are refreshed periodically instead of in real time. Hopefully, Apple will enable the API to do this in the feature. In the meantime, here is a summary of the Gonk:


Anything interesting to share? Write a comment.