Created
November 10, 2020 12:17
-
-
Save mkeremkeskin/c17f25fe36aea2594357774f255115af to your computer and use it in GitHub Desktop.
This file contains hidden or 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 FilterType: String, BaseSelectionType { | |
case colorDocument | |
case blackAndWhite | |
case colorPhoto | |
case greyscale | |
func getDisplayText(endingText: String) -> String { | |
switch self { | |
case .colorDocument: | |
return Localizable.filterColorDocument + endingText | |
case .blackAndWhite: | |
return Localizable.filterBlackAndWhite + endingText | |
case .colorPhoto: | |
return Localizable.filterColorPhoto + endingText | |
case .greyscale: | |
return Localizable.filterGreyscale + endingText | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment