0

In Apple's documentation, Color is defined as: "An environment-dependent color." (emphasis mine)

https://developer.apple.com/documentation/swiftui/color

Is it correct, therefore, to say that a SwiftUI Color is not constant but that the color of the Color (sic) depends upon its environment.

What would be an example of this environment dependency?

Vince O'Sullivan
  • 2,611
  • 32
  • 45
  • 2
    Dark/light mode would be an example. – Martin R Dec 13 '19 at 11:26
  • Check here to see which colours exactly are used: https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/#dynamic-system-colors – krjw Dec 13 '19 at 11:43

1 Answers1

1

Dark/light mode is the example for environment-dependent Color

Dark/light mode

Hardik Bar
  • 1,660
  • 18
  • 27