From 47da96928660d2fcb4f6d8513d0a6fecbf5dcedb Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Fri, 26 Apr 2024 22:19:52 -0500 Subject: [PATCH] Update ColourOptionsController2.m --- Sources/ColourOptionsController2.m | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Sources/ColourOptionsController2.m b/Sources/ColourOptionsController2.m index 635ace7..36b70a9 100644 --- a/Sources/ColourOptionsController2.m +++ b/Sources/ColourOptionsController2.m @@ -24,10 +24,19 @@ [lcmUnarchiver setRequiresSecureCoding:NO]; UIColor *color = [lcmUnarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey]; self.selectedColor = color; + + if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad && UIInterfaceOrientationIsLandscape(self.interfaceOrientation)) { + CGRect screenRect = [[UIScreen mainScreen] bounds]; + CGFloat screenWidth = screenRect.size.width; + if (screenWidth > 1024) { + self.view.transform = CGAffineTransformMakeScale(0.7, 0.7); + } + } } - (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection { [super traitCollectionDidChange:previousTraitCollection]; + [self loadView]; } @end