Posts

Post not yet marked as solved
0 Replies
794 Views
Hi,I am trying to copy text from WKWEbView in my app and I found a weird issue on 13.4 and above with some selected devices. Issue is UImenuController doesn't show up on WKWebView.Devices Working - Below iOS 13.4 - All devicesDevices Working- iOS 13.4 - iPhone XS, iPhone XS Max (Checked only on these two)Devices not Working - iOS 13.4 - iPhone 11 Pro, iPhone 11Pro Max, iPad Pro 9.7Devices not working - iOS 13.4.1 - iPhone XRI followed some references from StackOverflow and other sites:All suggested to check the WKWebView should be first responder and should be in Active Window View hierarchy, which is already there.Also, Subclass the WKWEbView, already implemented.class MyWKWebView: WKWebView { var lastTouchPoint = CGPoint.init(x: 0, y: 0) override var isFirstResponder: Bool { return true } override func canPerformAction(_ action: Selector, withSender sender: Any?) -> Bool { switch action { case #selector(copy(_:)): case #selector(paste(_:)): default: break } return super.canPerformAction(action, withSender: sender) }Override func canPerformAction never get called for the above mentioned devices.
Posted Last updated
.