Skip to content

Instantly share code, notes, and snippets.

Westin Newell n8chur

Block or report user

Report or block n8chur

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@n8chur
n8chur / Example-Split-CLA.md
Last active Sep 4, 2019
An example for a CLA that has two separate agreements for individuals and corporations for use with cla-assistant.io.
View Example-Split-CLA.md
Individuals Corporations
@n8chur
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.
*/
@propertyWrapper
struct Published<Output>: Publisher {
typealias Failure = Never
@n8chur
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)
}
}
View keybase.md

Keybase proof

I hereby claim:

  • I am n8chur on github.
  • I am n8chur (https://keybase.io/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.