Delay presentation of imported file modal

Fixes navigation bug on iOS 14 preventing modal from dismissing
via close button.
This commit is contained in:
Davide De Rosa 2022-05-20 16:34:38 +02:00
parent 59b3c320c8
commit 46a8fb8a74
1 changed files with 4 additions and 1 deletions

View File

@ -97,7 +97,10 @@ extension OrganizerView {
assertionFailure("Empty URLs from file importer?")
return
}
addProfileModalType = .addHost(url, false)
Task {
await Task.maybeWait(forMilliseconds: Constants.Delays.xxxPresentFileImporter)
addProfileModalType = .addHost(url, false)
}
case .failure(let error):
alertType = .error(