{"id":13696997,"url":"https://github.com/mengxianliang/XLBubbleTransition","last_synced_at":"2025-05-03T17:32:52.296Z","repository":{"id":113372062,"uuid":"86887323","full_name":"mengxianliang/XLBubbleTransition","owner":"mengxianliang","description":"iOS ViewController间切换的转场动画","archived":false,"fork":false,"pushed_at":"2019-08-08T06:25:26.000Z","size":512,"stargazers_count":138,"open_issues_count":5,"forks_count":26,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-07T11:07:10.601Z","etag":null,"topics":["animation","dismiss","pop","present","push","uiviewcontroller"],"latest_commit_sha":null,"homepage":"","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/mengxianliang.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}},"created_at":"2017-04-01T05:45:47.000Z","updated_at":"2024-11-01T07:28:12.000Z","dependencies_parsed_at":"2023-06-15T11:30:31.951Z","dependency_job_id":null,"html_url":"https://github.com/mengxianliang/XLBubbleTransition","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/mengxianliang%2FXLBubbleTransition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengxianliang%2FXLBubbleTransition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengxianliang%2FXLBubbleTransition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mengxianliang%2FXLBubbleTransition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mengxianliang","download_url":"https://codeload.github.com/mengxianliang/XLBubbleTransition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224369825,"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":["animation","dismiss","pop","present","push","uiviewcontroller"],"created_at":"2024-08-02T18:00:51.199Z","updated_at":"2024-11-13T00:31:18.988Z","avatar_url":"https://github.com/mengxianliang.png","language":"Objective-C","funding_links":[],"categories":["UI Effects"],"sub_categories":[],"readme":"# XLBubbleTransition\n\niOS ViewController间切换的转场动画\n\n## 功能说明\n\n* 适用于ViewController通过UINavigation的Push和Pop切换时的转场动画。\n\n* 适用于ViewController通过Present和Dismiss切换时的转场动画。\n\n### 显示效果\n\n\u003cimg src=\"https://github.com/mengxianliang/XLBubbleTransition/blob/master/GIF/1.gif\" width=300 height=538 /\u003e\n\n### 使用方法\n\n(以**ViewControllerA**切换到**ViewControllerB**为例)\n\n#### 1、 通过Navigation的Push和Pop进行切换时:\n\n在**ViewControllerA**中导入头文件：**UIViewController+XLBubbleTransition.h**\n\u003cbr\u003e\n添加如下代码，设置push和pop设置动画，并设置锚点。\n\n```objc\nself.xl_pushTranstion = [XLBubbleTransition transitionWithAnchorRect:button.frame];\nself.xl_popTranstion = [XLBubbleTransition transitionWithAnchorRect:button.frame];\n```\n\n#### 2、 通过Present和Dismiss进行切换时:\n\n首先在**ViewControllerB**中导入头文件：**UIViewController+XLBubbleTransition.h**\n\u003cbr\u003e\n添加如下代码，设置Present和Dismiss设置动画，并设置锚点。\n    \n```objc\nself.xl_presentTranstion = [XLBubbleTransition transitionWithAnchorRect:button.frame];\nself.xl_dismissTranstion = [XLBubbleTransition transitionWithAnchorRect:button.frame];\n```\n\n### 个人开发过的UI工具集合 [XLUIKit](https://github.com/mengxianliang/XLUIKit)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengxianliang%2FXLBubbleTransition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmengxianliang%2FXLBubbleTransition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmengxianliang%2FXLBubbleTransition/lists"}