Post

Replies

Boosts

Views

Activity

Comment on SwiftUI Button: Inaccurate tap area. How should I fix it?
Yes, they all behave the same way. The UIKit button only reacts to the gesture when the "pointer" (centre of the circle) is inside the bounds.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on SwiftUI Button: Inaccurate tap area. How should I fix it?
BTW, .contentShape(Rectangle()) works great, but not the RoundedRectangle.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21
Comment on SwiftUI Button: Inaccurate tap area. How should I fix it?
Thanks, that's exactly what I did. But the UIKit button doesn't seem to have the problem tho.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21