Open Classswift 6.0.3Foundation
NSURLComponents
class NSURLComponents
class NSURLComponents
import Foundation
class NSObject
The root class of most Foundation class hierarchies.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol NSCopying
The NSCopying
protocol declares a method for providing functional copies of an object. The exact meaning of “copy” can vary from class to class, but a copy must be a functionally independent object with values identical to the original at the time the copy was made.
protocol NSObjectProtocol : AnyObject
The NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
override init()
init?(string URLString: String)
init?(url: URL, resolvingAgainstBaseURL resolve: Bool)
var fragment: String? { get set }
override var hash: Int { get }
var host: String? { get set }
var password: String? { get set }
var path: String? { get set }
var percentEncodedFragment: String? { get set }
var percentEncodedHost: String? { get set }
var percentEncodedPassword: String? { get set }
var percentEncodedPath: String? { get set }
var percentEncodedQuery: String? { get set }
var percentEncodedQueryItems: [URLQueryItem]? { get set }
var percentEncodedUser: String? { get set }
var port: NSNumber? { get set }
var query: String? { get set }
var queryItems: [URLQueryItem]? { get set }
var rangeOfFragment: NSRange { get }
var rangeOfHost: NSRange { get }
var rangeOfPassword: NSRange { get }
var rangeOfPath: NSRange { get }
var rangeOfPort: NSRange { get }
var rangeOfQuery: NSRange { get }
var rangeOfScheme: NSRange { get }
var rangeOfUser: NSRange { get }
var scheme: String? { get set }
var string: String? { get }
var url: URL? { get }
var user: String? { get set }
override func copy() -> Any
func copy(with zone: NSZone? = nil) -> Any
override func isEqual(_ object: Any?) -> Bool
func url(relativeTo baseURL: URL?) -> URL?