EnumCollection
is an Extension for Swift Enum Type.
- iOS 8.0+
- macOS 10.10+
- watchOS 2.0+
- tvOS 9.0+
- Xcode 9 with Swift 4
pod 'EnumCollection'
You are welcome to fork and submit pull requests.
EnumCollection
is open-sourced software, licensed under the MIT
license.
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)