[ios] Switched OSM profile to SwiftUI and redesigned it

Signed-off-by: Yannik Bloscheck <git@yannikbloscheck.com>
This commit is contained in:
Yannik Bloscheck
2025-07-04 21:20:43 +02:00
committed by Yannik Bloscheck
parent db1ef9b148
commit 15c7e71866
127 changed files with 1753 additions and 2503 deletions

View File

@@ -34,10 +34,11 @@
[navigationController setNavigationBarHidden:YES animated:animated];
return;
}
NSAssert([viewController conformsToProtocol:@protocol(MWMController)], @"Controller must inherit ViewController or TableViewController class");
id<MWMController> vc = (id<MWMController>)viewController;
[navigationController setNavigationBarHidden:!vc.hasNavigationBar animated:animated];
if ([viewController conformsToProtocol:@protocol(MWMController)]) {
id<MWMController> vc = (id<MWMController>)viewController;
[navigationController setNavigationBarHidden:!vc.hasNavigationBar animated:animated];
}
}
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated