EnumCollection 1.4.0

EnumCollection 1.4.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布日期最后发布2019年4月
SPM支持SPM

Meniny维护。




Version Author Build Passing Swift
Platforms MIT
Cocoapods Carthage SPM

介绍

这是什么?

EnumCollection是一个针对Swift枚举类型的扩展。

要求

  • iOS 8.0+
  • macOS 10.10+
  • watchOS 2.0+
  • tvOS 9.0+
  • Xcode 9与Swift 4

安装

cocoa pods

pod 'EnumCollection'

贡献

欢迎您进行Fork并提交Pull Request。

许可证

EnumCollection 是一个开源软件,按照 MIT 许可证授权。

使用

import EnumCollection

public enum SomeEnumType: Int, EnumCollection {
    case a, b, c
}

for s in SomeEnumType.allValues {
    print(s.rawValue)
}

let raws = SomeEnumType.allRaws
print(raws)