Instance Property

scheme

The scheme. (read-only)

Declaration

var scheme: String? { get }

Discussion

This property contains the scheme. Any percent-encoded characters are not unescaped. For example, in the URL http://www.example.com/index.html, the scheme is http.

The full URL is the concatenation of the scheme, a colon (:), and the value of resourceSpecifier.