Function

clip

Clips the content to shape.

clip

Source set: JvmAndAndroid
public fun RemoteModifier.clip(shape: RemoteShape = RemoteRectangleShape): RemoteModifier

Clips the content to shape.

Example of clipping a background to rounded corners:

Parameters

shape The RemoteShape to clip the content to.

Return

a RemoteModifier that clips the content to shape

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: