mohfy @State var points = 10 var view: Body { VStack { Text("h") Text("HHH") Button("press me!") { points += 10 } }.css({".background{ background-image: linear-gradient(180deg,rgba(0, 0, 0, 1) \(points)%, rgba(36, 197, 255, 1) 100%)}"}) } }
david-swift This should work now if you update to the latest version of the main branch of Adwaita for Swift. Here's the relevant commit.