Skip to content

Latest commit

 

History

History
127 lines (120 loc) · 10.5 KB

2.5libos.md

File metadata and controls

127 lines (120 loc) · 10.5 KB

Swift第三方库 - 系统功能API封装

日期及时间

  • Each:优雅的时钟接口,Elegant ⏱ interface for Swift apps
  • GrandTime:一个简单的,用户友好的同时也很强力的时间工具,用来代替NSDate,它提供了用户友好的,方便的简单的API,同时还有一个弱Timer,用来代替NSTimer。A Powerful NSDate replacement
  • MGEDateFormatter:NSDate 和 NSString 双向转换工具,便于存储和传输日期数据。A handy API to convert NSDate to NSString and back written in swift
  • Punctual.swift:扩展了 Int、NSDateComponents、NSDate 和 NSCalendarUnit,可以方便的进行日期计算。Swift dates, more fun.
  • SwiftDate:Swift中的日期处理库,以及简单教程
  • SwiftDate:NSDate封装,Easy NSDate Management in Swift 2.0
  • SwiftMoment:封装了 NSDate 和 NSTimeInterval,可以帮助你轻松计算时间日期。A time and calendar manipulation library for iOS 9, OS X 10.10 and Xcode 7 written in Swift 2
  • TrueTime.swift:提供不受外部时钟设置影响的应用内基准时钟,Get the true current time impervious to device clock time changes. (SNTP library for Swift)

日志&调试

  • Assert:这个仓库包含一组断言功能,你可以在你的测试中使用,作为一个断言的补全。A collection of convenient assertions for Swift testing
  • Atlantis:更强大友好(无关类型)的日志输出工具类,A powerful input-agnostic swift logging framework made to speed up development with maximum readability.
  • Dotzu:显示使用应用时的日志,网络请求,设备信息,崩溃日志。In-App iOS Debugging Tool With Enhanced Logging, Networking Info, Crash reporting And More.
  • Duration:加timestamp,A simple Swift package for measuring and reporting the time taken for operations
  • Evergreen:自然风格的log类库,Most natural Swift logging
  • JustLog:支持控制台文件和远程Logstash的日志库,JustLog brings logging on iOS to the next level. It supports console, file and remote Logstash logging via TCP socket with no effort. Support for logz.io available.
  • Log:灵活、易用、可定制输出格式和主题风格的日志类,A Swift logger with customizable themes and formatters
  • SwiftyBeaver:一个日志输出库,Colorful, lightweight & fast logging in Swift2
  • Willow:Willow is a powerful, yet lightweight logging library written in Swift.

GCD和异步调度

  • AlecrimAsyncKit:异步执行框架,Bringing async and await to Swift world with some flavouring.
  • Async:异步库,深入理解 GCD 和异步
  • Async:另一个异步库! :-)
  • AsyncTask:类似 async function 的 Swift 异步编程库,An asynchronous programming library for Swift
  • Dispatch:简单、直观地封装使用 GCD 小类库,Just a tiny library to make using GCD easier and intuitive
  • Do.this:快速异步助手,Do.this is a Swift 3 quick async helper inspired by node.js Async
  • GCDTimer:基于 GCD 实现的计时器,Well-tested GCD Timer in Swift
  • Overdrive:专注于类型安全、并发和多线程的快速、专业的异步任务库,Fast async task based Swift framework with focus on type safety, concurrency and multi threading
  • Run:使用 Swift 封装 GCD,A Swift Wrapper for Grand Central Dispatch (GCD) Framework that supports method chaining
  • Threader:更适合 Swift 的 GCD 封装,Pretty GCD calls and easier code execution.

手势

  • mime:手势识别 API 再封装库,相对于系统缺省更精简、直观,gesture recognizers for swift
  • Sensitive:一套使用更简单、直观的手势识别库,Fresh look at work with gestures in Swift.
  • Tactile:手势识别,The Swift way to add UIGestureRecognizer and to react to UIControlEvents

本地化

  • Hodor:Hodor 是一套可让你的应用快速支持本地化的解决方案, 允许你在应用内直接更改应用语言而无需退出应用, 类似微信
  • Localize-Swift:国际化及本地化字符串框架支持类库。Swift 2.0 friendly localization and i18n with in-app language switching

权限请求&安全

  • arek:整洁并便于使用的各种iOS许可的封装,AREK is a clean and easy to use wrapper over any kind of iOS permission.
  • KeychainAccess:简单的Keychain封装库,Simple Swift wrapper for Keychain that works on iOS and OS X
  • keychain-swift:Keychain 辅助函数,Helper functions for saving text in Keychain securely for iOS, OS X, tvOS and watchOS.
  • PAPermissions:使权限请求及设置更透明的自定义权限设置组件,A unified API to ask for permissions on iOS
  • PermissionScope:预询问用户系统权限的友好体验,Intelligent iOS permissions UI and unified API
  • Permission:统一的API请求iOS本地设备及资源权限类库,A unified API to ask for permissions on iOS。它有一个绑定RxSwift的版本RxPermission:自定义弹出界面,对iOS 8引入的Custom View Controller Presentation 做了封装,可以更轻松地创建弹出界面。Wrapper for custom ViewController presentations in iOS 8+
  • SecrecySwift:通过包装 CommonCrypto 和 Security.framework,实现 Swift 下的摘要方法/AES/RSA加密和签名

其他功能API封装

  • BluetoothKit:封装后的更易用蓝牙库,Easily communicate between iOS/OSX devices using BLE
  • CDAlertView:使用简洁、可定制 Alert 组件,Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift 3
  • Cleanse:支付库,功能和 PaymentKit 类似。除了基础的支付信息验证之外还集成了一些第三方框架,比如 CardIO,帮你实现支付功能。Lightweight Swift Dependency Injection Framework
  • Device:可以非常方便的获取设备型号和屏幕尺寸
  • DeviceKit:相对 UIDevice 更易用、功能也更丰富的 DeviceKit 工具库,DeviceKit is a value-type replacement of UIDevice.
  • IAPHelper开源了自己封装 Mac In-App Purchase 的 Swift 库: IAPHelper
  • PathKit:包含各种常用的路径和文件处理函数
  • PatronKit:为增加内购和赞助的库,A framework to add patronage to your apps.
  • Prephirences:管理应用配置选项,Prephirences is a Swift library that provides useful protocols and convenience methods to manage application preferences, configurations and app-state.
  • Presentr:ViewController的封装。Swift wrapper for custom ViewController presentations on iOS
  • R.swift:Get strong typed, autocompleted resources like images, fonts and segues in Swift projects,有介绍R.swift:以一种优雅安全的方式使用资源文件
  • Reusable:利用protocol extension结合泛型提供了一个优雅的方案来dequeueReusableCell。参考:swift标配开源库:Reusable-让你放肆的dequeueReusableCell
  • SwiftyStoreKit:各种购买付款封装库,Lightweight In App Purchases Swift framework for iOS 8.0+ and OSX 9.0+
  • ZRNotify:把通知的使用方式变的更简洁,deal with notification in chain。参考解读iOS Notification框架ZRNotify