ContinuousRoundedCornerShape

Creates a ContinuousRoundedCornerShape with the same size applied to all four corners.

Parameters

corner

The size to apply to each corner.

smoothing

How far corners ease into their edges: 0f is circular and 1f looks like SwiftUI's .continuous style.


Creates a ContinuousRoundedCornerShape with the same size applied to all four corners.

Parameters

size

The size in Dp to apply to each corner.

smoothing

How far corners ease into their edges: 0f is circular and 1f looks like SwiftUI's .continuous style.


Creates a ContinuousRoundedCornerShape with the same size applied to all four corners.

Parameters

size

The size in pixels to apply to each corner.

smoothing

How far corners ease into their edges: 0f is circular and 1f looks like SwiftUI's .continuous style.


Creates a ContinuousRoundedCornerShape with the same size applied to all four corners.

Parameters

percent

The size in percent of the shape's shortest side to apply to each corner. 50 makes a capsule, which draws circular ends.

smoothing

How far corners ease into their edges: 0f is circular and 1f looks like SwiftUI's .continuous style.


fun ContinuousRoundedCornerShape(topStart: Dp = 0.dp, topEnd: Dp = 0.dp, bottomEnd: Dp = 0.dp, bottomStart: Dp = 0.dp, smoothing: Float = 1.0f): ContinuousRoundedCornerShape

Creates a ContinuousRoundedCornerShape with sizes defined in Dp.

Parameters

topStart

The top-start corner size.

topEnd

The top-end corner size.

bottomEnd

The bottom-end corner size.

bottomStart

The bottom-start corner size.

smoothing

How far corners ease into their edges: 0f is circular and 1f looks like SwiftUI's .continuous style.


fun ContinuousRoundedCornerShape(topStart: Float = 0.0f, topEnd: Float = 0.0f, bottomEnd: Float = 0.0f, bottomStart: Float = 0.0f, smoothing: Float = 1.0f): ContinuousRoundedCornerShape

Creates a ContinuousRoundedCornerShape with sizes defined in pixels.

Parameters

topStart

The top-start corner size in pixels.

topEnd

The top-end corner size in pixels.

bottomEnd

The bottom-end corner size in pixels.

bottomStart

The bottom-start corner size in pixels.

smoothing

How far corners ease into their edges: 0f is circular and 1f looks like SwiftUI's .continuous style.


fun ContinuousRoundedCornerShape(topStartPercent: Int = 0, topEndPercent: Int = 0, bottomEndPercent: Int = 0, bottomStartPercent: Int = 0, smoothing: Float = 1.0f): ContinuousRoundedCornerShape

Creates a ContinuousRoundedCornerShape with sizes defined in percent of the shape's shortest side.

Parameters

topStartPercent

The top-start corner size in percent.

topEndPercent

The top-end corner size in percent.

bottomEndPercent

The bottom-end corner size in percent.

bottomStartPercent

The bottom-start corner size in percent.

smoothing

How far corners ease into their edges: 0f is circular and 1f looks like SwiftUI's .continuous style.