Update RootOptionsController.m

This commit is contained in:
arichornlover 2024-04-15 18:12:54 -05:00 committed by GitHub
parent 1aa0a9cfb8
commit f22d9d3257
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -164,19 +164,6 @@
@implementation RootOptionsController (Privates)
- (void)showAppIconOptions {
if (@available(iOS 15.0, *)) {
AppIconOptionsController *appIconOptionsController = [[AppIconOptionsController alloc] init];
UINavigationController *appIconOptionsNavController = [[UINavigationController alloc] initWithRootViewController:appIconOptionsController];
[self presentViewController:appIconOptionsNavController animated:YES completion:nil];
} else {
NSString *systemVersion = [[UIDevice currentDevice] systemVersion];
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"Incompatible" message:[NSString stringWithFormat:@"Changing app icons is only available on iOS 15 and later.\nYour Device is currently using iOS %@.", systemVersion] preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
[self presentViewController:alert animated:YES completion:nil];
}
}
- (void)done {
[self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
}