base64EncodedString(options:)
Creates a Base64 encoded string from the string using the given options.
Declaration
func base64EncodedString(options: NSData.Base64EncodingOptions = []) -> StringParameters
- options:
A mask that specifies options for Base-64 encoding the data. Possible values are given in Base64encodingoptions.
Return Value
A Base64 encoded string.
Discussion
By default, no line endings are inserted.
If you specify one of the line length options (lineLength64Characters or lineLength76Characters) but don’t specify the kind of line ending to insert, the default line ending is Carriage Return + Line Feed.