This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"sduiId": "1", | |
"type": "column", | |
"children": [ | |
{ | |
"type": "row", | |
"left": [ | |
{ | |
"type": "block", | |
"name": "title", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
private enum AssociatedKeys { | |
static var DeinitializationObserver = "DeinitializationObserver" | |
} | |
public class DependencyBox<T: AnyObject> { | |
public weak var object: T? { | |
didSet { | |
guard object !== oldValue else { return } |