Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swiftui button only text tappable

Button(action:{}) {
  HStack {
    Text("Hello")
    Spacer()
  }
  .contentShape(Rectangle())
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swiftui #button #text #tappable
ADD COMMENT
Topic
Name
8+4 =