Update ColourOptionsController2.m

This commit is contained in:
arichornlover 2024-04-26 22:19:52 -05:00 committed by GitHub
parent f855e63f8e
commit 47da969286
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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