Streaming improvements

This commit is contained in:
Ali
2022-02-24 01:13:10 +04:00
parent 925746e896
commit baec592ca1
22 changed files with 625 additions and 54 deletions

View File

@@ -84,10 +84,13 @@ extension UIView {
}
}
public class ComponentState {
open class ComponentState {
var _updated: ((Transition) -> Void)?
var isUpdated: Bool = false
public init() {
}
public final func updated(transition: Transition = .immediate) {
self.isUpdated = true
self._updated?(transition)