EnumCollection 1.2.0

EnumCollection 1.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Aug 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Meniny.


Downloads

Total26
Week26
Month26

Installs

Apps5
Apps WeekApps This Week 5
powered by Segment

GitHub

Stars5
Watchers2
Forks1
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 49



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 8 with Swift 3

Contribution

You are welcome to fork and submit pull requests.

License

EnumCollection is open-sourced software, licensed under the MIT license.

Usage

import EnumCollection

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

print(SomeEnumType.allCases)
print(SomeEnumType.allValues)
print(SomeEnumType.allValues.rawValues)
print(SomeEnumType.allRaws)
print(SomeEnumType.allContents)
extension UITableViewRowAnimation: EnumCollection {}

let animations = UITableViewRowAnimation.allValues
print(animations)