Skip to content

Instantly share code, notes, and snippets.

//
// HealthViewController.swift
// IBScratch
//
// Created by Don Mag on 11/9/17.
// Copyright © 2017 DonMag. All rights reserved.
//
import UIKit
import HealthKit
@AliSoftware
AliSoftware / Bindings.swift
Last active July 9, 2024 22:02
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