Increase Button Tappable Area

Could anyone help me with this. my app buttons have to be tapped on the text rather than the full button. Is there a way to increase the tapable area of a button? Thank you

You really should be asking these questions on StackOverFlow or Apple developer forums. Every question you've asked seems to be about Apple frameworks, (SwiftUI is an Apple-only framework), not about Swift the language. Even the answer that @HackSaw provided is from StackOverflow.

Found an easier way to increase the tapable area, by simply adding spaces:

NavigationLink(destination: MyNotes()) {
Text(" App Notes ")
}.modifier(MainMenuModifier(trimColor: .orange))

Terms of Service

Privacy Policy

Cookie Policy