GraphicsContextShadowOptions
Options that configure the graphics context filter that creates shadows.
Declaration
type GraphicsContextShadowOptions =
| ('disablesGroup'
| 'invertsAlpha'
| 'shadowAbove'
| 'shadowOnly'
| { rawValue: number; })
| readonly ('disablesGroup'
| 'invertsAlpha'
| 'shadowAbove'
| 'shadowOnly'
| { rawValue: number; })[];@frozen struct ShadowOptionsPass a literal, or build one with SwiftUI.GraphicsContextShadowOptions from import { SwiftUI } from 'swiftui-react-native'.
Overview
You can use a set of these options when you call
Filter.shadow(color:radius:x:y:blendMode:options:) to create a
Filter that adds a drop shadow to an object that you draw into a
GraphicsContext.
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.
- DefaultGlassEffectShapeThe default shape applied by glass effects, a capsule.
- EllipticalGradientA radial gradient that draws an ellipse.