// // UIViewController+TFPresent.h // trueface // // Created by Apple on 2019/10/12. // Copyright © 2019 jie. All rights reserved. // #import typedef NS_ENUM(NSInteger,TFDirection) { TFDirectionCenter = 0, TFDirectionTop, TFDirectionLeft, TFDirectionRight, TFDirectionBottom }; NS_ASSUME_NONNULL_BEGIN typedef void(^PresentCompletion)(void); static char unAllowTouched; @interface UIViewController (TFPresent) - (BOOL)TF_unAllowTouched; -(void)TF_setunAllowTouched:(BOOL)disAllowTouch; -(void)TFPresentVC:(UIViewController *)viewControllerToPresent completion:(nullable PresentCompletion)completion; -(void)TFPresentViewController:(UIViewController *)viewControllerToPresent presentSize:(CGSize)presentSize direction:(TFDirection)direction completion:(PresentCompletion)completion; -(void)TFPresentViewControllerUnTouched:(UIViewController *)viewControllerToPresent presentSize:(CGSize)presentSize direction:(TFDirection)direction completion:(PresentCompletion)completion; -(void)TFDismissViewController; @end NS_ASSUME_NONNULL_END