Skip to content

Commit

Permalink
Fix edit menu cannot display on iOS 15
Browse files Browse the repository at this point in the history
  • Loading branch information
ktiays committed Aug 14, 2023
1 parent cd27390 commit f6417a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/CyanSwiftUI/EditMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ public struct EditMenuModifier: ViewModifier {
fatalError("init(coder:) has not been implemented")
}

override var canBecomeFirstResponder: Bool { true }

class func willRespond(to selector: Selector) -> Bool {
NSStringFromSelector(selector).hasPrefix(selectorPrefix)
}
Expand Down

0 comments on commit f6417a2

Please sign in to comment.