ViewController.swift 579 Bytes
Newer Older
asahiocean's avatar
1  
asahiocean committed
1
import UIKit
asahiocean's avatar
asahiocean committed
2
import MapKit
asahiocean's avatar
1  
asahiocean committed
3

asahiocean's avatar
asahiocean committed
4
5
// Тестовое задание «СЗ РЦАИ» iOS Developer

asahiocean's avatar
asahiocean committed
6
7
8
9
10
11
12
13
14
15
class ViewController: UIViewController, MKMapViewDelegate {
    
    var mapView: MapView!
    
    /// Button for building graphs and routes
    weak var mainButton: UIButton!
    weak var clearButton: UIButton!
    
    var buttonKVO: NSKeyValueObservation!
    var pinsKVO: NSKeyValueObservation!
asahiocean's avatar
2    
asahiocean committed
16
    
asahiocean's avatar
1  
asahiocean committed
17
18
    override func viewDidLoad() {
        super.viewDidLoad()
asahiocean's avatar
asahiocean committed
19
20
21
        mapView = .init(frame: view.frame)
        mapView.delegate = self
        view.addSubview(mapView)
asahiocean's avatar
1  
asahiocean committed
22
23
    }
}