Fix Mac crash when opening a book from search.

Defer NavigationStack path updates until after the practice tab is active so SwiftUI does not trap in boundPathChange.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
pepaskopec-blip 2026-09-22 12:42:04 +02:00
commit b6fa222659
3 changed files with 37 additions and 12 deletions

View file

@ -939,7 +939,7 @@ struct BookScreen: View {
}
ForEach(Array(b.arr("notes").enumerated()), id: \.offset) { _, note in
Section(note.str("title")) {
ForEach(note.strs("lines"), id: \.self) { line in
ForEach(Array(note.strs("lines").enumerated()), id: \.offset) { _, line in
Text(line)
}
}