This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import Combine | |
import SwiftUI | |
/// View Model closable protocol - conform to this protocol if your view model should emit close block to close the screen that uses this view model | |
public protocol ViewModelClosableProtocol { | |
var closeCancellable: AnyCancellable? { get set } | |
// when inheriting protocol, set @Published | |
// var shouldCloseView: Bool { get set } |
OlderNewer