This gives you Data back:
let str = "b:0001"
let bytes = str.data(using: .ascii)!
1
solved What is the equivalence in swift 3
This gives you Data back:
let str = "b:0001"
let bytes = str.data(using: .ascii)!
1
solved What is the equivalence in swift 3