I've got a function that parses some hexadecimal data, however, I have to substring the data manually as well as convert it to bytes. The following is what I have:
public func parseHex(hex: String) {
self.address = UInt8(hex.substring(0...4))
}
Where self.address is a UInt8 field. The error I'm getting is:
Argument labels '(_:)' do not match any overloads
How can I fix this?