Color

public struct Color : View, GrowingAxesModifying

An environment-dependent color.

  • Declaration

    Swift

    public typealias Body = Never
  • Undocumented

    Declaration

    Swift

    public static var clear: `Self` { get }
  • red

    Undocumented

    Declaration

    Swift

    public static let red: Color
  • Undocumented

    Declaration

    Swift

    public static let green: Color
  • Undocumented

    Declaration

    Swift

    public static let blue: Color
  • Undocumented

    Declaration

    Swift

    public static let systemBlue: Color
  • Undocumented

    Declaration

    Swift

    public static let gray: Color
  • Undocumented

    Declaration

    Swift

    public static let white: Color
  • Undocumented

    Declaration

    Swift

    public static let black: Color
  • Declaration

    Swift

    public func modifiedGrowingLayoutAxes(forGrowingAxesOfSubnodes: Set<GrowingLayoutAxis>)
        -> Set<GrowingLayoutAxis>
  • Declaration

    Swift

    public func html(forHTMLOfSubnodes htmlOfSubnodes: [HTMLNode]) -> HTMLNode
  • Initializes a color with the supplied values for the red, green and blue components as well as the opacity.

    Declaration

    Swift

    public init(red: Double, green: Double, blue: Double, opacity: Double)
  • Initializes a color with the supplied values for the red, green and blue components.

    Declaration

    Swift

    public init(red: Double, green: Double, blue: Double)
  • Initialized a grayscale Color with the supplied brightness.

    Declaration

    Swift

    public init(white: Double)
  • Returns this color with the supplied opacity value.

    Declaration

    Swift

    public func opacity(_ opacity: Double) -> Color