mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 05:43:37 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
22 lines
690 B
Swift
22 lines
690 B
Swift
final class NavigationInfoArea: AvailableArea {
|
|
override func isAreaAffectingView(_ other: UIView) -> Bool {
|
|
return !other.navigationInfoAreaAffectDirections.isEmpty
|
|
}
|
|
|
|
override func addAffectingView(_ other: UIView) {
|
|
let ov = other.navigationInfoAreaAffectView
|
|
let directions = ov.navigationInfoAreaAffectDirections
|
|
addConstraints(otherView: ov, directions: directions)
|
|
}
|
|
|
|
override func notifyObserver() {
|
|
MWMNavigationDashboardManager.updateNavigationInfoAvailableArea(areaFrame)
|
|
}
|
|
}
|
|
|
|
extension UIView {
|
|
var navigationInfoAreaAffectDirections: MWMAvailableAreaAffectDirections { return [] }
|
|
|
|
var navigationInfoAreaAffectView: UIView { return self }
|
|
}
|