33 个 2017 年必须了解的 iOS 开源库

DarWenzel 7年前
   <p style="text-align: center;"><img src="https://simg.open-open.com/show/9d953963a575a337c0486997f01ce793.png"></p>    <p>照片版权:(Unsplash/Markus Pe)</p>    <p>你好,iOS 开发者们!我的名字叫 Pawe?,我是一个独立 iOS 开发者,并且是 <a href="/misc/goto?guid=4959736478103620002" rel="nofollow,noindex">Enter Universe</a> 的作者。</p>    <p>接近两年前我发布了 27 个iOS开源库,让你的开发坐上火箭吧。这是我在这里最棒的文章了(根据 Medium 用户的反馈来看):</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/203d0528e9491c0ad8327f92d428fb07.jpg"></p>    <p>如果有 15.5 万人 很担心能否跨越网络上连山排海般的文字找到最棒的 iOS 开源库,那我来传递。</p>    <p>可以看一下我的 <a href="/misc/goto?guid=4959736478193630323" rel="nofollow,noindex">GitHub 主页</a> ,在这篇文章之后又星了超过 180 个 repositories,所以是时候更新我的 Medium 了。</p>    <p>跟 33 个 pod 打个招呼,它们会让你 2017 年的开发坐上火箭。点火发射啦。</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/b4a850cc6d11102ff1aed059dfd06041.png"></p>    <p>照片版权:(NASA/Joel Kowsky)</p>    <p>在文章的底部你会找到 TL;DR 即总结列表,列出了所有这些库,并且有相应的链接以及 CocoaPods 名字(如果有的话)。阅读过程中不需要记笔记。现在开始谈正事。</p>    <p>1. <a href="/misc/goto?guid=4959736478281046483" rel="nofollow,noindex">IGListKit</a> ,作者是 <a href="/misc/goto?guid=4959736478360423327" rel="nofollow,noindex">Instagram Engineering</a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/79ed8f6b4d7186a60c14187949f2e7a1.jpg"></p>    <p>Instagram 程序员做的,IGListKit 是数据驱动的 UICollectionView 框架,为了构建快速和可扩展的列表。另外,它有助于你在 app 结束对于大量视图控制器的使用。看看这篇来自 <a href="/misc/goto?guid=4959736478445197881" rel="nofollow,noindex">Ray Wenderlich</a> 的教程,关于如何在项目中实现这个库,或者读读这篇 <a href="/misc/goto?guid=4959736478529197968" rel="nofollow,noindex">Rodrigo Cavalcante</a> 的文章,关于迁移现有的 UITableView 到 IGListCollectionView。</p>    <p><a href="/misc/goto?guid=4959736478281046483" rel="nofollow,noindex">Instagram/IGListKit - 为了构建快速和可扩展的列表而生的数据驱动 UICollectionView 框架</a></p>    <p>2. <a href="/misc/goto?guid=4958838689566194388" rel="nofollow,noindex">Realm</a> ,作者是 <a href="/misc/goto?guid=4959736478655192885" rel="nofollow,noindex">realm.io</a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/9e279a5cb92785addf401deb2eab1d4a.jpg"></p>    <p><a href="/misc/goto?guid=4958973331914205897" rel="nofollow,noindex">Realm </a> 是一个直接运行在手机、平板和可穿戴设备内部的移动端数据库,不只是 iOS。如果你想试一点和 Core Data 不一样的,就用 Realm。许多人说它是一个现代化的、产品已经可以替代苹果原生的解决方案。</p>    <p><a href="/misc/goto?guid=4958838689566194388" rel="nofollow,noindex">realm/realm-cocoa - Realm 是一个移动端数据库:Core Data 和 SQLite 的替代品</a></p>    <p>3. <a href="/misc/goto?guid=4959642890508502196" rel="nofollow,noindex">Moya</a> ,作者是 <a href="/misc/goto?guid=4959736478811269835" rel="nofollow,noindex">Ash Furrow</a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/40f30ed4d300df1de7b7d38ca93bb9b0.jpg"></p>    <p>Moya 是你的 app 中缺失的网络层。不用再去想在哪儿(或者如何)安放网络请求,Moya 替你管理。</p>    <p style="text-align: center;"><img src="https://simg.open-open.com/show/eaaa6cea36415dbf16e31bd091f91c5d.png"></p>    <p><a href="/misc/goto?guid=4959642890508502196" rel="nofollow,noindex">Moya/Moya - 用 Swift 写的网络抽象层 </a></p>    <p>4. <a href="/misc/goto?guid=4958851213980494983" rel="nofollow,noindex">SwiftyJSON</a> ,作者是 <a href="/misc/goto?guid=4959736478945580461" rel="nofollow,noindex">Pinglin Tang</a></p>    <p>Swift 界 JSON 解析之王。</p>    <p>把这段代码:</p>    <pre>  if let statusesArray = try? JSONSerialization.jsonObject(with: data, options: .allowFragments) as? [[String: Any]],      let user = statusesArray[0]["user"] as? [String: Any],      let username = user["name"] as? String {      // Finally we got the username  }</pre>    <p>变成了这段:</p>    <pre>  let json = JSON(data: dataFromNetworking)  if let userName = json[0]["user"]["name"].string {    // Now you got your value  }</pre>    <p>自动替你完成了可选值的拆包。</p>    <p><a href="/misc/goto?guid=4958851213980494983" rel="nofollow,noindex">SwiftyJSON/SwiftyJSON - 在 Swift 里处理 JSON 更好的方式</a></p>    <p>5. <a href="/misc/goto?guid=4958876515236096958" rel="nofollow,noindex">Valet</a> ,作者是 <a href="/misc/goto?guid=4959736479074673901" rel="nofollow,noindex">Square</a></p>    <p>Valet 允许你安全的在 iOS 或 OS X 钥匙链中存储数据,而不需要掌握任何钥匙链如何工作的知识。它支持在一台设备的多个应用(同一个开发者)间分享数据,以及在一个应用中在多个设备间利用 iCloud 进行分享。支持 Touch ID?没问题。</p>    <p><a href="/misc/goto?guid=4958876515236096958" rel="nofollow,noindex">square/Valet - Valet 可以让你安全地在 iOS 或 OS X 钥匙链中存储数据,而不需要掌握任何钥匙链工作的知识</a> 。</p>    <p>6. <a href="/misc/goto?guid=4959736479181599799" rel="nofollow,noindex"> <strong>Firebase Analytics</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736479263761856" rel="nofollow,noindex"> <strong>Google Developers</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/15844429c6a71e01597d9e0b846b8c61.png"></p>    <p>由谷歌制作(好吧,收购),应该是 iOS 最好的免费分析解决方案。追踪 app 使用量、用户活跃度、以及事件;设置用户属性;创建自定义受众;还有更多。</p>    <p><a href="/misc/goto?guid=4959736479356623070" rel="nofollow,noindex">Firebase Analytics | Firebase - Firebase Analytics 是一个免费 app 监测解决方案,洞察 app 用量和用户活跃度</a></p>    <p>7. <a href="/misc/goto?guid=4958851359520331775" rel="nofollow,noindex"> <strong>AsyncDisplayKit</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/9375a463525c132de831281413f432be.png"></p>    <p>非死book 为他们的 app Paper 创造了这个异步 UI SDK。如果你想让你的 app 总是每秒用 60 帧的速度来渲染,一定要看看这个库。这儿有一篇来自 Buffer 团队的故事:</p>    <p><a href="/misc/goto?guid=4959736479477486466" rel="nofollow,noindex">Buffer 里 iOS 的平滑滚动:如何(以及为什么)我们实现了 AsyncDisplayKit - 每年苹果的 WWDC 结束后,我们都会把最多的注意力转换到更新我们的 Buffer…</a></p>    <p><a href="/misc/goto?guid=4958851359520331775" rel="nofollow,noindex">非死book/AsyncDisplayKit - iOS app 的平滑异步用户界面。</a></p>    <p>8. <a href="/misc/goto?guid=4958878222867055812" rel="nofollow,noindex"> <strong>DZNEmptyDataSet</strong> </a></p>    <p>用户安装了你的 app 之后,就会看见一个空白的 UITableView。</p>    <p>DZNEmptyDataSet 帮助你避免这个情况,它提供了 <a href="/misc/goto?guid=4959736479600170130" rel="nofollow,noindex">Empty Data Set Pattern</a> 的默认实现。</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/304109616878736fb19a485db2a0d1e0.png"></p>    <p><a href="/misc/goto?guid=4958878222867055812" rel="nofollow,noindex">dzenbot/DZNEmptyDataSet - 嵌入式 UITableView/UICollectionView 的父类类别,用于显示空的数据集,无论何时… </a></p>    <p>9. <a href="/misc/goto?guid=4958968202068947762" rel="nofollow,noindex"> <strong>Chameleon</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736479735943328" rel="nofollow,noindex"> <strong>Vicc Alexander</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/d1363df537e4c314f66e148a6063b1d5.png"></p>    <p>Chameleon 是一个轻量、又强大的 iOS 颜色框架。它基于“软件应用程序应该轻松地实现功能,同时保持漂亮的界面”这个想法而创建。</p>    <p>有了 Chameleon,你就不再需要捣鼓 RGB 值、浪费时间搞明白 app 里正确的颜色组合、以及为文本能否在 app 里不同的背景下可以被看见而烦恼。</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/0ba1c97e50bd7b51b7f292cdac95a50b.png"></p>    <p><a href="/misc/goto?guid=4958968202068947762" rel="nofollow,noindex">ViccAlexander/Chameleon - iOS 的扁平颜色框架(Obj-C 和 Swift) </a></p>    <p>10. <a href="/misc/goto?guid=4958872895828933554" rel="nofollow,noindex"> <strong>PermissionScope</strong> </a> <strong>,作者是</strong> <a href="/misc/goto?guid=4959736479873186671" rel="nofollow,noindex"> <strong>Nick O’Neill</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/21749ccb80e42850f1e03da1c4de4319.png"></p>    <p>PermissionScope 是一个 Swift 框架,为了向用户巧妙地请求权限。它不只包含简单的权限请求 UI,还有统一的权限 API 可以告诉你任意给定的系统权限的状态,当然也可以轻松地请求它们。</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/b031b5420ebebd4b86550169491c2648.jpg"></p>    <p><a href="/misc/goto?guid=4958872895828933554" rel="nofollow,noindex">nickoneill/PermissionScope - 巧妙的 iOS 权限 UI 和 统一 API</a></p>    <p>11. <a href="/misc/goto?guid=4959661804276304587" rel="nofollow,noindex"> <strong>FileKit</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736480003650131" rel="nofollow,noindex"> <strong>Nikolai Vazquez</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/5d849dba9e4e89137ae3b652b34e9b98.png"></p>    <p>FileKit 是一个 Swift 框架,提供了简单和富有表现力的文件管理。 <a href="/misc/goto?guid=4959736480096517874" rel="nofollow,noindex">看看使用示例。</a></p>    <p><a href="/misc/goto?guid=4959661804276304587" rel="nofollow,noindex">nvzqz/FileKit - 简单和富有表现力的 Swift 文件管理</a></p>    <p><strong>12.</strong> <a href="/misc/goto?guid=4959736480197591923" rel="nofollow,noindex"> <strong>SwiftyUserDefaults</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736480294227790" rel="nofollow,noindex"> <strong>Radek Pietruszewski</strong> </a></p>    <p>SwiftyUserDefaults 让 user defaults 用起来很愉悦,通过结合意味深长的 Swifty API 和静态输入的益处。在一个地方定义键,轻松地使用值类型,获得额外的安全性和方便的编译时检查,这些都是免费的。</p>    <p><a href="/misc/goto?guid=4959736480197591923" rel="nofollow,noindex">radex/SwiftyUserDefaults - NSUserDefaults 的现代化 Swift API</a></p>    <p><strong>13.</strong> <a href="/misc/goto?guid=4959736480388560602" rel="nofollow,noindex"> <strong>Kingfisher</strong> </a> <strong>,作者是</strong> <a href="/misc/goto?guid=4959736480480324963" rel="nofollow,noindex"> <strong>王巍</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/48e87304c900f89fa45bc437999b1899.jpg"></p>    <p>Kingfisher 是一个轻量、纯 Swift 的库,可以从网络中异步下载和缓存图片。</p>    <p><a href="/misc/goto?guid=4958872058774071441" rel="nofollow,noindex">onevcat/Kingfisher</a></p>    <p><strong>14.</strong> <a href="/misc/goto?guid=4959734302901756571" rel="nofollow,noindex"> <strong>Hero</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736480634577660" rel="nofollow,noindex"> <strong>Luke Zhao</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/d52b1e169d25bf456adfa7036e22618e.jpg"></p>    <p>Hero 是为了构建 iOS 试图控制器过渡动画的库。它在 UIKit 繁琐的过渡动画 API 之上提供了一个层,使得自定义过渡动画对于开发人员来说是一个轻松的任务。</p>    <p><a href="/misc/goto?guid=4959734302901756571" rel="nofollow,noindex">lkzhao/Hero - iOS 优雅的过渡动画库,用 Swift 写的。</a></p>    <p><strong>15.</strong> <a href="/misc/goto?guid=4959736480738235903" rel="nofollow,noindex"> <strong>Hedwig</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736480480324963" rel="nofollow,noindex"> <strong>王巍</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/65b165b75da93e6d4ba9416774dc6d4e.jpg"></p>    <p>Hedwig 是一个 Swift 包,提供了一组高级 API,可以让你轻松地发送电子邮件到SMTP服务器。如果你打算在下一个神奇的 Swift 服务器 app里发送 email,Hedwig 可能是一个好的选择。</p>    <p><a href="/misc/goto?guid=4959736480738235903" rel="nofollow,noindex">onevcat/Hedwig - 像老板一样发送邮件到任意 SMTP 服务器,用 Swift 编写并且是跨平台的</a></p>    <p><strong>16.</strong> <a href="/misc/goto?guid=4959736480864783209" rel="nofollow,noindex"> <strong>DeviceKit</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736480952008605" rel="nofollow,noindex"> <strong>Dennis Weissmann</strong> </a></p>    <p>DeviceKit 是 UIDevice 的值类型替换。轻松获取设备信息和电池电量。</p>    <p><a href="/misc/goto?guid=4959736480864783209" rel="nofollow,noindex">dennisweissmann/DeviceKit</a></p>    <p><strong>17.</strong> <a href="/misc/goto?guid=4958989863263683152" rel="nofollow,noindex"> <strong>Charts</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/c9c3e192fa902eb198515ae9ee930c94.png"></p>    <p>漂亮的线图、饼图、条形图、分布图、气泡图、雷达图还有更多种类,这是一个图表库。</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/ab162fda54ac93d6d26497fda8bfe36f.png"></p>    <p><a href="/misc/goto?guid=4958989863263683152" rel="nofollow,noindex">danielgindi/Charts - iOS/tvOS/OSX 的漂亮图表!跨平台的 MPAndroidChart 的苹果端</a></p>    <p><strong>18.</strong> <a href="/misc/goto?guid=4958968159730531484" rel="nofollow,noindex"> <strong>MGSwipeTableCell</strong> </a></p>    <p>一个易于使用的UITableViewCell子类,允许显示带有多种转换的可滑动按钮。</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/244f0f6d538790d98d35b79bce094f30.png"></p>    <p><a href="/misc/goto?guid=4958968159730531484" rel="nofollow,noindex">MortimerGoro/MGSwipeTableCell </a></p>    <p><strong>19.</strong> <a href="/misc/goto?guid=4959736481128395873" rel="nofollow,noindex"> <strong>RandomKit</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736480003650131" rel="nofollow,noindex"> <strong>Nikolai Vazquez</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/771ab05cd269f8340e94daafa7515d4a.png"></p>    <p>简单易用的随机数据生成。</p>    <p><a href="/misc/goto?guid=4959736481235166743" rel="nofollow,noindex">#285: 用 RandomKit 生成随机数据 - 无论是在 app 的原型界面需要样本值,还是游戏逻辑的一些乘法器,随机…</a></p>    <p><a href="/misc/goto?guid=4959736481128395873" rel="nofollow,noindex">nvzqz/RandomKit - Swift 中的随机数据生成</a></p>    <p><strong>20.</strong> <a href="/misc/goto?guid=4958963510954198777" rel="nofollow,noindex"> <strong>ResponseDetective</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/8e761e4a19134b194a84c449c35737f8.png"></p>    <p><a href="/misc/goto?guid=4958963510954198777" rel="nofollow,noindex">ResponseDetective 是一个非嵌入式框架,用于拦截应用程序和服务器之间的任何传出请求和传入响应以用于调试目的。</a></p>    <p>用 ResponseDetective 让 iOS 里的 HTTP 调适更容易 - 我们很高兴地发布新的,用于HTTP调试的开源iOS工具 - ResponseDetective。你有多少次...</p>    <p><a href="/misc/goto?guid=4958963510954198777" rel="nofollow,noindex">netguru/ResponseDetective - 网络层里的夏洛克·福尔摩斯</a></p>    <p><strong>21.</strong> <a href="/misc/goto?guid=4958877304080219618" rel="nofollow,noindex"> <strong>Onboard</strong> </a></p>    <p>只需几行代码,即可轻松创建漂亮,引人入胜的用户指导页体验。</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/231be172a7ef1f807b7ed20efe2df7d4.gif"></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/5cdcb3f75cedfa2ea33b67c5b816fc07.gif"></p>    <p><a href="/misc/goto?guid=4958877304080219618" rel="nofollow,noindex">mamaral/Onboard</a></p>    <p><strong>22.</strong> <a href="/misc/goto?guid=4958851214628394802" rel="nofollow,noindex"> <strong>Quick</strong> </a> <strong>+ Nimble 作者是</strong> <a href="/misc/goto?guid=4959736481464837949" rel="nofollow,noindex"> <strong>もどかしい</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/b5822e7f9240115895d4543793b07952.png"></p>    <p>Quick是 Swift 和 Objective-C 的BDD测试框架,和匹配器框架 Nimble 配合使用。</p>    <p><a href="/misc/goto?guid=4958851214628394802" rel="nofollow,noindex">Quick/Quick - Swift (以及 Objective-C)测试框架。</a></p>    <p><a href="/misc/goto?guid=4959629859297039907" rel="nofollow,noindex">Quick/Nimble - Swift 和 Objective-C 的匹配器</a></p>    <p><strong>23.</strong> <a href="/misc/goto?guid=4959736481590331372" rel="nofollow,noindex"> <strong>Natalie</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736481678973878" rel="nofollow,noindex"> <strong>Marcin Krzyzanowski</strong> </a></p>    <p>Natalie 生成基于 storyboard 文件的 Swift 代码,使 storyboard 和 segue 更容易使用。生成的文件减少了用字符串作为 Segue 或 Storyboard 的标识符的情况。</p>    <p><a href="/misc/goto?guid=4959736481590331372" rel="nofollow,noindex">krzyzanowskim/Natalie - Storyboard 代码生成器(Swift)</a></p>    <p><strong>24.</strong> <a href="/misc/goto?guid=4958968587190330028" rel="nofollow,noindex"> <strong>RxSwift</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736481811820045" rel="nofollow,noindex"> <strong>ReactiveExtensions*</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/5d846c2f74c4bd218b7b1caac2e24b89.png"></p>    <p>对Swift中的 reactive 编程感兴趣?这里是RxSwift。</p>    <p><a href="/misc/goto?guid=4958968587190330028" rel="nofollow,noindex">ReactiveX/RxSwift</a></p>    <p>25. <a href="/misc/goto?guid=4959736481907608801" rel="nofollow,noindex">GDPerformanceView</a> 作者是 <a href="/misc/goto?guid=4959736482003677630" rel="nofollow,noindex">Daniil Gavrilov</a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/4698f4d83f68121a7f45a005082e3bf0.png"></p>    <p>GDPerformanceView在状态栏上方显示 FPS,CPU 使用情况,app 和 iOS 版本,并通过 delegate 报告 FPS 和 CPU 使用情况。</p>    <p><a href="/misc/goto?guid=4959736481907608801" rel="nofollow,noindex">dani-gavrilov/GDPerformanceView-Swift</a></p>    <p><strong>26.</strong> <a href="/misc/goto?guid=4958851213782329914" rel="nofollow,noindex"> <strong>Alamofire</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/019dff33d13fe5766ff2a203a81666e3.png"></p>    <p>Alamofire 是用 Swift 写的 HTTP 网络库。</p>    <p><a href="/misc/goto?guid=4959736482123976053" rel="nofollow,noindex">Swift 里的绝对网络指南,用 Alamofire - 自从2014年6月语言发布以来,Swift的网络已经成为争论焦点。甚至…</a></p>    <p><a href="/misc/goto?guid=4958851213782329914" rel="nofollow,noindex">Alamofire/Alamofire - Swift 中 优雅的 HTTP 网络</a></p>    <p><strong>27.</strong> <a href="/misc/goto?guid=4959730588159370544" rel="nofollow,noindex"> <strong>SwiftyStoreKit</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736482243509370" rel="nofollow,noindex"> <strong>Andrea Bizzotto</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/8ef8e2a82a91a97442afeb5f66c5352b.png"></p>    <p>SwiftyStoreKit 是一个轻量的 app 内购框架,支持 iOS 8.0+,tvOS 9.0+和macOS 10.10+。</p>    <p><a href="/misc/goto?guid=4959730588159370544" rel="nofollow,noindex">bizz84/SwiftyStoreKit</a></p>    <p><strong>28.</strong> <a href="/misc/goto?guid=4958872895331879367" rel="nofollow,noindex"> <strong>Timepiece</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736482368211063" rel="nofollow,noindex"> <strong>AnyType</strong> </a></p>    <p>Swift 里直观的日期处理。</p>    <p><a href="/misc/goto?guid=4958872895331879367" rel="nofollow,noindex">naoty/Timepiece</a></p>    <p><strong>29.</strong> <a href="/misc/goto?guid=4959616324196754050" rel="nofollow,noindex"> <strong>CryptoSwift</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736481678973878" rel="nofollow,noindex"> <strong>Marcin Krzyzanowski</strong> </a></p>    <p>Swift 里加密相关的帮助函数实现。</p>    <p><a href="/misc/goto?guid=4959616324196754050" rel="nofollow,noindex">krzyzanowskim/CryptoSwift - CryptoSwift 是一个不断扩充的集合,包含了标准、安全、用 Swift 实现的加密算法</a></p>    <p><strong>30.</strong> <a href="/misc/goto?guid=4959720431241650418" rel="nofollow,noindex"> <strong>FSCalendar</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/94bc5a8a885e6530b223f2e82f9182ad.png"></p>    <p>完全自定义的 iOS 日历库,兼容 Objective-C 和 Swift。</p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/bf56c9c36574f832b4257916e791155c.png"></p>    <p><a href="/misc/goto?guid=4959720431241650418" rel="nofollow,noindex">WenchaoD/FSCalendar </a></p>    <p><strong>31.</strong> <a href="/misc/goto?guid=4959736482553889624" rel="nofollow,noindex"> <strong>ImageViewer</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736482649326412" rel="nofollow,noindex"> <strong>Kristian Angyal</strong> </a></p>    <p>模仿 推ter 的图片浏览器。</p>    <p><a href="/misc/goto?guid=4959736482553889624" rel="nofollow,noindex">MailOnline/ImageViewer</a></p>    <p><strong>32.</strong> <a href="/misc/goto?guid=4958870678635630216" rel="nofollow,noindex"> <strong>PromiseKit</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/a0cab2297e805cc837222a9b9c4d4f88.jpg"></p>    <p>PromiseKit 是对于任意有 swiftc 的平台的周到和完整的 promises 实现,它有优秀的 Objective-C 桥接和赏心悦目的 iOS、macOS、tvOS 和 watchOS 专业化。</p>    <p><a href="/misc/goto?guid=4959736482769978034" rel="nofollow,noindex">mxcl/PromiseKit - Swift 和 ObjC 的 Promises</a></p>    <p><strong>33.</strong> <a href="/misc/goto?guid=4959556011204963246" rel="nofollow,noindex"> <strong>Ensembles</strong> </a> <strong>作者是</strong> <a href="/misc/goto?guid=4959736482894898340" rel="nofollow,noindex"> <strong>Drew McCormack</strong> </a></p>    <p style="text-align:center"><img src="https://simg.open-open.com/show/da2956e9e2de9cc99868b958c90bb51b.png"></p>    <p>Ensembles 是一个 Objective-C 框架——也支持 Swift —— 它扩展了Apple的Core Data框架,为Mac OS和iOS添加了点对点同步。多个 SQLite persistent store 可以通过文件同步平台(如iCloud或Dropbox)耦合在一起。该框架可以容易地扩展以支持能够在设备之间移动文件的任何服务,包括自定义服务器。</p>    <p>这些库的 TL;DR 列表,供快速查询:</p>    <p>1. <a href="/misc/goto?guid=4959736478281046483" rel="nofollow,noindex">IGListKit</a> [UICollectionView 框架] -> pod 'IGListKit', '~> 2.0.0</p>    <p>2. <a href="/misc/goto?guid=4958838689566194388" rel="nofollow,noindex">Realm</a> [移动端数据库] -> pod 'RealmSwift’</p>    <p>3. <a href="/misc/goto?guid=4959642890508502196" rel="nofollow,noindex">Moya</a> [抽象网络层] -> pod 'Moya', ‘8.0.0’</p>    <p>4. <a href="/misc/goto?guid=4958851213980494983" rel="nofollow,noindex">SwiftyJSON</a> [JSON 解析] -> pod 'SwiftyJSON’</p>    <p>5. <a href="/misc/goto?guid=4958876515236096958" rel="nofollow,noindex">Valet</a> [钥匙串帮手] -> pod 'Valet’</p>    <p>6. <a href="/misc/goto?guid=4959736483029895178" rel="nofollow,noindex">Firebase Analytics</a> [分析] -> pod 'Firebase/Core’</p>    <p>7. <a href="/misc/goto?guid=4958851359520331775" rel="nofollow,noindex">AsyncDisplayKit</a> [异步 UI SDK] -> pod 'AsyncDisplayKit’</p>    <p>8. <a href="/misc/goto?guid=4958878222867055812" rel="nofollow,noindex">DZNEmptyDataSet</a> [空状态模式] -> pod 'DZNEmptyDataSet’</p>    <p>9. <a href="/misc/goto?guid=4958968202068947762" rel="nofollow,noindex">Chameleon</a> [扁平化颜色框架] -> pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'</p>    <p>10. <a href="/misc/goto?guid=4958872895828933554" rel="nofollow,noindex">PermissionScope</a> [iOS 权限框架] -> pod 'PermissionScope’</p>    <p>11. <a href="/misc/goto?guid=4959661804276304587" rel="nofollow,noindex">FileKit</a> [文件管理] -> pod 'FileKit', '~> 4.0.0’</p>    <p>12. <a href="/misc/goto?guid=4959736480197591923" rel="nofollow,noindex">SwiftyUserDefaults</a> [user defaults 帮手] -> pod 'SwiftyUserDefaults’</p>    <p>13. <a href="/misc/goto?guid=4958872058774071441" rel="nofollow,noindex">Kingfisher</a> [下载图片] -> pod 'Kingfisher', '~> 3.0’</p>    <p>14. <a href="/misc/goto?guid=4959734302901756571" rel="nofollow,noindex">Hero</a> [自定义试图控制器过渡动画] -> pod 'Hero’</p>    <p>15. <a href="/misc/goto?guid=4959736480738235903" rel="nofollow,noindex">Hedwig</a> [发送 email]</p>    <p>16. <a href="/misc/goto?guid=4959736480864783209" rel="nofollow,noindex">DeviceKit</a> [设备信息] -> pod 'DeviceKit', '~> 1.0’</p>    <p>17. <a href="/misc/goto?guid=4958989863263683152" rel="nofollow,noindex">Charts</a> [图表] -> pod 'Charts’</p>    <p>18. <a href="/misc/goto?guid=4958968159730531484" rel="nofollow,noindex">MGSwipeTableCell</a> [可以滑动的 table cells] -> pod 'MGSwipeTableCell’</p>    <p>19. <a href="/misc/goto?guid=4959736481128395873" rel="nofollow,noindex">RandomKit</a> [随机生成数字] -> pod 'RandomKit', '~> 3.0.0’</p>    <p>20. <a href="/misc/goto?guid=4958963510954198777" rel="nofollow,noindex">ResponseDetective</a> [调适网络请求] -> pod 'ResponseDetective’</p>    <p>21. <a href="/misc/goto?guid=4958877304080219618" rel="nofollow,noindex">Onboard</a> [用户指导页] -> pod 'Onboard’</p>    <p>22. <a href="/misc/goto?guid=4958851214628394802" rel="nofollow,noindex">Quick</a> + <a href="/misc/goto?guid=4959629859297039907" rel="nofollow,noindex">Nimble</a> [BDD 测试] -> pod 'Quick’</p>    <p>pod 'Nimble’</p>    <p>23. <a href="/misc/goto?guid=4959736481590331372" rel="nofollow,noindex">Natalie</a> [从 storyboard 生成代码]</p>    <p>24. <a href="/misc/goto?guid=4958968587190330028" rel="nofollow,noindex">RxSwift</a> [reactive 编程] -> pod 'RxSwift', '~> 3.0’</p>    <p>25. <a href="/misc/goto?guid=4959736481907608801" rel="nofollow,noindex">GDPerformanceView</a> [实时 FPS and CPU 用量] -> pod 'GDPerformanceView-Swift', '~> 1.1.0’</p>    <p>26. <a href="/misc/goto?guid=4958851213782329914" rel="nofollow,noindex">Alamofire</a> [网络] -> pod 'Alamofire', '~> 4.3’</p>    <p>27. <a href="/misc/goto?guid=4959730588159370544" rel="nofollow,noindex">SwiftyStoreKit</a> [app 内购] -> pod 'SwiftyStoreKit’</p>    <p>28. <a href="/misc/goto?guid=4958872895331879367" rel="nofollow,noindex">Timepiece</a> [date 帮手] -> pod 'Timepiece’</p>    <p>29. <a href="/misc/goto?guid=4959616324196754050" rel="nofollow,noindex">CryptoSwift</a> [加密] -> pod 'CryptoSwift’</p>    <p>30. <a href="/misc/goto?guid=4959720431241650418" rel="nofollow,noindex">FSCalendar</a> [日历] -> pod 'FSCalendar’</p>    <p>31. <a href="/misc/goto?guid=4959736482553889624" rel="nofollow,noindex">ImageViewer</a> [模仿 推ter 的图片查看器] -> pod 'ImageViewer’</p>    <p>32. <a href="/misc/goto?guid=4958870678635630216" rel="nofollow,noindex">PromiseKit</a> [promises] -> pod 'PromiseKit', '~> 4.0’</p>    <p>33. <a href="/misc/goto?guid=4959556011204963246" rel="nofollow,noindex">Ensembles</a> [Core Data 同步] -> pod 'Ensembles’</p>    <p> </p>    <p> </p>    <p> </p>    <p>来自:http://www.cocoachina.com/ios/20170208/18647.html</p>    <p> </p>