Skip to content

Instantly share code, notes, and snippets.

@fitomad
Last active Aug 1, 2019
Embed
What would you like to do?
internal class CollectionsViewModel: ObservableObject
{
/// Las colecciones disponibles en este momento.
public private(set) var collections: [SpecialCollection]
{
willSet
{
self.objectWillChange.send()
}
}
// MARK: - Bindable Object Protocol -
/// Informamos de los cambios a la vista.
public var objectWillChange = PassthroughSubject<Void, Never>()
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment