diff --git a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm index 551be716b15de..c3c76ec82daa0 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews.mm @@ -398,7 +398,7 @@ static bool ClipRRectContainsPlatformViewBoundingRect(const SkRRect& clip_rrect, views_to_recomposite_.insert(view_id); } -size_t FlutterPlatformViewsController::EmbeddedViewCount() { +size_t FlutterPlatformViewsController::EmbeddedViewCount() const { return composition_order_.size(); } diff --git a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h index 6373e1feaa40c..afda710e7fcce 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h +++ b/shell/platform/darwin/ios/framework/Source/FlutterPlatformViews_Internal.h @@ -234,7 +234,7 @@ class FlutterPlatformViewsController { void PrerollCompositeEmbeddedView(int64_t view_id, std::unique_ptr params); - size_t EmbeddedViewCount(); + size_t EmbeddedViewCount() const; // Returns the `FlutterPlatformView`'s `view` object associated with the view_id. //