Created
October 19, 2024 15:51
-
-
Save lucianoschillagi/54eaaa7e83d18d159e68f1beb45934f0 to your computer and use it in GitHub Desktop.
percentage graphic representation
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
import Foundation | |
enum Percentaje: String { | |
case ten = "◉ ○ ○ ○ ○ ○ ○ ○ ○ ○" | |
case twenty = "◉ ◉ ○ ○ ○ ○ ○ ○ ○ ○" | |
case thirty = "◉ ◉ ◉ ○ ○ ○ ○ ○ ○ ○" | |
case fourty = "◉ ◉ ◉ ◉ ○ ○ ○ ○ ○ ○" | |
case fifty = "◉ ◉ ◉ ◉ ◉ ○ ○ ○ ○ ○" | |
case sixty = "◉ ◉ ◉ ◉ ◉ ◉ ○ ○ ○ ○" | |
case seventy = "◉ ◉ ◉ ◉ ◉ ◉ ◉ ○ ○ ○" | |
case eighty = "◉ ◉ ◉ ◉ ◉ ◉ ◉ ◉ ○ ○" | |
case ninety = "◉ ◉ ◉ ◉ ◉ ◉ ◉ ◉ ◉ ○" | |
case hundred = "◉ ◉ ◉ ◉ ◉ ◉ ◉ ◉ ◉ ◉" | |
var graphicRepresentation: String { self.rawValue } | |
} | |
let selectedPercentaje = Percentaje.hundred | |
print(selectedPercentaje.graphicRepresentation) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment