Add comments to UIKitRenderer

This commit is contained in:
Max Desiatov 2019-01-27 13:20:50 +00:00
parent 1d781b6b0e
commit 89c3ec2457
No known key found for this signature in database
GPG Key ID: FE08EBF9CF58CBA2
1 changed files with 2 additions and 0 deletions

View File

@ -14,11 +14,13 @@ let _ModalPresenterWitnessTableHack: UIHostComponent.Type = ModalPresenter.self
let _StackControllerWitnessTableHack: UIHostComponent.Type =
StackController.self
// Type-erased version `ViewControllerBox` to avoid generics leaking out.
public protocol UITarget {
var node: AnyNode? { get }
var viewController: UIViewController { get }
}
/// UIKitRenderer is an implementation of `Renderer` with UIKit as a target.
class UIKitRenderer: Renderer {
private var reconciler: StackReconciler<UIKitRenderer>?
private weak var rootViewController: UIViewController!