// [string to data 형변환]

let data = "hello".data(using: .utf8)!

 

// [data to string 형변환]

String(decoding: data, as: UTF8.self)

+ Recent posts