From 9b748896216e9886a3b56ef1eb27cafafeb1646c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20A=2E=20A=CC=81lvarez?= Date: Thu, 1 Oct 2020 18:53:06 +0200 Subject: [PATCH] handle dark mode on activity indicator --- Mini vMac/InsertDiskViewController.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mini vMac/InsertDiskViewController.m b/Mini vMac/InsertDiskViewController.m index f0cd2ba..088368d 100644 --- a/Mini vMac/InsertDiskViewController.m +++ b/Mini vMac/InsertDiskViewController.m @@ -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;