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 | |
// Question 1 | |
struct Cat { | |
var age: Int | |
} | |
var cat = Cat(age: 5) | |
var fluffyCat = cat | |
fluffyCat.age = 3 |
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 MapKit | |
final class MapKitService { | |
// Map the Apple Category to your own category | |
private let typesToDrink: [MKPointOfInterestCategory] = [.brewery, .cafe, .winery] | |
private let typesToEat: [MKPointOfInterestCategory] = [.foodMarket, .restaurant] | |
func retrieve(from: String, completionBlock: @escaping ([Place]) -> Void) { |