diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterView.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterView.mm index e50f903492..7e8e1108b1 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterView.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterView.mm @@ -76,12 +76,6 @@ FLUTTER_ASSERT_ARC _delegate = delegate; _isWideGamutEnabled = isWideGamutEnabled; self.layer.opaque = opaque; - - // This line is necessary. CoreAnimation(or UIKit) may take this to do - // something to compute the final frame presented on screen, if we don't set this, - // it will make it take long time for us to take next CAMetalDrawable and will - // cause constant junk during rendering. - self.backgroundColor = UIColor.clearColor; } return self; diff --git a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterViewTest.mm b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterViewTest.mm index 098c0f3eb9..e7b26cbe70 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterViewTest.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/framework/Source/FlutterViewTest.mm @@ -51,10 +51,10 @@ FLUTTER_ASSERT_ARC XCTAssertTrue(delegate.callbackCalled); } -- (void)testFlutterViewBackgroundColorIsNotNil { +- (void)testFlutterViewBackgroundColorIsNil { FakeDelegate* delegate = [[FakeDelegate alloc] init]; FlutterView* view = [[FlutterView alloc] initWithDelegate:delegate opaque:NO enableWideGamut:NO]; - XCTAssertNotNil(view.backgroundColor); + XCTAssertNil(view.backgroundColor); } - (void)testIgnoreWideColorWithoutImpeller {