ugh timing workaround
This commit is contained in:
parent
4be36bf185
commit
742ea295b9
@ -35,6 +35,7 @@ open class Video: View {
|
||||
|
||||
open override func set(with model: MoleculeModelProtocol, _ delegateObject: MVMCoreUIDelegateObject?, _ additionalData: [AnyHashable: Any]?) {
|
||||
self.delegateObject = delegateObject
|
||||
(self.model as? VideoModel)?.view = nil
|
||||
super.set(with: model, delegateObject, additionalData)
|
||||
guard let model = model as? VideoModel else { return }
|
||||
|
||||
|
||||
@ -103,8 +103,6 @@ open class VideoModel: MoleculeModelProtocol {
|
||||
|
||||
open func addVisibilityHalting(for view: Video, delegateObject: MVMCoreUIDelegateObject?) {
|
||||
printThat(string: "before adding")
|
||||
// reset
|
||||
(view.model as? VideoModel)?.view = nil
|
||||
self.view = view
|
||||
printThat(string: "after adding")
|
||||
halted = false
|
||||
|
||||
Loading…
Reference in New Issue
Block a user