Files
damus/damus/Notify/ScrollToTopNotify.swift
2023-07-30 11:02:44 -07:00

26 lines
447 B
Swift

//
// ScrollToTopNotify.swift
// damus
//
// Created by William Casarin on 2023-07-30.
//
import Foundation
struct ScrollToTopNotify: Notify {
typealias Payload = ()
var payload: ()
}
extension NotifyHandler {
static var scroll_to_top: NotifyHandler<ScrollToTopNotify> {
.init()
}
}
extension Notifications {
static var scroll_to_top: Notifications<ScrollToTopNotify> {
.init(.init(payload: ()))
}
}