scroll coordinate space

This commit is contained in:
William Casarin
2023-02-26 15:46:17 -08:00
parent 4b5c217213
commit 386bae64ca

View File

@@ -30,6 +30,7 @@ struct NotificationsView: View {
})
.padding(.horizontal)
}
.coordinateSpace(name: "scroll")
.onReceive(handle_notify(.scroll_to_top)) { notif in
let _ = notifications.flush()
self.notifications.should_queue = false