Post

Replies

Boosts

Views

Activity

WatchKit SwiftUI Button cornerRadius
I've been trying to set the cornerRadius on a button in my Watch app, but it only seems to work if I set the button background to a default color, i.e. Button("Done") { }.background(Color(.orange).cornerRadius(8.0) If I try to set the color explicit, I get a double image of the button with a default corner radius and the one I specified, i.e. .background(Color(white: 0.2)).cornerRadius(8.0) If I don't set a color, cornerRadius doesn't work at all. What am I doing wrong?
2
0
1.9k
Oct ’21