From d1da91da7c77d7aeb4f22170bedd2a0d54e816d6 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 28 Jun 2025 15:46:02 +0300 Subject: [PATCH] Fix tip rotation --- iOS/GBMenuViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iOS/GBMenuViewController.m b/iOS/GBMenuViewController.m index 0f17ee6..e523cf9 100644 --- a/iOS/GBMenuViewController.m +++ b/iOS/GBMenuViewController.m @@ -120,7 +120,7 @@ static NSString *const tips[] = { _effectView = [[UIVisualEffectView alloc] initWithEffect:effect]; _effectView.layer.cornerRadius = 8; _effectView.layer.masksToBounds = true; - [self.view.superview addSubview:_effectView]; + [self.view.window addSubview:_effectView]; _tipLabel = [[UILabel alloc] init]; unsigned tipIndex = [[NSUserDefaults standardUserDefaults] integerForKey:@"GBTipIndex"]; _tipLabel.text = tips[tipIndex % (sizeof(tips) / sizeof(tips[0]))]; @@ -144,6 +144,7 @@ static NSString *const tips[] = { - (void)layoutTip { + [self.view.window addSubview:_effectView]; UIView *view = self.view.superview; CGSize outerSize = view.frame.size; CGSize size = [_tipLabel textRectForBounds:(CGRect){{0, 0},