Created
January 20, 2022 12:40
-
-
Save max6363/67287aee29fb97345d0be4ce36f6e012 to your computer and use it in GitHub Desktop.
This file contains 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
let theEventTitleLabel = UILabel() | |
/* | |
let newEventLabelSubscriber = Subscribers.Assign(object: theEventTitleLabel, keyPath: \.text) | |
eventPublisher.subscribe(newEventLabelSubscriber) | |
*/ | |
eventPublisher.assign(to: \.text, on: theEventTitleLabel) // <-- [new code line] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment