Skip to content

Commit

Permalink
[Fix] #233 - 토스트 메시지 레이아웃 이슈
Browse files Browse the repository at this point in the history
  • Loading branch information
joonBaek12 committed Dec 10, 2024
1 parent 0ac7089 commit f60fc15
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ struct DetailDiaryCoachedView: View {
} else {
if isLoading {
ProgressView("Loading...")
} else if let error = error {
Text("Error: \(error.localizedDescription)")
}
}

Expand Down Expand Up @@ -116,10 +114,17 @@ struct DetailDiaryCoachedView: View {
}

if onError {
SmeemErrorToastView(type: $toastErrorMessage)
.onDisappear {
onError = false
ZStack {
Color.clear
VStack {
Spacer()
SmeemErrorToastView(type: $toastErrorMessage)
.padding(.bottom, 20.scaledByHeight())
}
}
.onDisappear {
onError = false
}
}
}
}
Expand Down

0 comments on commit f60fc15

Please sign in to comment.