Skip to content

Instantly share code, notes, and snippets.

View akillamac's full-sized avatar

Renaud Bouissière akillamac

View GitHub Profile
@akillamac
akillamac / Data+Extension.swift
Last active October 10, 2020 13:30
Data Extension
import Foundation
extension Data {
// transform data to a string
func toString() -> String {
return String(decoding: self, as: UTF8.self)
}
}