Latest 1.4.0
Homepage https://github.com/Meniny/EnumCollection
License MIT
Platforms ios 8.0, osx 10.10, tvos 9.0, watchos 2.0
Frameworks Foundation
Authors




VersionAuthorBuild PassingSwift
PlatformsMIT
CocoapodsCarthageSPM

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

pod 'EnumCollection'

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
}

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

let raws = SomeEnumType.allRaws
print(raws)

Latest podspec

{
    "name": "EnumCollection",
    "version": "1.4.0",
    "summary": "An Extension for Swift Enum Type",
    "description": "EnumCollection is an Extension for Swift Enum Type.",
    "homepage": "https://github.com/Meniny/EnumCollection",
    "license": "MIT",
    "authors": {
        "Elias Abel": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Meniny/EnumCollection.git",
        "tag": "1.4.0"
    },
    "social_media_url": "https://meniny.cn/",
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "5"
    },
    "swift_versions": "5",
    "platforms": {
        "ios": "8.0",
        "osx": "10.10",
        "tvos": "9.0",
        "watchos": "2.0"
    },
    "source_files": "EnumCollection/**/*.{h,swift}",
    "public_header_files": "EnumCollection/**/*{.h}",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This