Skip to content

Instantly share code, notes, and snippets.

View lastMove's full-sized avatar

Jason Ak lastMove

  • amo
  • Just On Your Left
View GitHub Profile
//
// Created by Tom Baranes on 13/02/16.
// Copyright © 2016 Jake Lin. All rights reserved.
//
import UIKit
import Foundation
public enum ColorType: String {
case FlatEmerland
@lastMove
lastMove / MaskType.swift
Created June 27, 2016 17:22
Simpler implementation
// IBEnum.swift
import Foundation
public protocol IBEnum {
init?(string:String)
}
@lastMove
lastMove / MaskType.swift
Last active June 28, 2016 07:19
Without literal string
// ---------------------------------------- IBEnum.swift -----------------------------------------
import Foundation
import UIKit
public enum MaskType: IBEnum {
case circle
case polygon(sides:Int?)
case star(points:Int?)
case triangle