常见工具总结
日志类
CocoaLumberjack
支持OC & Swift, 分级别的一个日志系统,最主要的是支持写入文件,然后导出文件就可以查看日志信息。DebugWindow
支持OC,一个轻量级的基于Window的调试工具HCDeviceConsole
支持OC, 这也是一个很轻量级的Log工具,就引入两个文件,然后一句话开启服务,就可以把所有的NSLog日志都输出到Window上。
网络类
AFNetworking
这个是OC版本的,其Swift版本叫AlamofireAlamofire
这个是AFNetworking的Swift版本,很好用
数据解析
SwiftyJSON
The better way to deal with JSON data in Swift. 承接解析Alamofire返回来的JSON数据,好用的不得了。算是绝配。ObjectMapper
模型数据转换工具 JSON –> Model, Model –> JSON, ObjectMapper + Alamofire
布局
SnapKit
A Swift Autolayout DSL for iOS & OS X (http://snapkit.io)
Masonry
OC版本的, 也是由SnapKit人马维护的的。LayoutKit
LayoutKit is a fast view layout library for iOS, macOS, and tvOS. http://layoutkit.org, 这是LinkedIn维护的一个框架SDAutoLayout
一行代码搞定自动布局!支持Cell和Tableview高度自适应,Label和ScrollView内容自适应,致力于做最简单易用的AutoLayout库。
TableViewCell
- UITableView-FDTemplateLayoutCell
百度ForkingDog团队维护的一个基于Tableview的cell布局,性能效果特别好。
Refresh
MJRefresh
An easy way to use pull-to-refresh. 暂时只支持OCDGElasticPullToRefresh
Swift版本 Elastic pull to refresh for iOS developed in SwiftCRRefresh
Swift版本 CRRefresh an easy way to use pull-to-refresh, If you want to customize its UI style, you just need conform the specified protocol. We will not regularly updated some nice dynamic effect, at the same time also welcome to write to me.
ScrollView
- WRCycleScrollView
Swift版本, 无限循环轮播
Slide Menu
- SlideMenuControllerSwift
iOS Slide Menu View based on Google+, iQON, Feedly, Ameba iOS app. It is written in pure swift.
Message Tips
SwiftMessages
A very flexible message bar for iOS written in Swift.SwiftNotice
GUI library for displaying various popups (HUD), written in pure Swift.PKHUD
A Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8.
Progress
KYCircularProgress
Flexible progress bar written in Swift.MBProgressHUD
只支持OCSVProgressHUD
A clean and lightweight progress HUD for your iOS and tvOS app. https://github.com/SVProgressHUD/
Support both OC and SwiftNJKWebViewProgress
UIWebView progress interface, Support Objective-C
Charts
PNChart
A simple and beautiful chart lib used in Piner and CoinsMan for iOS in Objective-CXYPieChart
A simple and animated Pie Chart for your iOS app in Objectiv-C
Search
- Graph
Graph is a semantic database that is used to create data-driven applications. http://graphswift.com
Database
fmdb
A Cocoa / Objective-C wrapper around SQLitecanDB.swift
A framework that works like a nonSQL database but runs on top of sqlite(FMDB)
AlertView
SCLAlertView
Beautiful animated Alert View. Written in OC
SCLAlertView-Swift
Beautiful animated Alert View. Written in SwiftHarpy
Notify users when a new version of your app is available and prompt them to upgrade. http://www.sabintsev.com
Siren
Swift 版本 Notify users when a new version of your app is available and prompt them to upgrade. http://sabintsev.com/Sirenios-custom-alertview
Custom UIAlertView. Continue adding images and UIViews to dialogs in iOS7+. Support OCPresentr
Swift wrapper for custom ViewController presentations on iOS
Animation
RollerCoasterAnimation
iOS开发进阶 - CAKeyframeAnimation实现过山车动画Spring
A library to simplify iOS animations in Swift. http://designcode.ioHero
Elegant transition library for iOS & tvOSMaterial
Material Design library used to create beautiful applications. http://materialswift.com