mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-21 13:53:37 +00:00
[ios] update side buttons animation
The old implementation was rigidly tightened to the place page top bound that breaks the side buttons (zoom, location) hiding/showing logic when the PP is big. Now the side buttons follow the PP top edge with animation and disappear animated when they out of bounds. Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Konstantin Pastbin
parent
7117a1b954
commit
3525f36919
@@ -763,9 +763,6 @@ NSString *const kSettingsSegue = @"Map2Settings";
|
||||
- (void)setPlacePageTopBound:(CGFloat)bound duration:(double)duration {
|
||||
self.visibleAreaBottom.constant = bound;
|
||||
self.sideButtonsAreaBottom.constant = bound;
|
||||
[UIView animateWithDuration:duration delay:0 options:UIViewAnimationOptionBeginFromCurrentState animations:^{
|
||||
[self.view layoutIfNeeded];
|
||||
} completion:nil];
|
||||
}
|
||||
|
||||
+ (void)setViewport:(double)lat lon:(double)lon zoomLevel:(int)zoomLevel {
|
||||
|
||||
Reference in New Issue
Block a user