enum PostType {
case text(text: String)
case image(image: UIImage, legend: String)
case video(url: URL, duration: TimeInterval)
}
struct Post {
let date: Date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Contacts | |
import MapKit | |
// MARK: - Distatnce formatter | |
fileprivate let _distanceFormatter: MKDistanceFormatter = { | |
let formatter = MKDistanceFormatter() | |
return formatter | |
}() |
NewerOlder