How can I create a button with image in SwiftUI?
Another way to set programmatically:-
var body: some View {
Button(action: {
print("button pressed")
}) {
Image("marker")
.renderingMode(Image.TemplateRenderingMode?.init(Image.TemplateRenderingMode.original))
}
}
Go to the image and change the Render As "Original Image"