SwiftBooster
使用 SwiftBooster 提高您的代码性能。将缺失的功能添加到 iOS 框架和 Swift 语言中。到目前为止,Kotlin 的多数优秀特性都已实现。
安装
SwiftBooster 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'SwiftBooster'
速查表
集合
isNotEmpty: Bool
mapIndexed(_:)->[T]
forEachIndexed(_:)
reduceIndexed(_:)->T
reduceRight(_:)->T
reduceRightIndexed(_:)->T
filterNot(_:)->[T]
getOrNull(_:)->T?
getOrElse(_:)->T
Bool
not: Bool
双倍
toString() –> 字符串
toInt() –> 整数
整数
toString() –> 字符串
toInt64() –> Int64
toDouble() –> Double
separateByCharacter(_:) –> String
字符串
isNotEmpty: Bool
isBlank: Bool
isNotBlank: Bool
toInt() –> Int?
toDouble() –> Double?
toBool() –> Bool?
toJsonObject() –> JSONObject?
toJsonArray() –> JSONArray?
作者
Sepehr Behroozi, [email protected]
许可
SwiftBooster 在MIT许可下可用。更多信息请参阅LICENSE文件。