Skip to content

Commit

Permalink
Update reloading when alert is presented
Browse files Browse the repository at this point in the history
  • Loading branch information
kantacky committed Feb 22, 2024
1 parent 4fbff50 commit 7f1256b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion YumemiTraining/ForecastView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ struct ForecastView<ViewModel: ForecastViewModel>: View {
.onChange(of: self.scenePhase, { oldValue, newValue in
switch (oldValue, newValue) {
case (.background, .inactive):
self.viewModel.reload()
viewModel.isAlertPresented = false
viewModel.reload()

default:
return
Expand Down

0 comments on commit 7f1256b

Please sign in to comment.