Repository navigation
The library is now published as com.composables:systembars in the com.composables.systembars package. Earlier releases below were published as com.composables:system-ui.
Added
SystemBars(all)applies the same content to the status and navigation bars.SystemBarsState(viewController)andSystemBarsState.statusBarStylelet your own iOS view controller apply system bar requests.
Changed
- Rename
SystemBarIconstoSystemBarContent, andSystemBarIcons.DefaulttoSystemBarContent.Unspecified.SystemBarContentis a value class, so new values can be added without breaking callers. - Rename
SystemUiStatetoSystemBarsState,ProvideSystemUitoProvideSystemBars, andSystemUiViewControllertoSystemBarsViewController. SystemBarAppearanceis a regular class instead of a data class.SystemBarson iOS without a host has no effect and logs a warning instead of throwing.SystemBarson Android without an Activity or dialog window, such as in Android Studio previews, has no effect instead of throwing.- Leave the deprecated navigation bar color alone where Android enforces edge-to-edge and ignores it.
- Leave the navigation bar untouched on Android 6 and 7, which cannot draw dark navigation buttons.
SystemBarsState.appearanceresolves each bar from the most recent request that specifies it, matching Android. An overlay that leaves a bar unspecified no longer resets it on iOS or in custom hosts.