Using iOS 14.5 18E5199a and Xcode 12.5 beta 3, canPerformAction(_:withSender:) doesn't filter out default menu items.
override func canPerformAction(_ action: Selector, withSender sender: Any?) - Bool {
guard action == #selector(GuideNode.onHelpMenuItem) else { return false }
return super.canPerformAction(action, withSender: sender)
}
override var canBecomeFirstResponder: Bool { true }
The same code works as expected using iOS 14.* released version and Xcode 12.5 beta 3.
Post
Replies
Boosts
Views
Activity
I was wondering if the SwiftUI changes announced at WWDC20 compatible with iOS 13.