Fix FlutterView's _delegate is not declared as ivar but a global variable. (flutter/engine#17206)

This commit is contained in:
wqyfavor
2020-03-31 05:26:03 +08:00
committed by GitHub
parent a0aa13ca0e
commit 1000f22660

View File

@@ -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<FlutterViewEngineDelegate> _delegate;
@implementation FlutterView {
id<FlutterViewEngineDelegate> _delegate;
}
- (instancetype)init {
@throw([NSException exceptionWithName:@"FlutterView must initWithDelegate"