CupertinoMaterials

A class which contains functions to build dev.chrisbanes.haze.blur.HazeBlurStyles which implement 'material' styles similar to those available on Apple platforms. The values used are taken from the iOS 18 Figma file published by Apple.

The primary use case for using these is for when aiming for consistency with native UI (i.e. for when mixing Compose Multiplatform content alongside SwiftUI content).

Functions

Link copied to clipboard
fun regular(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A dev.chrisbanes.haze.blur.HazeBlurStyle which implements a somewhat opaque material. More opaque than thin, more translucent than thick.

Link copied to clipboard
fun thick(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A dev.chrisbanes.haze.blur.HazeBlurStyle which implements a mostly opaque material. More opaque than regular.

Link copied to clipboard
fun thin(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A dev.chrisbanes.haze.blur.HazeBlurStyle which implements a translucent material. More opaque than ultraThin, more translucent than regular.

Link copied to clipboard
fun ultraThin(containerColor: Color = MaterialTheme.colorScheme.surface): HazeBlurStyle

A dev.chrisbanes.haze.blur.HazeBlurStyle which implements a mostly translucent material.