{"id":13697012,"url":"https://github.com/Bonway/BBGestureBack","last_synced_at":"2025-05-03T17:33:04.564Z","repository":{"id":131560990,"uuid":"46833282","full_name":"Bonway/BBGestureBack","owner":"Bonway","description":"🔥OC and Swift full screen return gesture🔥（纯OC 和 纯Swift编写，类淘宝、京东等全屏滑动返回效果）","archived":false,"fork":false,"pushed_at":"2020-07-02T04:42:41.000Z","size":4053,"stargazers_count":458,"open_issues_count":8,"forks_count":64,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-03T18:21:41.225Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://blog.csdn.net/Bonway_Huang/article/details/50505975","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bonway.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2015-11-25T02:49:06.000Z","updated_at":"2024-07-26T07:54:33.000Z","dependencies_parsed_at":"2023-06-09T12:31:04.103Z","dependency_job_id":null,"html_url":"https://github.com/Bonway/BBGestureBack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bonway%2FBBGestureBack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bonway%2FBBGestureBack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bonway%2FBBGestureBack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bonway%2FBBGestureBack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bonway","download_url":"https://codeload.github.com/Bonway/BBGestureBack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224369843,"owners_count":17299961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T18:00:51.515Z","updated_at":"2024-11-13T00:31:20.761Z","avatar_url":"https://github.com/Bonway.png","language":"Objective-C","funding_links":[],"categories":["UI Effects","Objective-C","OOM-Leaks-Crash"],"sub_categories":["Navigation"],"readme":"# BBGestureBack\n\nFull screen return gesture（全屏手势返回 滑动返回 pop 动画效果）\n在此感谢大家提的建议！！！\n\n[如果你在天朝，请点击这里，速度会很快哦~](https://blog.csdn.net/Bonway_Huang/article/details/50505975) \n\n## iOS 侧滑返回 ##\n\n![BBGestureBack](https://upload-images.jianshu.io/upload_images/10991770-a719a5c2c5c01c79.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\nBBGestureBack iOS 全屏手势返回 滑动返回 pop 动画效果\n\n####  这种手势主流App ####\n[我要去下载 点赞 ：BBGestureBack](https://github.com/Bonway/BBGestureBack) \n\n现在市场上的主流app都有用到各种侧滑手势，**大体上分为2种**，\n一种是：类似于淘宝、京东、腾讯、斗鱼的效果，带导航栏的。如图：\n\n![淘宝效果.gif](https://upload-images.jianshu.io/upload_images/10991770-c0c066b9952cd4a2.gif?imageMogr2/auto-orient/strip)\n![京东效果.gif](https://upload-images.jianshu.io/upload_images/10991770-20665acc596753fd.gif?imageMogr2/auto-orient/strip)\n![腾讯效果.gif](https://upload-images.jianshu.io/upload_images/10991770-85ee3a14c08af52f.gif?imageMogr2/auto-orient/strip)\n![斗鱼效果.gif](https://upload-images.jianshu.io/upload_images/10991770-a807f552c60ef11b.gif?imageMogr2/auto-orient/strip)\n\n\n一种是：类似于微信，不带导航栏，如图：\n\n![微信效果.gif](https://upload-images.jianshu.io/upload_images/10991770-85b47cf133bac792.gif?imageMogr2/auto-orient/strip)\n\n\n####  支持OC、Swift：最低适配iOS 7.0 ####\n\nBBGestureBack不仅支持OC还支持Swift，最低适配iOS7.0，iOS主流的全屏手势返回、滑动返回、pop动画效果都有，适配各种iPhone，嵌入简单，只需按照Demo集成，就能完美使用。（集成最简单、功能最全面）\n\n![BBGestureBack Demo.jpg](https://upload-images.jianshu.io/upload_images/10991770-c04ac90bcad25482.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n####  BBGestureBack手势效果 ####\n\n不仅仅手势返回可以有动画、就连pop也有效果。\n\n![BBGestureBack手势效果](https://upload-images.jianshu.io/upload_images/10991770-d4ed0df184db25ca.gif?imageMogr2/auto-orient/strip)\n\n![BBGestureBack.gif](https://upload-images.jianshu.io/upload_images/10991770-edecbec93d1d7e8b.gif?imageMogr2/auto-orient/strip)\n\n\n####  BBGestureBack如何使用？ ####\n按照Demo集成就可以了，注意：\n\n * 是否使用效果\n \n `@property (nonatomic) Boolean isEnablePanGesture;//default is YES.`\n \n  * 重新设置rootViewController\n  \n ` setupRootViewController:(UIViewController *)rootViewController`\n \n * pop的返回方式\n \n```\n - (void)bb_popViewController;\n - (void)bb_popToViewController:(UIViewController*)viewController;\n - (void)bb_popToRootViewController;\n```\n* 更新增引导图，后期还会完善广告图\n\n\n* 参数 oc\n![oc参数说明及文件目录](https://upload-images.jianshu.io/upload_images/10991770-ab0eea71e46a62df.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n```\n//The ifrst user guider image (第一次引导图)\nUIKIT_EXTERN NSString *const kBBFirstLaunch;\n// Open iPhone X Style.（是否打开Phone X风格）\nUIKIT_EXTERN const Boolean kBBIsOpenIphoneXStyle;\n// The default is 40， iPhone X Style Corner。（默认为40，iPhone X 圆角弧度）\nUIKIT_EXTERN const CGFloat kBBIphoneXStyleCorner;\n// The default is 3， User guider image count。（默认为3，用户引导图总页数）\nUIKIT_EXTERN const NSInteger kBBUserGuiderImgCount;\n// Screen system to return gesture.（是否屏蔽系统返回手势）\nUIKIT_EXTERN const Boolean kBBIsCanleSystemPan;\n// The distance from the left can be automatically returned.(距离左边多少距离，可以自动返回)\nUIKIT_EXTERN const CGFloat kBBDistanceToLeft;\n// BottomView Scaling.(底层缩放比例)\nUIKIT_EXTERN const CGFloat kBBWindowToScale;\n// BottomView alpha.(底层透明度)\nUIKIT_EXTERN const CGFloat kBBMaskingAlpha;\n// Automatic return speed.(自动返回速度)\nUIKIT_EXTERN const CGFloat kBBGestureSpeed;\n// Range of drag and drop.(拖拽的范围,大于此值才有效果)\nUIKIT_EXTERN const CGFloat kBBDistanceToPan;\n// The default is 0, 0 for full screen return, and also for distance.（默认为0，0为全屏返回，也可指定距离）\nUIKIT_EXTERN const CGFloat kBBDistanceToStart;\n```\n* 参数 swift\n![swift参数说明及文件目录](https://upload-images.jianshu.io/upload_images/10991770-b63eb35b54bc62fd.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n```\n//The ifrst user guider image (第一次引导图)\nlet kBBFirstLaunch:String = \"BBFirstLaunch\"\n// Open iPhone X Style.（是否打开Phone X风格）\nlet kBBIsOpenIphoneXStyle:Bool = true\n// The default is 40， iPhone X Style Corner。（默认为40，iPhone X 圆角弧度）\nlet kBBIphoneXStyleCorner:CGFloat! = 40\n// The default is 3， User guider image count。（默认为3，用户引导图总页数）\nlet kBBUserGuiderImgCount:Int = 3\n// Screen system to return gesture.（是否屏蔽系统返回手势）\nlet kBBIsCanleSystemPan:Bool = true\n// The distance from the left can be automatically returned.(距离左边多少距离，可以自动返回)\nlet kBBDistanceToLeft:CGFloat! = 70.0\n// BottomView Scaling.(底层缩放比例)\nlet kBBWindowToScale:CGFloat! = 0.95\n// BottomView alpha.(底层透明度)\nlet kBBMaskingAlpha:CGFloat! = 0.9\n// Automatic return speed.(自动返回速度)\nlet kBBGestureSpeed:TimeInterval! = 0.3\n// Range of drag and drop.(拖拽的范围,大于此值才有效果)\nlet kBBDistanceToPan:CGFloat! = 10\n// The default is 0, 0 for full screen return, and also for distance.（默认为0，0为全屏返回，也可指定距离）\nlet kBBDistanceToStart:CGFloat! = 100\n```\n\n上传图片说明：\n![BBGestureBack参数说明](https://upload-images.jianshu.io/upload_images/10991770-190ae7dbcf35d5e7.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)\n\n####  BBGestureBack 系统全屏效果 ####\n![系统全屏返回.gif](https://upload-images.jianshu.io/upload_images/10991770-40fc8f74b89dff82.gif?imageMogr2/auto-orient/strip)\n\n\n####  BBGestureBack点赞及下载 ####\n[别拦我，我要去点赞下载](https://github.com/Bonway/BBGestureBack)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBonway%2FBBGestureBack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBonway%2FBBGestureBack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBonway%2FBBGestureBack/lists"}