From 915e63ecb741238aed759ec057c79af1a292cae3 Mon Sep 17 00:00:00 2001 From: wqyfavor Date: Tue, 31 Mar 2020 05:26:03 +0800 Subject: [PATCH] Fix FlutterView's _delegate is not declared as ivar but a global variable. (#17206) --- shell/platform/darwin/ios/framework/Source/FlutterView.mm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/platform/darwin/ios/framework/Source/FlutterView.mm b/shell/platform/darwin/ios/framework/Source/FlutterView.mm index ed2d1f02b..783eafa33 100644 --- a/shell/platform/darwin/ios/framework/Source/FlutterView.mm +++ b/shell/platform/darwin/ios/framework/Source/FlutterView.mm @@ -17,9 +17,9 @@ #include "flutter/shell/platform/darwin/ios/ios_surface_software.h" #include "third_party/skia/include/utils/mac/SkCGUtils.h" -@implementation FlutterView - -id _delegate; +@implementation FlutterView { + id _delegate; +} - (instancetype)init { @throw([NSException exceptionWithName:@"FlutterView must initWithDelegate" -- GitLab