mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-28 08:53:37 +00:00
[ios] Review fixes
Signed-off-by: Kiryl Kaveryn <kirylkaveryn@gmail.com>
This commit is contained in:
committed by
Yannik Bloscheck
parent
d677112edd
commit
e2efbbe68c
@@ -41,10 +41,7 @@ final class TrackRecordingButtonViewController: MWMViewController {
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
// async is for smoother appearance
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + kDefaultAnimationDuration) {
|
||||
self.setState(self.state, completion: nil)
|
||||
}
|
||||
setState(self.state, completion: nil)
|
||||
}
|
||||
|
||||
// MARK: - Public methods
|
||||
|
||||
@@ -892,7 +892,7 @@ NSString *const kSettingsSegue = @"Map2Settings";
|
||||
TrackInfo * _Nonnull trackInfo,
|
||||
ElevationProfileData * _Nonnull (^ _Nullable elevationData) ()) {
|
||||
__strong __typeof(weakSelf) self = weakSelf;
|
||||
|
||||
if (!self) return;
|
||||
switch (state) {
|
||||
case TrackRecordingStateInactive:
|
||||
[self stopObservingTrackRecordingUpdates];
|
||||
|
||||
Reference in New Issue
Block a user