{"id":13462681,"url":"https://github.com/fcbox/Lantern","last_synced_at":"2025-03-25T06:31:24.330Z","repository":{"id":40634590,"uuid":"230365034","full_name":"fcbox/Lantern","owner":"fcbox","description":"基于Swift的高可用视图框架","archived":false,"fork":false,"pushed_at":"2024-02-18T08:37:29.000Z","size":73380,"stargazers_count":707,"open_issues_count":29,"forks_count":76,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-29T13:49:17.358Z","etag":null,"topics":["browser","gesture","image","ios","photo","photo-browser","previewer","swift","transition-animation"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcbox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-27T03:16:17.000Z","updated_at":"2024-10-12T02:31:41.000Z","dependencies_parsed_at":"2024-06-19T00:34:29.330Z","dependency_job_id":null,"html_url":"https://github.com/fcbox/Lantern","commit_stats":{"total_commits":55,"total_committers":8,"mean_commits":6.875,"dds":0.4727272727272728,"last_synced_commit":"b5e3c798241b5313909b2ef2508af186bc79f296"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbox%2FLantern","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbox%2FLantern/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbox%2FLantern/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcbox%2FLantern/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcbox","download_url":"https://codeload.github.com/fcbox/Lantern/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245413730,"owners_count":20611353,"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":["browser","gesture","image","ios","photo","photo-browser","previewer","swift","transition-animation"],"created_at":"2024-07-31T13:00:18.804Z","updated_at":"2025-03-25T06:31:19.322Z","avatar_url":"https://github.com/fcbox.png","language":"Swift","funding_links":[],"categories":["UI Component","OOM-Leaks-Crash"],"sub_categories":["PhotoViewer"],"readme":"# Lantern（花灯）\n\n![](https://github.com/fcbox/Lantern/raw/master/Assets/Banner.png)\n\n\nLantern（花灯）是一个基于Swift的高可用视图框架。它基于iOS原生的图片/视频浏览功能进行封装，并提供了更加酷炫的交互方式。此外，它还提供丰富的接口，扩展灵活，能让App快速集成浏览功能。\n\n经过我们一年多的试用和改进，现将Lantern面向社区开源，希望和大家一起改进App图片/视频浏览交互，提供更好的用户体验。\n\n本项目由丰巢研发团队开发维护，并基于[Apache-2.0协议](http://www.apache.org/licenses/LICENSE-2.0)开源的项目，源地址为：[https://github.com/JiongXing/PhotoBrowser](https://github.com/JiongXing/PhotoBrowser)。后续将逐步全面迁移到此处，敬请留意。\n\n\n## 效果预览\n\n\u003cdiv\u003e\n\t\u003cimg src=\"https://github.com/fcbox/Lantern/raw/master/Assets/Home.png\" width = \"30%\" div/\u003e\n\t\u003cimg src=\"https://github.com/fcbox/Lantern/raw/master/Assets/Introduction.gif\" width = \"30%\" div/\u003e\n\u003c/div\u003e\n\n## 特性\n\n- [x] 基于纯Swift开发\n- [x] 支持图片、视频、图片与视频混合浏览\n- [x] 支持横向和竖向滚动\n- [x] 支持嵌入导航栏\n- [x] 支持`push`和`present`打开\n- [x] 支持数据源实时变更，框架不持有数据源\n- [x] 支持自定义转场动画，框架提供了`Fade`、`Zoom`、`SoomthZoom`三个转场动画的实现\n- [x] 支持自定义Cell，框架提供了常用的图片展示Cell的实现\n- [x] 支持网络图片加载、查看原图加载，由用户自由选择其他框架进行图片加载与缓存\n- [x] 支持各种附加控件的添加，框架提供了两种页面指示器的实现，以及在例子工程提供了加载进度环的实现\n\n## 版本更新记录\n\n### Version 1.1.5\n\n\u003e 2023/08/03\n\n- 新增实况动图预览场景\n\n- 新增视频图片混合场景\n\n- 新增ImageCell拖拽视图回调\n\n- 修复若干问题，优化图片浏览框架\n\n### Version 1.1.4\n\n\u003e 2022/06/23\n\n- 修复图片删除闪退问题\n\n- 内存泄露优化\n\n- 监控网络图片imageView刷新问题\n\n- 长图显示抖动动画效果优化\n\n\n\n### Version 1.1.2\n\n\u003e 2021/03/30\n\n- 加载更多新增图片时，图片偏移问题的优化\n\n- 网络图片加载完成后，视图刷新回调优化处理\n\n- 自定义Cell查看原图优化\n\n- Example的Demo文件命名规范\n\n  \n\n### Version 1.1.1\n\n\u003e 2021/01/20\n\n- 优化屏幕旋转时闪屏修复\n\n  \n\n### Version 1.1.0\n\n\u003e 2020/09/16\n\n- 优化LanternCell，支持子类自定义转场动画\n- 优化LanternImageCell，暴露方法支持子类自定义创建视图\n- 更好支持嵌入导航栏场景下的转场动画\n- 视频与图片混合浏览视频的拖拽动画优化\n- Example的Demo样式更新，更直观的UI样式\n\n## 接入文档\n\n- [环境与安装](环境与安装.md)\n- [基础用法](基础用法.md)\n- [高级用法](高级用法.md)\n\n## 更新日志\n\n- [Release Notes](ReleaseNotes.md)\n\n\u003e 深圳市丰巢科技有限公司成立于2015年6月6日，是一家致力以智能快递柜为切入点，提供最后一公里交付解决方案的科技公司。 \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcbox%2FLantern","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcbox%2FLantern","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcbox%2FLantern/lists"}