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 | |
| /// Predicatable is the protocol that all predicting objects conform. | |
| public protocol Predicatable: CustomStringConvertible { | |
| /// Returns a Boolean value indicating whether the specified object matches the conditions specified by the predicate. | |
| /// | |
| /// - Parameter object: The object against which to evaluate the predicate. | |
| /// - Returns: `true` if object matches the conditions specified by the predicate, otherwise `false`. | |
| func evaluate(with object: Any?) -> Bool |
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
| sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService |
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 CoreLocation | |
| static func vCardURL(from coordinate: CLLocationCoordinate2D, with name: String?) -> URL { | |
| let vCardFileURL = URL(fileURLWithPath: NSTemporaryDirectory()).appendingPathComponent("vCard.loc.vcf") | |
| let vCardString = [ | |
| "BEGIN:VCARD", | |
| "VERSION:4.0", | |
| "FN:\(name ?? "Shared Location")", | |
| "item1.URL;type=pref:http://maps.apple.com/?ll=\(coordinate.latitude),\(coordinate.longitude)", |
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
| // | |
| // CURLDebug.swift | |
| // | |
| // Created by apple on 02/06/16. | |
| // Copyright © 2016 Rodrigo Reis. All rights reserved. | |
| // | |
| import Foundation | |