Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit 1afdcd7

Browse files
authored
Merge pull request #90 from morizotter/morizotter/remove-navigation-swizzle
Remove navigation push swizzle
2 parents c9c8b2f + 8e01765 commit 1afdcd7

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

TouchVisualizer/UIWindow+Swizzle.swift

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,6 @@ extension UIWindow {
2525
)
2626
method_exchangeImplementations(sendEvent!, swizzledSendEvent!)
2727

28-
let pushEvent = class_getInstanceMethod(
29-
UINavigationController.classForCoder(),
30-
#selector(UINavigationController.pushViewController(_:animated:))
31-
)
32-
let swizzledPushEvent = class_getInstanceMethod(
33-
UINavigationController.classForCoder(),
34-
#selector(UINavigationController.swizzledPushViewController(_:animated:))
35-
)
36-
method_exchangeImplementations(pushEvent!, swizzledPushEvent!)
37-
3828
isSwizzled = true
3929
}
4030
}
@@ -46,10 +36,3 @@ extension UIWindow {
4636
swizzledSendEvent(event)
4737
}
4838
}
49-
50-
extension UINavigationController {
51-
@objc public func swizzledPushViewController(_ viewController: UIViewController, animated: Bool) {
52-
Visualizer.sharedInstance.removeAllTouchViews()
53-
swizzledPushViewController(viewController, animated: animated)
54-
}
55-
}

0 commit comments

Comments
 (0)