handle dark mode on activity indicator

This commit is contained in:
Jesús A. Álvarez 2020-10-01 18:53:06 +02:00
parent c548061f42
commit 9b74889621
1 changed files with 5 additions and 1 deletions

View File

@ -402,7 +402,11 @@
}
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];
[self presentViewController:alertController animated:true completion:^{
UIView *alertView = alertController.view;