Yuanjiang Chen
Yuanjiang Chen

Reputation: 11

SwiftUI Menu - how to detect when menu will close

I need to set Menu to regain focus in VoiceOver mode when its popup dismisses.So I think I need to know when it will close and let Menu be focused through

UIAccessibility.post(notification: .layoutChanged, argument: self.menu)

But it seems like there are no relevant functions. SwiftUI Menu action

Is there any alternative way that I can do?

Upvotes: -1

Views: 49

Answers (0)

Related Questions