Skip to content

Commit b9f7665

Browse files
committed
[IOS-17910] fixing recursive singleton creation
1 parent ec84bfc commit b9f7665

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

TouchVisualizer/Visualizer.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ final public class Visualizer:NSObject {
4444
}
4545

4646
@objc internal func orientationDidChangeNotification(_ notification: Notification) {
47-
let instance = Visualizer.sharedInstance
48-
for touch in instance.touchViews {
47+
for touch in touchViews {
4948
touch.removeFromSuperview()
5049
}
5150
}

0 commit comments

Comments
 (0)