Contents

scheme

The scheme subcomponent of the URL.

Declaration

var scheme: String? { get set }

Discussion

The getter for this property removes any percent encoding this component may have (if the component allows percent encoding). Setting this property assumes the subcomponent or component string is not percent encoded and will add percent encoding (if the component allows percent encoding). Attempting to set the scheme with an invalid scheme string will cause an exception.

See Also

Accessing components in native format