filestack/filestack-swift

View on GitHub
Sources/FilestackSDK/Public/Enums/TransformColorSpace.swift

Summary

Maintainability
A
35 mins
Test Coverage
//
//  TransformColorSpace.swift
//  FilestackSDK
//
//  Created by Ruben Nine on 7/13/17.
//  Copyright © 2017 Filestack. All rights reserved.
//

import Foundation

/// Represents an image transform color space type.
@objc(FSTransformColorSpace)
public enum TransformColorSpace: UInt {
    /// RGB
    case rgb

    /// CMYK
    case cmyk

    /// Input
    case input
}

// MARK: - CustomStringConvertible Conformance

extension TransformColorSpace: CustomStringConvertible {
    /// Returns a `String` representation of self.
    public var description: String {
        switch self {
        case .rgb: return "rgb"
        case .cmyk: return "cmyk"
        case .input: return "input"
        }
    }
}