[iOS] Fixes in bottom TabBar

This commit is contained in:
Alexander Boriskov 2020-05-22 16:29:20 +03:00 committed by Aleksey Belousov
parent 21cc040fa5
commit 7080752c7c
2 changed files with 6 additions and 16 deletions

View file

@ -29,7 +29,9 @@ static NSString *kGuidesWasShown = @"guidesWasShown";
_observers = [NSHashTable weakObjectsHashTable];
GetFramework().GetTrafficManager().SetStateListener([self](TrafficManager::TrafficState state) {
for (id<MWMMapOverlayManagerObserver> observer in self.observers) {
[observer onTrafficStateUpdated];
if ([observer respondsToSelector:@selector(onTrafficStateUpdated)]) {
[observer onTrafficStateUpdated];
}
}
});
GetFramework().GetTransitManager().SetStateListener([self](TransitReadManager::TransitSchemeState state) {
@ -48,7 +50,9 @@ static NSString *kGuidesWasShown = @"guidesWasShown";
});
GetFramework().GetGuidesManager().SetStateListener([self](GuidesManager::GuidesState state) {
for (id<MWMMapOverlayManagerObserver> observer in self.observers) {
[observer onGuidesStateUpdated];
if ([observer respondsToSelector:@selector(onGuidesStateUpdated)]) {
[observer onGuidesStateUpdated];
}
}
});
}

View file

@ -129,17 +129,6 @@
<constraint firstItem="uDI-ZC-4wx" firstAttribute="centerY" secondItem="svD-yi-GrZ" secondAttribute="centerY" constant="-8" id="yq3-ui-IaL"/>
</constraints>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oxg-Qt-HzS" userLabel="Separator">
<rect key="frame" x="0.0" y="48" width="373" height="1"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.12" colorSpace="custom" customColorSpace="sRGB"/>
<accessibility key="accessibilityConfiguration" identifier="Separator"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="wSx-Bp-1WM"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="StyleName" value="Divider"/>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
@ -147,12 +136,9 @@
<constraint firstItem="4Uc-SH-J1o" firstAttribute="top" secondItem="vum-s3-PHx" secondAttribute="top" id="0Jc-AD-Qya"/>
<constraint firstItem="4Uc-SH-J1o" firstAttribute="leading" secondItem="aaw-Hz-zma" secondAttribute="leading" id="CMh-m4-Ern"/>
<constraint firstAttribute="bottom" secondItem="4Uc-SH-J1o" secondAttribute="bottom" id="Hjq-xN-iqA"/>
<constraint firstItem="oxg-Qt-HzS" firstAttribute="top" secondItem="vum-s3-PHx" secondAttribute="bottom" id="NZl-aK-dLq"/>
<constraint firstItem="vum-s3-PHx" firstAttribute="top" secondItem="zuH-WU-hiP" secondAttribute="top" id="PQS-ro-25e"/>
<constraint firstItem="vum-s3-PHx" firstAttribute="leading" secondItem="zuH-WU-hiP" secondAttribute="leading" id="kza-JN-Dul"/>
<constraint firstItem="oxg-Qt-HzS" firstAttribute="width" secondItem="vum-s3-PHx" secondAttribute="width" id="ohC-pa-lJs"/>
<constraint firstAttribute="trailing" secondItem="vum-s3-PHx" secondAttribute="trailing" id="sM6-P2-rN9"/>
<constraint firstItem="oxg-Qt-HzS" firstAttribute="leading" secondItem="zuH-WU-hiP" secondAttribute="leading" id="vjV-VK-BXO"/>
</constraints>
<nil key="simulatedStatusBarMetrics"/>
<nil key="simulatedTopBarMetrics"/>