shape

Sets the rounded boundary used for refraction and masking.

Without an authored shape, Glass uses GlassDefaults.continuousShape. Built-in styles never write a shape, so an authored shape is kept whether it is written before or after them.


Sets the rounded boundary used for refraction and masking, with continuous (iOS-style) corners.

Masking, refraction, lighting, and the rim all follow the shape's smoothing. Pass the same shape to Modifier.clip or Modifier.border to match the Glass silhouette.