文/Paweł Białecki
译/Mantra
原文:medium.com/app-coder-i…javascript
文末仓库资源地址汇总java
GitHub:github.com/Instagram/I…
react
GitHub:github.com/realm/realm…
ios
在 Swift 中,用来解析 JSON 的绝对王牌。git
转换这个:github
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
}复制代码
转换为:数据库
let json = JSON(data: dataFromNetworking)
if let userName = json[0]["user"]["name"].string {
// Now you got your value
}复制代码
GitHub:github.com/SwiftyJSON/…
编程
Valet 可让你安全地将数据存储在 iOS 或 OS X Keychain 中,而且无需知道 Keychain 是如何工做的。它支持在单个设备上的多个应用程序(同一个开发人员)之间共享数据,也能够在具备 iCloud 的不一样设备之间的同一款应用程序中共享数据。Touch ID 之间也绝对没有问题!json
GitHub:github.com/square/Vale…
swift
GitHub:firebase.google.com/docs/analyt…
GitHub:github.com/facebook/As…
用户安装了你的应用程序,却看到了一个空白的 UITableView。DZNEmptyDataSet 能够经过提供空数据集默认模式来帮助你避免这种空白状况。
使用 Chameleon,你能够节省为应用程序配色而不断修改 RGB 值所浪费的时间,而且不再用担忧你的文本是否能够在应用程序的各类背景颜色可读的问题。
GitHub:github.com/nvzqz/FileK…
SwiftyUserDefaults 使用户默认将表达式 Swifty API 与静态类型的益处相结合。你能够轻松地定义 key,轻松使用类型值,更多的安全性和更方便的编译检查,而且这些更优质服务全是免费的。
GitHub:github.com/radex/Swift…
GitHub:github.com/onevcat/Kin…
GitHub:github.com/lkzhao/Hero
GitHub:github.com/onevcat/Hed…
DeviceKit 是 UIDevice 的值类型替换。轻松获取设备信息和电池电量。
GitHub:github.com/dennisweiss…
一个易于使用的 UITableViewCell 子类,能够实现具备各类转换的可滑动按钮。
littlebitesofcocoa.com/285-generat…
GitHub:github.com/nvzqz/Rando…
ResponseDetective 是一个非插入式框架,用于拦截应用程序和服务器之间的任何用于调试目的的传出请求和传入响应。
www.netguru.co/blog/respon…
GitHub:github.com/netguru/Res…
GitHub:github.com/mamaral/Onb…
GitHub:github.com/Quick/Quick
GitHub:github.com/Quick/Nimbl…
Natalie 生成基于 storyboard 文件的,可以使Storyboards 和 segues 更容易工做的 Swift 代码。生成的文件减小 Strings 做为 Segues 或 Storyboard 标识符的使用。
GitHub:github.com/krzyzanowsk…
GitHub:github.com/ReactiveX/R…
GitHub:github.com/dani-gavril…
www.appcoda.com/alamofire-b…
GitHub:github.com/Alamofire/A…
GitHub:github.com/bizz84/Swif…
在 Swift 中直观的日期处理。
GitHub:github.com/naoty/Timep…
Swift 中实现的加密相关的函数和零件。
GitHub:github.com/krzyzanowsk…
GitHub:github.com/WenchaoD/FS…
高仿 Twitter ImageViewer
GitHub:github.com/MailOnline/…
GitHub:github.com/mxcl/Promis…
GitHub:github.com/drewmccorma…
一、IGListKit[UICollectionView framework] -> pod 'IGListKit', '~> 2.0.0'
二、Realm [mobile database] -> pod 'RealmSwift'
三、Moya [encapsulated network layer] -> pod 'Moya', '8.0.0'
四、SwiftyJSON [JSON parsing] -> pod 'SwiftyJSON'
五、Valet [Keychain helper] -> pod 'Valet'
六、Firebase Analytics [analytics] -> pod 'Firebase/Core'
七、AsyncDisplayKit [asynchronous UI SDK] ->pod 'AsyncDisplayKit'
八、DZNEmptyDataSet[empty state pattern] -> pod 'DZNEmptyDataSet'
九、Chameleon [flat colors framework] -> pod 'ChameleonFramework/Swift', :git => 'https://github.com/ViccAlexander/Chameleon.git'
十、PermissionScope [iOS permissions framework] -> pod 'PermissionScope'
十一、FileKit [file management] -> pod 'FileKit', '~> 4.0.0'
十二、SwiftyUserDefaults [user defaults helper] -> pod 'SwiftyUserDefaults'
1三、Kingfisher [image downloading] -> pod 'Kingfisher', '~> 3.0'
1四、Hero [custom view controller transitions] -> pod 'Hero'
1五、Hedwig [email sending]
1六、DeviceKit [device info] -> pod 'DeviceKit', '~> 1.0'
1七、Charts [well… charts] -> pod 'Charts'
1八、MGSwipeTableCell [swipeable table cells] -> pod 'MGSwipeTableCell'
1九、RandomKit [random numbers generation] -> pod 'RandomKit', '~> 3.0.0'
20、ResponseDetective [debug network requests] -> pod 'ResponseDetective'
2一、Onboard [user onboarding] -> pod 'Onboard'
2二、Quick + Nimble [BDD testing] -> pod 'Quick' pod 'Nimble'
2三、Natalie [code generating from storyboard]
2四、RxSwift [reactive programming] -> pod 'RxSwift', '~> 3.0'
2五、GDPerformanceView [real time FPS and CPU usage] -> pod 'GDPerformanceView-Swift', '~> 1.1.0'
2六、Alamofire [networking] -> pod 'Alamofire', '~> 4.3'
2七、SwiftyStoreKit [In App Purchases] -> pod 'SwiftyStoreKit'
2八、Timepiece [date helper] -> pod 'Timepiece'
2九、CryptoSwift [cryptography] -> pod 'CryptoSwift'
30、FSCalendar [calendar] -> pod 'FSCalendar'
3一、ImageViewer [Twitter inspired image viewer] -> pod 'ImageViewer'
3二、PromiseKit [promises] ->pod 'PromiseKit', '~> 4.0'
3三、Ensembles [Core Data synchronization] -> pod 'Ensembles'