Compose Modifier

styleAppearance

Transitionary modifier.

styleAppearance

Source set: Common
public fun Modifier.styleAppearance(styleResolver: StyleResolver): Modifier

Transitionary modifier. Do not use. This will be removed before the Styles API is stable.

This modifier is to help enable transition between the old Style based API and the new CustomStyle based API. This duplicates the behavior of the properties from BorderScope, BackgroundScope, ForegroundScope, ShadowScope of Style.

This will be moved to be an example of how to use appearance to implement the style properties similar to those provided in Style.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: