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 57258da commit e6e8c67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kDrive/AppRouter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ 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 e6e8c67

Please sign in to comment.