Merge branch 'main' of github.com:akatreyt/Feels
This commit is contained in:
@@ -12,6 +12,10 @@ import WidgetKit
|
||||
|
||||
@main
|
||||
struct ReflectApp: App {
|
||||
private enum AnimationConstants {
|
||||
static let deepLinkHandlingDelay: TimeInterval = 0.3
|
||||
}
|
||||
|
||||
@Environment(\.scenePhase) private var scenePhase
|
||||
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
||||
|
||||
@@ -87,7 +91,7 @@ struct ReflectApp: App {
|
||||
}
|
||||
if let url = AppDelegate.pendingDeepLinkURL {
|
||||
AppDelegate.pendingDeepLinkURL = nil
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + AnimationConstants.deepLinkHandlingDelay) {
|
||||
handleDeepLink(url)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user