/
githubmirror
/
omim
Обзор
Документация
Войти
/
githubmirror
/
omim
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
iphone/Maps/UI/AvailableArea/SideButtonsArea.swift
23 строки
706 B
Ilya Grechuhin
[iphonex] [ios] Updated available areas estimations.
10 янв 2018, 17:41
10 янв 2018, 17:41
221e79a
Код
Авторство
О чём код?
final class SideButtonsArea: AvailableArea { override var deferNotification: Bool { return false } override func isAreaAffectingView(_ other: UIView) -> Bool { return !other.sideButtonsAreaAffectDirections.isEmpty } override func addAffectingView(_ other: UIView) { let ov = other.sideButtonsAreaAffectView let directions = ov.sideButtonsAreaAffectDirections addConstraints(otherView: ov, directions: directions) } override func notifyObserver() { MWMSideButtons.updateAvailableArea(areaFrame) } } extension UIView { @objc var sideButtonsAreaAffectDirections: MWMAvailableAreaAffectDirections { return [] } var sideButtonsAreaAffectView: UIView { return self } }