From 7ecd608bd79001697cf6183cb410bb9763cd91cd Mon Sep 17 00:00:00 2001 From: Adam Sharp Date: Mon, 3 Aug 2020 21:15:04 -0400 Subject: [PATCH] Stop searching for viewDidLoad after UIViewController --- Sources/CombineViewModelObjC/CombineViewModelObjC.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/CombineViewModelObjC/CombineViewModelObjC.m b/Sources/CombineViewModelObjC/CombineViewModelObjC.m index 97288f0..d13bb62 100644 --- a/Sources/CombineViewModelObjC/CombineViewModelObjC.m +++ b/Sources/CombineViewModelObjC/CombineViewModelObjC.m @@ -51,6 +51,10 @@ break; } } + + if (klass == _UIViewController) { + *stop = YES; + } }); if (actual_class != nil) {