Created
November 10, 2020 12:12
-
-
Save mkeremkeskin/06e10b890710da9a32388883aca5ffb4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public enum SelectionType { | |
case filter | |
case size | |
} | |
public protocol BaseSelectionType { | |
var selectionType: SelectionType { get } | |
} | |
public enum FilterType: String, BaseSelectionType { | |
case colorDocument | |
case blackAndWhite | |
case colorPhoto | |
case greyscale | |
public var selectionType: SelectionType { | |
return SelectionType.filter | |
} | |
} | |
public enum SizeType: String, BaseSelectionType { | |
case originalSize | |
case a4 | |
case a5 | |
case bCard | |
case letter | |
case legal | |
public var selectionType: SelectionType { | |
return SelectionType.size | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment