ViewController.swift 649 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
class ViewController: UIViewController {

asahiocean's avatar
asahiocean committed
8
9
10
11
12
13
14
15
    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
asahiocean committed
22
23
24
25
26

        mapView.model.delegate = self
        
        buttonsSetup()
        pinsKVOFunc()
asahiocean's avatar
1  
asahiocean committed
27
28
    }
}