I have the following code to show an image:
struct TransactionsButtonView : View {
var body: some View {
return VStack {
Image("Transactions")
Text("Transactions")
.font(.footnote)
}.padding(.horizontal)
}
}
This creates an image properly:
However when I try to convert it to an image button, it only shows blue:
struct TransactionsButtonView : View {
var body: some View {
return VStack {
Button(action: { self.showTransactions() }) {
Image("Transactions")
}
Text("Transactions")
.font(.footnote)
}.padding(.horizontal)
}
func showTransactions() {
}
}
How do I get my button to show the image?

