Index: sky/shell/ios/sky_view_controller.mm |
diff --git a/sky/shell/ios/sky_view_controller.mm b/sky/shell/ios/sky_view_controller.mm |
index ee2e38ad762b1c9ac9ed8e7e7c3620ef789f4671..082e79b511994dc991f88474a308b2e82267d31c 100644 |
--- a/sky/shell/ios/sky_view_controller.mm |
+++ b/sky/shell/ios/sky_view_controller.mm |
@@ -11,7 +11,9 @@ |
@implementation SkyViewController |
- (void)loadView { |
- SkySurface* surface = [[SkySurface alloc] init]; |
+ |
+ Instance* instance = new sky::shell::Instance(sky::shell::Shell::Shared()); |
+ SkySurface* surface = [[SkySurface alloc] initWithSkyInstance: instance]; |
surface.autoresizingMask = |
UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; |