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

commit

parent 72521e8d
......@@ -50,21 +50,22 @@ extension Model {
closure()
}
switch button.tag {
case Model.buttonTag.graphs.rawValue:
guard graphsBuilt else { return }
switching(next: .start)
case Model.buttonTag.start.rawValue:
let tag = Model.buttonTag(rawValue: button.tag)
switch tag {
case .graphs:
if graphsBuilt { switching(next: .start) }
case .start:
check(pin: &selected, cl: #colorLiteral(red: 0.1960784314, green: 0.8431372549, blue: 0.2941176471, alpha: 1), {
switching(next: .finish)
}())
case Model.buttonTag.finish.rawValue:
case .finish:
check(pin: &selected, cl: #colorLiteral(red: 0.03921568627, green: 0.5176470588, blue: 1, alpha: 1), {
switching(next: .routecalc)
}())
case Model.buttonTag.clear.rawValue:
case .clear:
switching(next: .graphs)
default: break
default:
break
}
}
}
import Foundation
import MapKit.MKPolyline
class DashLine: MKPolyline {
......
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