Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-client-ios
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-client-ios
Commits
6fe6d36d
Commit
6fe6d36d
authored
1 year ago
by
Alireza Toghyiani
Committed by
Kateryna Kostiuk
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Avoid showing the initial loading view after welcome form
Change-Id: I0ffdc263f200fc7e6d676d5c2ec58a776314c8bf
parent
6bf754a4
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Ring/Ring/Coordinators/AppCoordinator.swift
+8
-8
8 additions, 8 deletions
Ring/Ring/Coordinators/AppCoordinator.swift
Ring/Ring/Features/Walkthrough/WalkthroughCoordinator.swift
+6
-2
6 additions, 2 deletions
Ring/Ring/Features/Walkthrough/WalkthroughCoordinator.swift
with
14 additions
and
10 deletions
Ring/Ring/Coordinators/AppCoordinator.swift
+
8
−
8
View file @
6fe6d36d
...
...
@@ -102,6 +102,12 @@ final class AppCoordinator: Coordinator, StateableResponsive {
self
.
dispatchApplication
()
}
/// Starts the coordinator
func
startWithoutLoading
()
{
// ~ Dispatch to the proper screen
self
.
dispatchApplication
()
}
func
migrateAccount
(
accountId
:
String
)
{
let
migratonController
=
MigrateAccountViewController
.
instantiate
(
with
:
self
.
injectionBag
)
migratonController
.
viewModel
.
accountToMigrate
=
accountId
...
...
@@ -139,22 +145,16 @@ final class AppCoordinator: Coordinator, StateableResponsive {
let
walkthroughCoordinator
=
WalkthroughCoordinator
(
with
:
self
.
injectionBag
)
walkthroughCoordinator
.
isAccountFirst
=
isAccountFirst
walkthroughCoordinator
.
withAnimations
=
animated
walkthroughCoordinator
.
parentCoordinator
=
self
walkthroughCoordinator
.
start
()
self
.
navigationController
.
setViewControllers
([],
animated
:
false
)
self
.
addChildCoordinator
(
childCoordinator
:
walkthroughCoordinator
)
let
walkthroughViewController
=
walkthroughCoordinator
.
rootViewController
self
.
present
(
viewController
:
walkthroughViewController
,
withStyle
:
.
appear
,
withAnimation
:
true
,
disposeBag
:
self
.
disposeBag
)
walkthroughViewController
.
rx
.
controllerWasDismissed
.
subscribe
(
onNext
:
{
[
weak
self
,
weak
walkthroughCoordinator
]
(
_
)
in
walkthroughCoordinator
?
.
stateSubject
.
dispose
()
self
?
.
removeChildCoordinator
(
childCoordinator
:
walkthroughCoordinator
)
self
?
.
dispatchApplication
()
})
.
disposed
(
by
:
self
.
disposeBag
)
}
/// Presents the main interface
...
...
This diff is collapsed.
Click to expand it.
Ring/Ring/Features/Walkthrough/WalkthroughCoordinator.swift
+
6
−
2
View file @
6fe6d36d
...
...
@@ -75,8 +75,12 @@ class WalkthroughCoordinator: Coordinator, StateableResponsive {
self
.
showAddAccount
(
with
:
walkthroughType
)
case
.
accountCreated
,
.
deviceLinked
:
if
self
.
rootViewController
.
presentedViewController
!=
nil
{
self
.
rootViewController
.
dismiss
(
animated
:
true
)
{
[
weak
self
]
in
// dismiss the pop up form modal view
self
?
.
rootViewController
.
dismiss
(
animated
:
true
)
// dismiss the welcome view and check for user account state
if
let
appCoordinator
=
self
.
parentCoordinator
as?
AppCoordinator
{
appCoordinator
.
startWithoutLoading
()
appCoordinator
.
removeChildCoordinator
(
childCoordinator
:
self
)
rootViewController
.
presentedViewController
?
.
dismiss
(
animated
:
true
)
{
self
.
rootViewController
.
dismiss
(
animated
:
false
)
}
}
}
case
.
walkthroughCanceled
:
...
...
This diff is collapsed.
Click to expand it.
Kateryna Kostiuk
@kkostiuk
mentioned in commit
cc177a6c
·
1 year ago
mentioned in commit
cc177a6c
mentioned in commit cc177a6c3ec2f58c6d58085b8c96fb869ec1df91
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment