2017最受欢迎的30个Swift 库,你关注到了吗?

2,993 阅读5分钟
原文链接: mp.weixin.qq.com
在过去的一年里,国外的 Mybridge 对将近 6000 个 Swift 开源库进行了筛选和比较,以受欢迎程度和新近度为标准,挑选出了在 2017 年 1 月至 12 月发布的前 30 个库或项目。希望这些开源库能加快你的开发进程,帮助实现你的开发目标。   1. Vapor (v2)

Vapor (v2) 是一个适用于 MacOS 和 Ubuntu 服务器端的 Swift Web 框架,它将为你的网站、API 或云项目打下一个基础。

Github:12261 颗星

链接:

https://github.com/vapor/vapor

  2. SnapKit

SnapKit 是一种使 iOS 和 OS X 上的 Auto Layout 变得简洁的 DSL。

Github:11755 颗星

链接:

https://github.com/SnapKit/SnapKit

  3. Hero

Hero 是一个建立 iOS 视图控制器转换的库,它在 UIKit 繁琐的转换 API 之上提供了一个声明层 - 为开发人员提供了一个简单的任务。

Github:11922 颗星

链接:

https://github.com/lkzhao/Hero

  4. Carthage

Carthage 是一个致力于用最简单的方法添加框架到你的 Cocoa 应用程序的管理器。

Github:10894 颗星

链接:

https://github.com/Carthage/Carthage

  5. iina

iina 是一个 macOS 的现代视频播放器,

Github:10072 颗星

链接:

https://github.com/lhc70000/iina

  6. SwiftLint(v0.2)

SwiftLint(v0.2)是限定 Swift 样式和条例的工具。

Github:8396 颗星

链接:

https://github.com/realm/SwiftLint

  7. Lona

Lona 是定义设计系统并使用它们生成跨平台 UI 代码、Sketch 文件、图像等其他工件的工具。

Github:3960 颗星

链接:

https://github.com/airbnb/Lona

  8. SkeletonView

SkeletonView 以优雅的方式来向用户显示正在发生的事情,并准备用户在等待的内容。

Github:3191 颗星

链接:

https://github.com/Juanpe/SkeletonView

  9. ARKit-CoreLocation

ARKit-CoreLocation 将高精度的 AR 与大量的 GPS 数据结合起来定位或描述周边的环境。

Github:3176 颗星

链接:

https://github.com/ProjectDent/ARKit-CoreLocation

  10. PanelKit

PanelKit 是在 iOS 上启用面板的 UI 框架。

Github:3055 颗星

链接:

https://github.com/louisdh/panelkit

  11. ViewAnimator

ViewAnimator 仅用一行就可以让你的 UI 生动起来。它是一个以简单的方式构建复杂的 iOS UIView 动画的库。它为任何包含其他视图的视图提供了一行动画,如 UITableView 和 UICollectionView 及其单元格或 UIStackView 及其排列的子视图。

Github:2801 颗星

链接:

https://github.com/marcosgriselli/ViewAnimator

  12. SwipeCellKit

使用Swift实现的可滑动Swipeable UITableViewCell,模仿苹果原生Mail.app中的列表样式。

Github:2703 颗星

链接:

https://github.com/SwipeCellKit/SwipeCellKit

  13. Spruce-ios

Spruce-ios 是用在屏幕上编排动画的 Swift 库,有了这么多不同的动画库,开发人员需要确保每个视图都在适当的时候动画,它可以帮助设计师请求复杂的多视图动画,而不是让开发人员执着于原型。

Github:2241 颗星

链接:

https://github.com/willowtreeapps/spruce-ios

  14. BulletinBoard

BulletinBoard 是一个 iOS 库,用于生成和管理屏幕底部显示的界面,它特别适用于用户之间的快速交互。

Github:2229 颗星

链接:

https://github.com/alexaubry/BulletinBoard

  15. TinyConstraints

TinyConstraints 是使自动布局更甜的语法糖。

Github:2207 颗星

链接:

https://github.com/roberthein/TinyConstraints

  16. Gemini

Gemini 是用 Swift 编写的基于滚动的 iOS 动画框架。

Github:2101 颗星

