Skip to content

Commit

Permalink
Merge pull request #2 from thoughtbot/dont-search-past-uiviewcontroller
Browse files Browse the repository at this point in the history
Stop searching for viewDidLoad after UIViewController
  • Loading branch information
sharplet authored Aug 7, 2020
2 parents 6831464 + 7ecd608 commit 8007bfa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/CombineViewModelObjC/CombineViewModelObjC.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
break;
}
}

if (klass == _UIViewController) {
*stop = YES;
}
});

if (actual_class != nil) {
Expand Down

0 comments on commit 8007bfa

Please sign in to comment.