Declaration
import { EllipticalGradient } from 'swiftui-react-native';@frozen nonisolated struct EllipticalGradientInitializers
3 SwiftUI initializers back <EllipticalGradient>. The props you pass pick one.
<EllipticalGradient
colors: SwiftUI.Color[]
center?: SwiftUI.UnitPoint
startRadiusFraction?: number
endRadiusFraction?: number
/>nonisolated init(
colors: [Color],
center: UnitPoint = .center,
startRadiusFraction: CGFloat = 0,
endRadiusFraction: CGFloat = 0.5
)colors*SwiftUI.Color[]The colors, evenly distributed throughout the gradient.
centerSwiftUI.UnitPointThe center of the circle, in [0, 1] coordinates.
Default
`.center`startRadiusFractionnumberThe start radius value, as a fraction between zero and one. Zero maps to the center point, one maps to the diameter of the unit circle.
Default
`0`endRadiusFractionnumberThe end radius value, as a fraction between zero and one. Zero maps to the center point, one maps to the diameter of the unit circle.
Default
`0.5`
Also takes the common view props: modifiers, style and testID.
See also
More in Colors and gradients.