this function is supposed to just get a substring but I can't seem to quite get it.
I've tried pretty much all combinations of types but nothing seems to work
Code Causing the error:
let final = temp.substring(with: 9..<11)
all the functions code:
func decodeInput(update: String) -> String {
var temp = String(describing: update)
let final = temp.substring(with: 9..<11)
return String(temp)
}