co-maps/iphone/Maps/Classes/CustomViews/NavigationDashboard/Views/RoutePreview/RouteStartButton.swift

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
583 B
Swift
Raw Normal View History

2025-11-22 13:58:55 +01:00
@objc(MWMRouteStartButton)
final class RouteStartButton: UIButton {
@objc func statePrepare() {
isHidden = false
isEnabled = false
}
@objc func stateError() {
isHidden = true
isEnabled = false
}
@objc func stateReady() {
isHidden = false
isEnabled = true
}
@objc func stateHidden() {
isHidden = true
isEnabled = true
}
override func applyTheme() {
super.applyTheme()
setBackgroundImage(UIColor.linkBlue().getImage(), for: .normal)
setBackgroundImage(UIColor.linkBlueHighlighted().getImage(), for: .highlighted)
}
}