XFCoverTransition 介绍
XFCoverTransition 内置各种自定义 Modal 界面切换效果,提供手势移除的功能,使用单例对 XFCoverTransitionTouch
对象的管理,多处的多种界面切换效果无需初始化多个对象,使用上方便,具有可配置性强,并支持在不使用系统的 Modal 方式外使用
XFCoverTransitionGesture 类以实现全手势模拟 Modal 的切换效果。
自定义 modal:
// 自定义modal XFPageViewController *page = [[XFPageViewController alloc] init]; page.modalPresentationStyle = UIModalPresentationCustom; XFCoverTransitionTouch *ctTouch = [XFCoverTransitionTouch sharedInstance]; ctTouch.config = [XFCTConfig configWithRenderRect:self.view.bounds animationDuration:0.25 transitionStyle:XFCoverTransitionStyleRight2Left]; // 添加移除手势支持 ctTouch.config.onlyForModalVCGesturedissmiss = YES; page.transitioningDelegate = ctTouch; [self presentViewController:page animated:YES completion:nil];
XFCoverTransition 官网
https://github.com/yizzuide/XFCoverTransition
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。