Skip to content

Instantly share code, notes, and snippets.

@nalexn
Created September 29, 2020 23:04
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 nalexn/27873350a1b039851339c6ff1c897caf to your computer and use it in GitHub Desktop.
Save nalexn/27873350a1b039851339c6ff1c897caf to your computer and use it in GitHub Desktop.
viewModel.$userName
.sink { [weak self] name in
self?.nameLabel.text = name
}
.store(in: &cancelBag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment