Skip to content

Instantly share code, notes, and snippets.

View billinghamj's full-sized avatar
🏳️‍🌈
👀

James Billingham billinghamj

🏳️‍🌈
👀
View GitHub Profile
#import "UIViewController+UniversalModal.h"
@implementation UIViewController (UniversalModal)
- (void)presentViewControllerFromVisibleViewController:(UIViewController *)viewControllerToPresent
animated:(BOOL)animated
completion:(void (^)(void))completion
{
if ([self isKindOfClass:[UINavigationController class]])