Refactoring & Enhancements
Kudos to the user Leo from SO:
- Favor
Data(string.utf8)
overstring.data(using: .utf8)
- Remove
stringToDataFailed
error
Also added a Playground
to make it easier to see the code in action.
Kudos to the user Leo from SO:
Data(string.utf8)
over string.data(using: .utf8)
stringToDataFailed
errorAlso added a Playground
to make it easier to see the code in action.