diff --git a/iOS/Sample/RootViewController.mm b/iOS/Sample/RootViewController.mm index 2d610cd0c..77b1ca25b 100644 --- a/iOS/Sample/RootViewController.mm +++ b/iOS/Sample/RootViewController.mm @@ -83,10 +83,9 @@ static CKComponent* componentForModel( UIColor.cyanColor, }]}, }] - background:[CKImageComponent - newWithImage:[UIImage imageNamed:@"sonarpattern"] - attributes:{} - size:{}]]; + background:CK::ImageComponentBuilder() + .image([UIImage imageNamed:@"sonarpattern"]) + .build()]; } @end