Is there a way to make a button very large?
Button("hi"){ } .frame(width: 500, height: 300) }
Is there a way to make a button very large?
Button("hi"){ } .frame(width: 500, height: 300) }
Yes, of course. What is the problem ?
struct ContentView: View {
var body: some View {
Button("hi") {
print("Hello, World!")
}
.frame(width: 500, height: 300)
.background(Color.blue)
.foregroundStyle(Color.white)
.font(.system(size: 60))
.bold()
}
}
Don't forget to close the thread by marking the answer as correct if that's OK. Otherwise, please explain the issue.