SwiftUI React Nativev6.3.3
  • Values
  • Runtime

Getting started

  • Introduction
  • Installation
  • Quick start

Concepts

  • Reading the reference
  • Composing modifiers
  • Values
  • State and data flow

About

  • What it is
  • Why SwiftUI
  • History

Under the hood

  • How it renders
  • How it's generated
  • Principles
ValuesDrawing and shapes

DefaultGlassEffectShape

The default shape applied by glass effects, a capsule.

StructureiOS 26.0+macOS 26.0+tvOS 26.0+watchOS 26.0+DefaultGlassEffectShape in SwiftUI

Declaration#

React
type DefaultGlassEffectShape = SwiftOpaque<'DefaultGlassEffectShape'>;
Swift
struct DefaultGlassEffectShape

Overview#

You do not use this type directly. Instead, SwiftUI creates this shape on your behalf as the default parameter of the View.glassEffect(_:in:) modifier.

From Apple’s SwiftUI documentation. Code samples there are Swift.

See also#

More in Drawing and shapes.

  • AngleA geometric angle whose value you access in either radians or degrees.
  • AngularGradientAn angular gradient.
  • AnyGradientA color gradient.
  • BlendModeModes for compositing a view with overlapping content.
  • ButtonBorderShapeA shape used to draw a button's border.
  • ColorMatrixA matrix to use in an RGBA color transformation.
  • ConcentricRectangleAnimatableDataThe type defining the data to animate.
  • ContainerRelativeShapeA shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a rectangle.
  • ContentShapeKindsA kind for the content shape of a view.
  • CoordinateSpaceProtocolA frame of reference within the layout system.
  • EllipticalGradientA radial gradient that draws an ellipse.
  • GlobalCoordinateSpaceThe global coordinate space at the root of the view hierarchy.

On this page

0%
  • Declaration
  • Overview
  • See also
Report an issue