mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2024-06-16 04:29:31 +00:00
handle dark mode on activity indicator
This commit is contained in:
parent
c548061f42
commit
9b74889621
|
@ -402,7 +402,11 @@
|
|||
}
|
||||
|
||||
UIActivityIndicatorView *activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
|
||||
if (@available(iOS 13, *)) {
|
||||
activityIndicatorView.color = [UIColor labelColor];
|
||||
} else {
|
||||
activityIndicatorView.color = [UIColor blackColor];
|
||||
}
|
||||
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Creating Disk Image", nil) message:@"\n\n\n" preferredStyle:UIAlertControllerStyleAlert];
|
||||
[self presentViewController:alertController animated:true completion:^{
|
||||
UIView *alertView = alertController.view;
|
||||
|
|
Loading…
Reference in New Issue
Block a user