Skip to content

Commit

Permalink
[iOS] Fixes in bottom TabBar
Browse files Browse the repository at this point in the history
  • Loading branch information
Polas authored and beloal committed May 26, 2020
1 parent 21cc040 commit 7080752
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
8 changes: 6 additions & 2 deletions iphone/CoreApi/CoreApi/Traffic/MWMMapOverlayManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ - (instancetype)initManager {
_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) {
Expand All @@ -48,7 +50,9 @@ - (instancetype)initManager {
});
GetFramework().GetGuidesManager().SetStateListener([self](GuidesManager::GuidesState state) {
for (id<MWMMapOverlayManagerObserver> observer in self.observers) {
[observer onGuidesStateUpdated];
if ([observer respondsToSelector:@selector(onGuidesStateUpdated)]) {
[observer onGuidesStateUpdated];
}
}
});
}
Expand Down
14 changes: 0 additions & 14 deletions iphone/Maps/UI/BottomMenu/TabBar/BottomTabBarViewController.xib
Original file line number Diff line number Diff line change
Expand Up @@ -129,30 +129,16 @@
<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>
<constraint firstItem="aaw-Hz-zma" firstAttribute="trailing" secondItem="4Uc-SH-J1o" secondAttribute="trailing" id="04D-ND-rcR"/>
<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"/>
Expand Down

0 comments on commit 7080752

Please sign in to comment.