How to use it with UIViewController?
anirudhamahale opened this issue · 2 comments
anirudhamahale commented
(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.
anirudhamahale commented
Here are the steps which I followed:-
- Get the ViewController by instantiating it.
- Assign the ViewController to the context.
drumnkyle commented
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.