链接:https://github.com/shoheiyokoyama/Gemini

  17. SpreadsheetView

SpreadsheetView 是 iOS 应用程序的完全可配置的电子表格视图用户界面。有了这个框架,就可以像使用 Excel 一样轻松地创建复杂的布局,如日程安排、甘特图或时间表。

Github:2158 颗星

链接:

https://github.com/kishikawakatsumi/SpreadsheetView

  18. SwiftKotlin

SwiftKotlin 是一种以非常简单快捷的方式将 Swift 代码转换为 Kotlin 的工具。

Github:1868 颗星

链接:

https://github.com/angelolloqui/SwiftKotlin

  19. NotificationBanner

NotificationBanner 是以最简单的方法在 iOS 中显示高度自定义的应用程序通知的库。

Github:1579 颗星

链接:

https://github.com/Daltron/NotificationBanner

  20. Twitter Image Pipeline

Twitter Image Pipeline 是为 iOS 客户端提供强大且高性能的图像加载和缓存的框架。

Github:1454 颗星

链接:

https://github.com/twitter/ios-twitter-image-pipeline

  21. FengNiao

FengNiao 是用于清理 Xcode 中未使用资源的命令行的工具。

Github:1370 颗星

链接:

https://github.com/onevcat/FengNiao

  22. MessageKit

MessageKit 是 JSQMessagesViewController 的社区驱动替代品。

Github:1471 颗星

链接:

https://github.com/MessageKit/MessageKit

  23. Dotzu

Dotzu 是用于 iOS App 中的调试工具,可增强日志记录、网络信息、崩溃报告等。

Github:1241 颗星

链接:

https://github.com/remirobert/Dotzu

  24. Material-motion-swift

Material-motion-swift 是使用 Core Animation 构建 iOS 响应运动的工具包。

Github:1106 颗星

链接:

https://github.com/material-motion/material-motion-swift

  25. CollectionKit

CollectionKit 是用于构建可重用数据驱动的集合组件的现代 Swift 框架。

Github:1909 颗星

链接:

https://github.com/SoySauceLab/CollectionKit

  26. Bender

利用 Bender,可以在 iOS 上轻松快速地制作神经网络,它使用了 TensorFlow 模型,是 MetalPerformanceShaders 上的一个抽象层。

Github:1326 颗星

链接:

https://github.com/xmartlabs/Bender

  27. HGPlaceholders

HGPlaceholders 是一个显示项目中任何 UITableView/UICollectionView 占位符和空状态的库。

Github:1011 颗星

链接:

https://github.com/HamzaGhazouani/HGPlaceholders

  28. Quicktype-xcode

Quicktype 从样本 JSON 数据中推断出类型,然后在 Swift、C ++、Obj-C ++、Java 等中输出强类型模型和序列化程序来处理这些数据。这个扩展增加了 Quicktype 对 Xcode 9 的本地支持。

Github:943 颗星

链接:

https://github.com/quicktype/quicktype-xcode

  29. DefaultsKit

DefaultsKit 利用 Swift 4 强大的可编码功能,使用不到 70 行的代码来为 iOS、macOS 和 tvOS 提供简单而强大的 UserDefaults。

Github:812 颗星

链接:

https://github.com/nmdias/DefaultsKit

  30.Time

Time 是 Swift 上由generics 驱动的类型时间计算库。

Github:614 颗星

链接:

https://github.com/dreymonde/Time

  原文链接

https://medium.mybridge.co/30-amazing-ios-swift-libraries-for-the-past-year-v-2018-7cf15027eee9

 移动开发前线

「移动开发前线」是 InfoQ 旗下关注移动开发技术的垂直社群。投稿请发邮件到 editors@cn.infoq.com,注明“移动开发前线投稿”。

  活动推荐

每天有超过 10 亿的手机在运行着 Facebook 的多个移动应用,面对如此大规模的用户,如何保证他们使用过程中的流畅体验,是一个及其复杂的工程问题。想知道 Facebook 在这方面是怎么做的吗?

扫码订购极客时间“性能优化面面观”精品微课,学习 Facebook、Intel、阿里巴巴、腾讯以及华为等业界顶尖企业的性能优化最佳实践。