diff --git a/Library/Sources/Public/Protocols/Locationable.swift b/Library/Sources/Public/Protocols/Locationable.swift new file mode 100644 index 0000000..cb14d55 --- /dev/null +++ b/Library/Sources/Public/Protocols/Locationable.swift @@ -0,0 +1,21 @@ +import Foundation + +public protocol Locationable { + + // MARK: Properties + + var location: String? { get set } + +} + +// MARK: - Locationable+Properties + +public extension Locationable { + + // MARK: Properties + + var locationURL: URL? { + location.flatMap { URL(fileURLWithPath: $0) } + } + +}