Join Jon Bott for an in-depth discussion in this video Bind to controls, part of RxSwift: Design Patterns for iOS Developers.
- [Instructor] The next piece for us to look at…is how we can work with the reactive state of buttons,…as well as setting the enabled state of UI controls.…Let's go ahead and come into here,…and collapse this rxTitle.…We'll keep that one running.…Just copy this whole section,…and I'll say MARK.…Let's go ahead and fix that K there.…This one is just going to be called Rx Controls.…
We'll say in here func rxControls.…In fact, we'll move that, and we'll come here and say,…we have a button that's called an acceptButton on this view.…We want to say rx.tap.subscribe.…We're subscribing to the event.…Here we don't actually care about the event details.…We'll just say print accept button tapped,…and of course we'll dispose of this in a bag.…
You see that we now have another way of adding actions.…We don't necessarily have to use…the IB action to make buttons,…do something, or add any gesture recognizers.…The thing too is…we do have an action already on this button.…You can combine these and have multiple actions on this.…
- RxSwift syntax
- Creating simple observables
- Architecting the model layer
- Using Core Data
- Grouping tasks
- Changing UI
- Threading in the model and UI
Skill Level Intermediate
Learning Server-Side Swift Using IBM Kiturawith Mohammad Azam1h 51m Intermediate
Swift 4: Protocol-Oriented Programmingwith Károly Nyisztor1h 44m Intermediate
Swift: Writing Reusable Frameworkswith David Okun1h 49m Intermediate
1. The Basics
2. Model Layer
3. Presenter and View
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.