Ios swift – Why doesn't the tap gesture in SwiftUI work on the background of Text unless padding is added?
import SwiftUI struct TestGEO: View { var body: some View { VStack { Text("Click me to print my rect") // .padding(5) // Add padding, the `onTapGesture` is triggled .background( GeometryReader { geo in Color.red .onTapGesture { print(geo.frame(in: .global)) } }…