Skip to content

Instantly share code, notes, and snippets.

@akillamac
Last active October 10, 2020 13:30
Show Gist options
  • Save akillamac/d11a37a34a3419da08396f2b8af144c5 to your computer and use it in GitHub Desktop.
Save akillamac/d11a37a34a3419da08396f2b8af144c5 to your computer and use it in GitHub Desktop.
Data Extension
import Foundation
extension Data {
// transform data to a string
func toString() -> String {
return String(decoding: self, as: UTF8.self)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment