UrlConvertible
public protocol UrlConvertible
Any entity implementing this protocol declares that it is able to possibly represent itself as a url. The conversion to this url may fail, however.
-
Returns
self
as url if possible ornil
otherwise.Declaration
Swift
var url: URL? { get }