URLComponents
public extension URLComponents
-
Assumes the provided string contains a valid URL. Recommended usage with static assembled URLs; for dynamic generated ones use failable init to avoid runtime crashes.
Declaration
Swift
init(validURL: String)
Parameters
validURL
A valid URL according to RFC 1738