https://github.com/meniny/enumcollection
π
An Extension for Swift Enum Type
https://github.com/meniny/enumcollection
enum swift
Last synced: 11 months ago
JSON representation
π An Extension for Swift Enum Type
- Host: GitHub
- URL: https://github.com/meniny/enumcollection
- Owner: Meniny
- License: mit
- Created: 2017-08-11T04:09:25.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-04-16T04:09:14.000Z (about 7 years ago)
- Last Synced: 2025-06-12T00:06:24.828Z (about 1 year ago)
- Topics: enum, swift
- Language: Swift
- Size: 251 KB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
## What's this?
`EnumCollection` is an Extension for Swift Enum Type.
## Requirements
* iOS 8.0+
* macOS 10.10+
* watchOS 2.0+
* tvOS 9.0+
* Xcode 9 with Swift 4
## Installation
#### CocoaPods
```ruby
pod 'EnumCollection'
```
## Contribution
You are welcome to fork and submit pull requests.
## License
`EnumCollection` is open-sourced software, licensed under the `MIT` license.
## Usage
```swift
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)
```