Skip to content

Instance MethodFoundationEssentials

base64EncodedString(options:)

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
Returns a Base-64 encoded string.
func base64EncodedString(options: Data.Base64EncodingOptions = []) -> String

Parameters

options

The options to use for the encoding. Default value is [].

Return Value

The Base-64 encoded string.