Discussion about this post

User's avatar
JD Roodt's avatar

I have a solution for the circular button but it's pretty gross.

If you make your image/label 10 pixels less width than height it expands correctly in the tap animation.

Button(action: {

print("button pressed")

}, label: {

Image(systemName: "xmark")

.font(Font.system(size: 19, weight: .medium))

.frame(width: 50-10, height: 50)

})

.buttonBorderShape(.circle)

.buttonStyle(.glass)

Expand full comment
2 more comments...

No posts

Ready for more?