We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ef9dd5 commit fefd3a8Copy full SHA for fefd3a8
1 file changed
DevLog/UI/PushNotification/PushNotificationView.swift
@@ -44,12 +44,13 @@ struct PushNotificationView: View {
44
get: { viewModel.state.showToast },
45
set: { viewModel.send(.setToast(isPresented: $0)) }),
46
duration: 5,
47
- message: viewModel.state.toastMessage,
48
- action: {
49
- viewModel.send(.undoDelete)
50
- }
+ action: { viewModel.send(.undoDelete) },
+ onDismiss: { viewModel.send(.confirmDelete) }
51
) {
52
- viewModel.send(.confirmDelete)
+ Label(viewModel.state.toastMessage, systemImage: "arrow.uturn.left")
+ .font(.caption)
+ .multilineTextAlignment(.center)
53
+ .lineLimit(3)
54
}
55
.onAppear {
56
viewModel.send(.fetchNotifications)
0 commit comments