1
0
mirror of https://github.com/metabolist/metatext synced 2024-12-29 03:01:07 +01:00
metatext-app-ios-iphone-ipad/Extensions/URL+Extensions.swift
2021-02-08 12:47:02 -08:00

16 lines
312 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
extension URL {
var isHTTPURL: Bool {
guard let scheme = scheme else { return false }
return scheme == "http" || scheme == "https"
}
}
extension URL: Identifiable {
public var id: String { absoluteString }
}