//Input Format : String "0x(16진수 RGB색상 값)" let input = "0x554433"//"0x13123ac" //https://stackoverflow.com/questions/27189338/swift-native-functions-to-have-numbers-as-hex-strings // Int(_, radix: ) can't deal with the '0x' prefix. NSScanner can handle hex // with or without the '0x' prefix let scanner = Scanner(string: input) var value: UInt64 = 0 if scanner.scanHexInt64(&value) { // value가 hex..