I want to create a game menu which shows a list of different options like 'New Game'.
I've realised that with buttons:
var body: some View { VStack { Image("Title") Group { Button(LocalizedStringKey("new"), action: {} Button(LocalizedStringKey("load"), action: {}) Button(LocalizedStringKey("save"), action: {}) Button(LocalizedStringKey("resume"), action: {}) Button(LocalizedStringKey("main"), action: {}) Button(LocalizedStringKey("tutorial"), action: {}) Button(LocalizedStringKey("credits"), action: {}) } .background(Color.clear) .font(.custom("Snell Roundhand", size: 24)) .padding() } } How can I hide the background rectangle of the button? I want to see only the text. Touching the text should trigger the action.
