Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
Structure

Gradient

The Compose SwiftUI form of SwiftUI's Gradient.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
class Gradient

Overview

This is the Kotlin form of SwiftUI Gradient: SwiftUI documentation. In Swift it reads:

@frozen struct Gradient

Topics

Initializers

constructor(stops: List<Gradient.Stop>)
SwiftUI Gradient.init(stops:)
constructor(colors: List<Color>)
SwiftUI Gradient.init(colors:)
constructor(color: Color, location: Double)
SwiftUI Gradient.Stop.init(color:location:)

Type properties

val perceptual: Gradient.ColorSpace
SwiftUI Gradient.ColorSpace.perceptual
val device: Gradient.ColorSpace
SwiftUI Gradient.ColorSpace.device

Types

class Gradient
SwiftUI Gradient
class ColorSpace
SwiftUI Gradient.ColorSpace
class Stop
SwiftUI Gradient.Stop