Skip to content

Instantly share code, notes, and snippets.

@mkeremkeskin
Created November 10, 2020 12:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkeremkeskin/c17f25fe36aea2594357774f255115af to your computer and use it in GitHub Desktop.
Save mkeremkeskin/c17f25fe36aea2594357774f255115af to your computer and use it in GitHub Desktop.
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