iOS 18.4 Beta 1 Reportedly Adds New Battery APIs
The first beta of iOS 18.4 is out, and early hands-on reports indicate it includes new APIs for enhanced battery health diagnostics. The update also expands SwiftUI diagnostic tools and adds more aggressive warnings for deprecated API usage, pushing developers to migrate to modern frameworks.
The new battery APIs are a logical extension of Apple's existing battery health features, first introduced in iOS 11.3. This initial implementation was a response to controversy over undisclosed performance throttling of iPhones with aging batteries. Apple subsequently offered discounted battery replacements and added more transparency around battery health and performance management. The push towards modern frameworks is further evidenced by more aggressive warnings for deprecated API usage in iOS 18.4. Apple has a history of a multi-stage deprecation process, often marking an API as deprecated for several major OS versions before its complete removal. This provides developers with a long transition period to adopt newer, more secure, and efficient alternatives like WKWebView over the older UIWebView. iOS 18.4 also introduces runtime warnings for applications that have not yet adopted the scene-based app lifecycle, which was first introduced in iOS 13. These warnings are expected to become assertions in a future iOS update, which could cause apps still using the older AppDelegate model to stop functioning correctly. This move is part of Apple's broader strategy to encourage the adoption of SwiftUI and a more modern app architecture. For developers working with SwiftUI, iOS 18.4 beta 1 includes several targeted fixes. These address issues with the `.tint()` modifier not correctly overriding colors in alerts, problems with `.defaultVisibility(.hidden)` for toolbar items, and incorrect environment invalidation in `NavigationStack` and `NavigationSplitView`. These targeted improvements are part of the ongoing refinement of SwiftUI to provide a more robust and predictable development experience.