Untitled

mail@pastecode.io avatar
unknown
swift
2 years ago
202 B
4
Indexable
Never
typealias AnyUIEvent<T> = AnySubject<T, Never>

extension AnyUIEvent {
    
    static func create<T>() -> AnyUIEvent<T> {
        return PassthroughSubject<T, Never>().eraseToAnySubject()
    }
    
}