79162308

Date: 2024-11-06 11:06:58
Score: 1
Natty:
Report link

You can apply .iconOnly label style to the Button.

Button("", systemImage: isPlaying ? "pause.fill" : "play.fill") {
    print("Action")
}
.labelStyle(.iconOnly)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: eledgaar