Skip to content

Instantly share code, notes, and snippets.

View mike-angel-mx's full-sized avatar

Mike MX mike-angel-mx

  • Cancún, QuintanaRoo, México
View GitHub Profile
@mike-angel-mx
mike-angel-mx / Bindings.swift
Created April 15, 2020 04:42 — forked from AliSoftware/Bindings.swift
Re-implementation of @binding and @State (from SwiftUI) myself to better understand it
/*:
This is a concept re-implementation of the @Binding and @State property wrappers from SwiftUI
The only purpose of this code is to implement those wrappers myself
just to understand how they work internally and why they are needed,
⚠️ This is not supposed to be a reference implementation nor cover all
subtleties of the real Binding and State types.
The only purpose of this playground is to show how re-implementing
them myself has helped me understand the whole thing better