Answers for "swiftui button only text tappable"

0

swiftui button only text tappable

Button(action:{}) {
  HStack {
    Text("Hello")
    Spacer()
  }
  .contentShape(Rectangle())
}
Posted by: Guest on April-26-2022

Code answers related to "Swift"

Browse Popular Code Answers by Language