diff --git a/shell/platform/darwin/ios/framework/Source/FlutterView.mm b/shell/platform/darwin/ios/framework/Source/FlutterView.mm index e50f903492f0a..7e8e1108b13b5 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterView.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterView.mm @@ -76,12 +76,6 @@ - (instancetype)initWithDelegate:(id)delegate _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/shell/platform/darwin/ios/framework/Source/FlutterViewTest.mm b/shell/platform/darwin/ios/framework/Source/FlutterViewTest.mm index 098c0f3eb9ead..e7b26cbe70eeb 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterViewTest.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterViewTest.mm @@ -51,10 +51,10 @@ - (void)testFlutterViewEnableSemanticsWhenIsAccessibilityElementIsCalled { 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 {