Latest | 0.0.9 |
---|---|
Homepage | https://github.com/spirit-jsb/JSSwifter |
License | MIT |
Platforms | ios 9.0, requires ARC |
Authors |
示例代码
如需要运行示例项目,请 clone
当前 repo
到本地,然后从根目录下执行 JSSwifter.xcodeproj
,打开项目后切换 Scheme
至 JSSwifter-Tests
,CMD+U
即可运行测试示例代码。
基本使用
CoreGraphics Extensions
CoreLocation Extensions
Foundation Extensions
Array Extensions
Bool Extensions
Calendar Extensions
Character Extensions
Collection Extensions
Comparable Extensions
Data Extensions
Date Extensions
Dictionary Extensions
DispatchQueue Extensions
Double Extensions
FileManager Extensions
Float Extensions
Int Extensions
Locale Extensions
NSAttributedString Extensions
String Extensions
StringProtocol Extensions
UserDefaults Extensions
MapKit Extensions
QuartzCore Extensions
UIKit Extensions
UIApplication Extensions
UIBezierPath Extensions
UIButton Extensions
UICollectionView Extensions
UIColor Extensions
UIDevice Extensions
UIFont Extensions
UIGestureRecognizer Extensions
UIImage Extensions
UIScrollView Extensions
UIStackView Extensions
UITableView Extensions
UIView Extensions
UIViewController Extensions
基本使用方法请参考测试示例代码。
Swift 版本依赖
Swift | JSSwifter |
---|---|
5.0 | >= 0.0.1 |
限制条件
- iOS 9.0 and Up
- Xcode 10.0 and Up
- Swift Version = 5.0
安装
JSSwifter
可以通过 CocoaPods 获得。安装只需要在你项目的 Podfile
中添加如下字段:
pod 'JSSwifter', '~> 0.0.12'
更新计划
CoreGraphics
- [x] CGColor
- [x] CGFloat
- [x] CGPoint
- [x] CGSize
CoreLocation
- [x] CLLocation
Foundation
- [x] Array
- [x] Bool
- [x] Calendar
- [x] Character
- [x] Collection
- [x] Comparable
- [x] Data
- [x] Date
- [x] Dictionary
- [x] DispatchQueue
- [x] Double
- [x] FileManager
- [x] Float
- [x] Int
- [x] Locale
- [x] NSAttributedString
- [x] String
- [x] StringProtocol
- [x] UserDefaults
MapKit
- [x] MKMapView
QuartzCore
- [x] CALayer
UIKit
- [x] UIApplication
- [x] UIBezierPath
- [x] UIButton
- [x] UICollectionView
- [x] UIColor
- [x] UIDevice
- [x] UIFont
- [x] UIGestureRecognizer
- [x] UIImage
- [x] UIScrollView
- [x] UIStackView
- [x] UITableView
- [x] UIView
- [x] UIViewController
作者
spirit-jsb, [email protected]
许可文件
JSSwifter
可在 MIT
许可下使用,更多详情请参阅许可文件。
Latest podspec
{ "name": "JSSwifter", "version": "0.0.9", "summary": "u4e00u4e2au7b80u4fbfu6613u7528u7684 Swift Extension u5e93u3002", "description": "u4e00u4e2au7b80u4fbfu6613u7528u7684 Swift Extension u5e93uff0cu65b9u4fbfu5febu6377u7684u63d0u4f9bu9879u76eeu4e2du5e38u7528u7684 Extensionu3002", "homepage": "https://github.com/spirit-jsb/JSSwifter", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "spirit-jsb": "[email protected]" }, "swift_versions": "5.0", "platforms": { "ios": "9.0" }, "source": { "git": "https://github.com/spirit-jsb/JSSwifter.git", "tag": "0.0.9" }, "source_files": "Sources/**/*.swift", "requires_arc": true, "swift_version": "5.0" }
Thu, 30 May 2019 10:41:05 +0000