-
Notifications
You must be signed in to change notification settings - Fork 0
Chapter 1. Start with the view controller.
Dmitriy Shulzhenko edited this page Sep 27, 2020
·
6 revisions
import UIKit
import RxSwift
final class SearchViewController: UIViewController, DisposeContainer {
let bag = DisposeBag()
@IBOutlet private(set) var searchTextField: UITextField!
@IBOutlet private(set) var segmentedControl: UISegmentedControl!
@IBOutlet private(set) var tableView: UITableView!
}And a simple protocol.
import RxSwift
protocol DisposeContainer {
var bag: DisposeBag { get }
}There will be no code added inside this view controller, not even in extension, I promise😉
Interesting how? Continue reading.