filestack/filestack-swift

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

Summary

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

import Foundation

/// Represents an image transform page orientation type.
@objc(FSTransformPageOrientation)
public enum TransformPageOrientation: UInt, CustomStringConvertible {
    /// Portrait
    case portrait
    /// Landscape
    case landscape
}

// MARK: - CustomStringConvertible Conformance

extension TransformPageOrientation {
    /// Returns a `String` representation of self.
    public var description: String {
        switch self {
        case .portrait: return "portrait"
        case .landscape: return "landscape"
        }
    }
}