Skip to content

Instantly share code, notes, and snippets.

@vikingosegundo
Created September 16, 2022 10:48
Show Gist options
  • Save vikingosegundo/7c8f2308a87b430731e95aaa75141312 to your computer and use it in GitHub Desktop.
Save vikingosegundo/7c8f2308a87b430731e95aaa75141312 to your computer and use it in GitHub Desktop.
Button { decrease(value:.colortemp,by:10.pt,on:light) }
label: {
Image(systemName:"thermometer.sun")
.foregroundStyle(ctColor(ct:(Double(temperatureValue(of: light)) * 0.8)))
.accessibility(label:Text("decrease color temperature"))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment