Skip to content

Instantly share code, notes, and snippets.

View Patrick-Beninga-Grammarly's full-sized avatar

Patrick-Beninga-Grammarly

View GitHub Profile
{
"sduiId": "1",
"type": "column",
"children": [
{
"type": "row",
"left": [
{
"type": "block",
"name": "title",
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 }