mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2025-02-18 00:30:43 +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];
|
UIActivityIndicatorView *activityIndicatorView = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
|
||||||
activityIndicatorView.color = [UIColor blackColor];
|
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];
|
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Creating Disk Image", nil) message:@"\n\n\n" preferredStyle:UIAlertControllerStyleAlert];
|
||||||
[self presentViewController:alertController animated:true completion:^{
|
[self presentViewController:alertController animated:true completion:^{
|
||||||
UIView *alertView = alertController.view;
|
UIView *alertView = alertController.view;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user