Skip to content

Instantly share code, notes, and snippets.

Westin Newell n8chur

View GitHub Profile
n8chur /
Last active Sep 4, 2019
An example for a CLA that has two separate agreements for individuals and corporations for use with
Individuals Corporations
n8chur / Published.swift
Last active Jun 10, 2019
An example implementation of @published from Swift's Combine framework along with an "immutable" variant.
View Published.swift
import Combine
An observable, mutable property.
Replays the current value when subscribed.
struct Published<Output>: Publisher {
typealias Failure = Never
n8chur / SwiftUI-Class-Update-Failure.swift
Created Jun 6, 2019
Demonstrates that SwiftUI (in it's initial beta form) is unable to properly handle diffing of class objects. The counter will not increment as you might expect it to.
View SwiftUI-Class-Update-Failure.swift
import SwiftUI
import Combine
struct ContentView : View {
@ObjectBinding var viewModel: ViewModel
var body: some View {
CounterView(counter: viewModel.counter)

Keybase proof

I hereby claim:

  • I am n8chur on github.
  • I am n8chur ( on keybase.
  • I have a public key whose fingerprint is 89FC F8C4 8102 E735 305A E268 7A89 793B EB6E 6C3C

To claim this, I am signing this object:

You can’t perform that action at this time.