From 41928e0e3a4ffc9a9b8c3acb803801488f960b10 Mon Sep 17 00:00:00 2001 From: Hugo Cuvillier Date: Wed, 7 Oct 2020 07:45:41 -0700 Subject: [PATCH] Migrate remaining calls to `+[CKImageComponent newWith...]` to use the builder Summary: Last call sites for `CKImageComponent` Reviewed By: kevin0571 Differential Revision: D24161106 fbshipit-source-id: 6f4593184a772c753f4a571f628d27b0d82367c5 --- iOS/Sample/RootViewController.mm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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