Post

Replies

Boosts

Views

Activity

Reply to UIButton action not called in UIHostingController
@Claude31 Sorry for the late. I just found the reason. I had add a tapGesture by accident in swiftUI like HStack { Controller() }.frame(maxWidth:.infinity, idealHeight: 60) .onTapGesture { } and I missed it. The UISwitch works fine but button tap action if rejected.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’24