Skip to content

Commit

Permalink
testing resolution by removing responds(to aSelector: Selector
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiothinks2 committed Jan 30, 2025
1 parent 56a7508 commit 36c5125
Showing 1 changed file with 15 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,22 @@ class WKNavigationDelegateProxy: NSObject {
self.callback = callback
}

override func responds(to aSelector: Selector!) -> Bool {
if super.responds(to: aSelector) {
return true
} else if let originalDelegate = originalDelegate, originalDelegate.responds(to: aSelector) {
return true
}
return false
}
// 1. remove this first then have the client test
// Test this first on a test app!
// override func responds(to aSelector: Selector!) -> Bool {
// if super.responds(to: aSelector) {
// return true
// } else if let originalDelegate = originalDelegate, originalDelegate.responds(to: aSelector) {
// return true
// }
// return false
// }

// webview with delegate method that implements this methods
// webview capture service
// are they using third party web view libraries


override func forwardingTarget(for aSelector: Selector!) -> Any? {
if super.responds(to: aSelector) {
return self
Expand Down

0 comments on commit 36c5125

Please sign in to comment.