Skip to content

Commit

Permalink
Checking whether the container is dismissing. (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
almazrafi committed Apr 16, 2024
1 parent a255b4f commit 44d92b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Screen/Actions/Modal/ScreenPresentAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public struct ScreenPresentAction<
) {
navigator.logInfo("Presenting \(screen) on \(type(of: container))")

guard container.presented == nil else {
guard container.presented?.isBeingDismissed != false else {
return completion(.containerAlreadyPresenting(container, for: self))
}

Expand Down

0 comments on commit 44d92b7

Please sign in to comment.