ViewController.swift 647 Bytes
Newer Older
asahiocean's avatar
1  
asahiocean committed
1
2
import UIKit

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

asahiocean's avatar
asahiocean committed
5
class ViewController: UIViewController {
asahiocean's avatar
asahiocean committed
6
    
asahiocean's avatar
asahiocean committed
7
8
9
10
11
12
13
14
    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
15
    
asahiocean's avatar
1  
asahiocean committed
16
17
    override func viewDidLoad() {
        super.viewDidLoad()
asahiocean's avatar
asahiocean committed
18
19
20
        mapView = .init(frame: view.frame)
        mapView.delegate = self
        view.addSubview(mapView)
asahiocean's avatar
asahiocean committed
21
        
asahiocean's avatar
asahiocean committed
22
23
24
25
        mapView.model.delegate = self
        
        buttonsSetup()
        pinsKVOFunc()
asahiocean's avatar
1  
asahiocean committed
26
27
    }
}