Hello there!
I would like to print the number 5 on the screen when I click the Button, but I don't know how I can do it... if I write print("5") it prints me the number 5 in the debug area of Xcode. Can someone help me to figure out this?
Here's may code
Thanks a lot
Button {
} label: {
ZStack {
Circle()
.frame(width: 90, height: 90)
.foregroundColor(Color(.systemBlue))
.opacity(0.5)
Text("5")
.font(.largeTitle)
.bold()
.foregroundColor(.black)
}
.frame(width: 90, height: 90)
}