diff --git a/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm b/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm index ba7a8b5ca9471..09773b0c81744 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterViewController.mm @@ -326,7 +326,11 @@ - (void)pushRoute:(NSString*)route { auto placeholder = [[[UIView alloc] init] autorelease]; placeholder.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; - placeholder.backgroundColor = UIColor.whiteColor; + if (@available(iOS 13.0, *)) { + placeholder.backgroundColor = UIColor.systemBackgroundColor; + } else { + placeholder.backgroundColor = UIColor.whiteColor; + } placeholder.autoresizesSubviews = YES; // Only add the label when we know we have failed to enable tracing (and it was necessary).