79127577

Date: 2024-10-26 00:02:41
Score: 1
Natty:
Report link

I found a slightly simpler way to change the color of a button in SwiftUI

Button(
    action: {
            print("¡Hola, mundo!")
            }
      )
        {
          Text("¡Hola, mundo!")
          .foregroundColor(.blue)
         }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Juan Carlos Robledo Morales