Skip to content

Instantly share code, notes, and snippets.

@fitomad
Last active August 1, 2019 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fitomad/4e1d12bf11d02553c5a1dc6d5e30db6e to your computer and use it in GitHub Desktop.
Save fitomad/4e1d12bf11d02553c5a1dc6d5e30db6e to your computer and use it in GitHub Desktop.
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