Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Base64 Encoding for Data value #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func determineTypeAndReturnString(value: Any?) -> String {
if let unwrappedString = String(data: (unwrappedValue as! Data), encoding: String.Encoding.utf8) {
return unwrappedString
} else {
return "[Warning] Encoding Shenanigans"
return (unwrappedValue as! Data).base64EncodedString()
}
} else if unwrappedValue is NSDate {
let dateFMT = DateFormatter()
Expand Down