colibri/Library/Sources/Public/Protocols/Locationable.swift

22 lines
327 B
Swift
Raw Normal View History

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) }
}
}