mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
App Layout: Release Experience
- First iteration before final design
This commit is contained in:
@@ -54,6 +54,7 @@
|
||||
@property(nonatomic,getter=isHidden) BOOL hidden;
|
||||
|
||||
@property (nonatomic, readwrite) OnboardingCoordinatorBridgePresenter *onboardingCoordinatorBridgePresenter;
|
||||
@property (nonatomic) AllChatsOnboardingCoordinatorBridgePresenter *allChatsOnboardingCoordinatorBridgePresenter;
|
||||
|
||||
// Tell whether the onboarding screen is preparing.
|
||||
@property (nonatomic, readwrite) BOOL isOnboardingCoordinatorPreparing;
|
||||
@@ -212,6 +213,11 @@
|
||||
}
|
||||
|
||||
[[AppDelegate theDelegate] checkAppVersion];
|
||||
|
||||
if (BuildSettings.newAppLayoutEnabled && !RiotSettings.shared.allChatsOnboardingHasBeenDisplayed)
|
||||
{
|
||||
[self showAllChatsOnboardingScreen];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -439,6 +445,19 @@
|
||||
[self refreshTabBarBadges];
|
||||
}
|
||||
|
||||
- (void)showAllChatsOnboardingScreen
|
||||
{
|
||||
self.allChatsOnboardingCoordinatorBridgePresenter = [AllChatsOnboardingCoordinatorBridgePresenter new];
|
||||
MXWeakify(self);
|
||||
self.allChatsOnboardingCoordinatorBridgePresenter.completion = ^{
|
||||
MXStrongifyAndReturnIfNil(self);
|
||||
[self.allChatsOnboardingCoordinatorBridgePresenter dismissWithAnimated:YES completion:^{
|
||||
self.allChatsOnboardingCoordinatorBridgePresenter = nil;
|
||||
}];
|
||||
};
|
||||
[self.allChatsOnboardingCoordinatorBridgePresenter presentFrom:self animated:YES];
|
||||
}
|
||||
|
||||
// TODO: Manage the onboarding coordinator at the AppCoordinator level
|
||||
- (void)presentOnboardingFlow
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user