var url: URL?
A URL created from the components.
これら構成要素から作成されるあるURL。
var string: String?
A URL derived from the components object, in string form.
構成要素オブジェクトから引き出されるURL、文字列形式で。
Availability 有効性
Technology
If the NSURLComponents has an authority component (user, password, host or port) and a path component, then the path must either begin with “/” or be an empty string. NSURLComponentsがauthority構成要素(ユーザ、パスワード、ホスト、またはポート)とパス構成要素を持つならば、そのときパスは “/” で始まるかまたは空の文字列かどちらかでなければなりません。 If the NSURLComponents does not have an authority component (user, password, host or port) and has a path component, the path component must not start with “//”. If those requirements are not met, nil is returned.
var url: URL?
var string: String?