Skip to content

Commit

Permalink
filetree: Scroll in viewIsAppearing
Browse files Browse the repository at this point in the history
  • Loading branch information
bummoblizard committed Jan 20, 2024
1 parent 7555858 commit 289027e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CodeApp/Managers/FileTreeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ where Data: RandomAccessCollection, Data.Element: Identifiable, Data.Element ==
fileTreeView.dataSource = self
}

override func viewDidAppear(_ animated: Bool) {
override func viewIsAppearing(_ animated: Bool) {
if let idToScrollToOnAppear {
self.scrollToCell(cell: idToScrollToOnAppear, scrollPosition: .middle, animated: false)
}
Expand Down

0 comments on commit 289027e

Please sign in to comment.