Skip to content

Commit

Permalink
feat: #125 Add manual save logic in MainView's onAppear
Browse files Browse the repository at this point in the history
  • Loading branch information
zaehorang committed Nov 30, 2024
1 parent 1b73ba9 commit 06dc7f8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ struct MainHomeView: View {
let readingScheduleCalculator = ReadingScheduleCalculator()
print("🌝🌝🌝🌝🌝 μž¬ν• λ‹Ή!!")
readingScheduleCalculator.reassignPagesFromLastReadDate(settings: currentReadingBook.userSettings, progress: currentReadingBook.readingProgress)

// 데이저 μ €μž₯이 λŠλ €μ„œ 직접 μ €μž₯ν•΄μ£ΌκΈ°
do {
try modelContext.save()
} catch {
print(error.localizedDescription)
}
}
}
.onAppear {
Expand Down

0 comments on commit 06dc7f8

Please sign in to comment.