Verified Commit f9ad9a81 authored by asahiocean's avatar asahiocean 🚀
Browse files

commit

parent 9aa4977f
......@@ -2,7 +2,7 @@ import UIKit
extension ViewController {
internal func buttonsSetup() {
guard let tracker = mapView.model.trackerButton(mv: mapView) else { fatalError("Solve the button problem") }
guard let tracker = mapView.model.trackerButton(with: mapView) else { fatalError("Solve the button problem") }
view.addSubview(tracker)
buttonKVO = mapView.model.observe(\.mainButton, options: [.initial,.new], changeHandler: { obj, change in
......
......@@ -2,7 +2,7 @@ import UIKit
import MapKit
extension Model {
func trackerButton(mv mapView: MKMapView?) -> UIButton? {
func trackerButton(with mapView: MKMapView?) -> UIButton? {
guard let mapView = mapView else { return nil }
let sqroot = mapView.frame.width.squareRoot()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment