JSSwifter
示例代码
如需要运行示例项目,请 clone 当前 repo 到本地,然后从根目录下执行 JSSwifter.xcodeproj,打开项目后切换 Scheme 至 JSSwifter-Tests,CMD+U 即可运行测试示例代码。
基本使用
CoreGraphics Extensions
CoreLocation Extensions
Foundation Extensions
Array ExtensionsBool ExtensionsCalendar ExtensionsCharacter ExtensionsCollection ExtensionsComparable ExtensionsData ExtensionsDate ExtensionsDictionary ExtensionsDispatchQueue ExtensionsDouble ExtensionsFileManager ExtensionsFloat ExtensionsInt ExtensionsLocale ExtensionsUserDefaults Extensions
MapKit Extensions
UIKit 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.9'更新计划
CoreGraphics
- CGColor
- CGFloat
- CGPoint
- CGSize
CoreLocation
- CLLocation
Foundation
- Array
- Bool
- Calendar
- Character
- Collection
- Comparable
- Data
- Date
- Dictionary
- DispatchQueue
- Double
- FileManager
- Float
- Int
- Locale
- NSAttributedString
- String
- UserDefaults
MapKit
- MKMapView
QuartzCore
- CALayer
UIKit
- UIApplication
- UIButton
- UICollectionView
- UIColor
- UIDevice
- UIFont
- UIGestureRecognizer
- UIImage
- UIScrollView
- UIStackView
- UITableView
- UIView
- UIViewController
作者
spirit-jsb, [email protected]
许可文件
JSSwifter 可在 MIT 许可下使用,更多详情请参阅许可文件。