Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 580b39e

Browse files
author
Chris Yang
committed
add comments
1 parent 7260e84 commit 580b39e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shell/platform/darwin/ios/ios_surface.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
FML_CHECK(platform_views_controller_ != nullptr);
8888
platform_views_controller_->SetFrameSize(frame_size);
8989
if ([[NSThread currentThread] isMainThread]) {
90+
// CATransctions can only be added to the main thread, otherwise it introduces
91+
// a crash on iOS 14 and above in certain situations including image picker.
92+
// See: https://github.com/flutter/flutter/issues/66647
9093
[CATransaction begin];
9194
}
9295
}

0 commit comments

Comments
 (0)