Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
AddSourceViewModel
override func viewDidLoad() {
super.viewDidLoad()
self.addSourceViewModel = AddSourceViewModel()
self.descriptionTextView.bind { count,limit in
self.remainingCharactersCountLabel.text = "\(self.addSourceViewModel.remainingNumberOfAllowedCharacters(numberOfCharactersEntered: count, limit:limit))"
}.limit(to: Maximum.allowedCharactersForDescription)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment