Add Text and Image to Button in SwiftUI
Just put the Image
and Text
inside an HStack
…
Button(action: {}) {
HStack {
Image(systemName: "gift")
Text("Send")
}
}
.padding()
.foregroundColor(.white)
.background(Color.gray)
.cornerRadius(.infinity)