URLConvertible
public protocol URLConvertible
Represents a type which could be converted to a URL.
-
Returns a
URLor throws if an error was encountered.Throws
Error thrown when the convertion fails.Declaration
Swift
func asURL() throws -> URLReturn Value
The
URL.
URLConvertible Protocol Reference