Skip to content

Commit 1b5cf51

Browse files
Add children at the end of transitions after clearing other children
1 parent eb6edf7 commit 1b5cf51

File tree

7 files changed

+1901
-3473
lines changed

7 files changed

+1901
-3473
lines changed

Sources/XCoordinator/Coordinator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ extension Coordinator where Self: AnyObject {
133133
public func performTransition(_ transition: TransitionType,
134134
with options: TransitionOptions,
135135
completion: PresentationHandler? = nil) {
136-
transition.presentables.forEach(addChild)
137136
transition.perform(on: rootViewController, with: options) {
138137
completion?()
139138
self.removeChildrenIfNeeded()
139+
transition.presentables.forEach(self.addChild)
140140
}
141141
}
142142
}

0 commit comments

Comments
 (0)