Skip to content

Commit

Permalink
check the preview flag with the common function
Browse files Browse the repository at this point in the history
  • Loading branch information
Amir Hardon committed Nov 9, 2018
1 parent 13453c8 commit 4ce8cd7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shell/platform/darwin/ios/framework/Source/FlutterView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@ + (Class)layerClass {
if ([self.layer isKindOfClass:[CAEAGLLayer class]]) {
fml::scoped_nsobject<CAEAGLLayer> eagl_layer(
reinterpret_cast<CAEAGLLayer*>([self.layer retain]));
if ([[[NSBundle mainBundle] objectForInfoDictionaryKey:@(shell::kEmbeddedViewsPreview)]
boolValue]) {
if (shell::IsIosEmbeddedViewsPreviewEnabled()) {
// TODO(amirh): We can lower this to iOS 8.0 once we have a Metal rendering backend.
// https://github.com/flutter/flutter/issues/24132
if (@available(iOS 9.0, *)) {
Expand Down

0 comments on commit 4ce8cd7

Please sign in to comment.