Skip to content

Commit

Permalink
fix: State restoration in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
lebojo committed Oct 9, 2024
1 parent 5441024 commit 4323fb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kDrive/AppRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,9 @@ public struct AppRouter: AppNavigable {
let fileIds = sceneUserInfo[SceneRestorationValues.Carousel.filesIds.rawValue] as? [Int],
let currentIndex = sceneUserInfo[SceneRestorationValues.Carousel.currentIndex.rawValue] as? Int,
let normalFolderHierarchy = sceneUserInfo[SceneRestorationValues.Carousel.normalFolderHierarchy.rawValue] as? Bool,
let presentationOrigin = sceneUserInfo[SceneRestorationValues.Carousel.presentationOrigin.rawValue] as? PresentationOrigin else {
let rawPresentationOrigin =
sceneUserInfo[SceneRestorationValues.Carousel.presentationOrigin.rawValue] as? String,
let presentationOrigin = PresentationOrigin(rawValue: rawPresentationOrigin) else {
Log.sceneDelegate("metadata issue for PreviewController :\(sceneUserInfo)", level: .error)
return
}
Expand Down

0 comments on commit 4323fb0

Please sign in to comment.