Created
November 28, 2017 02:17
-
-
Save azamsharp/17c3a4b6c982eca7b5c4ec08c32097fc to your computer and use it in GitHub Desktop.
AddSourceViewModel
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
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