linkedin/LayoutTest-iOS

How to use it with UIViewController?

anirudhamahale opened this issue · 2 comments

(UIView *)viewForData:(NSDictionary *)data reuseView:(nullable UIView *)reuseView size:(nullable LYTViewSize *)size context:(id _Nullable * _Nullable)context; this function takes an object of UIView so how to use object of UIViewController? as I have all my IBOutlets connnected to UIViewController.

Here are the steps which I followed:-

  1. Get the ViewController by instantiating it.
  2. Assign the ViewController to the context.

Yep. You are correct. Thank you for answering your question. Sorry I didn’t get to it sooner. This is covered in my LinkedIn Learning course.