Skip to content

Commit

Permalink
Merge pull request #67 from yuta24/fix-scene
Browse files Browse the repository at this point in the history
Fix not working on UISceneDelegate
  • Loading branch information
iMacHumphries authored Apr 30, 2021
2 parents 902b12a + 19fb716 commit b4d62a0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Core/HyperionWindowManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,21 @@ -(void)attachOverlayDebuggingWindowToWindow:(UIWindow *)attachedWindow
_overlayWindow = [[HYPOverlayDebuggingWindow alloc] initWithFrame:attachedWindow.frame];
_overlayWindow.hidden = YES;
_overlayWindow.frame = attachedWindow.frame;
if (@available(iOS 13, *))
{
[_overlayWindow setWindowScene:attachedWindow.windowScene];
}
}

-(void)attachSnapshotDebuggingWindowToWindow:(UIWindow *)attachedWindow
{
_currentAttachedWindow = attachedWindow;
_snapshotWindow = [[HYPSnapshotDebuggingWindow alloc] initWithAttachedWindow:attachedWindow];
_snapshotWindow.frame = CGRectMake(0, 0, attachedWindow.frame.size.width, attachedWindow.frame.size.height);
if (@available(iOS 13, *))
{
[_snapshotWindow setWindowScene:attachedWindow.windowScene];
}
[attachedWindow addGestureRecognizer:_snapshotWindow.overlayVC.twoFingerTapRecognizer];
[attachedWindow addGestureRecognizer:_snapshotWindow.overlayVC.threeFingerTapRecognizer];
[attachedWindow addGestureRecognizer:_snapshotWindow.overlayVC.edgeSwipeRecognizer];
Expand Down

0 comments on commit b4d62a0

Please sign in to comment.