Skip to content

Instantly share code, notes, and snippets.

View JUSTINMKAUFMAN's full-sized avatar

Justin Kaufman JUSTINMKAUFMAN

View GitHub Profile
@JUSTINMKAUFMAN
JUSTINMKAUFMAN / CrashViewController.swift
Last active September 2, 2019 18:37
Crash when mutating [UIColor] in a struct on a UIView prior to adding that view as a UIViewController's subview
import UIKit
/**
This code *consistently* crashes when built with
the following Xcode 10.2.1 build settings:
`Swift Version` = `5` (i.e. default)
`Enable Testability` = `NO`
`Optimization Level` = `-Owholemodule`
@JUSTINMKAUFMAN
JUSTINMKAUFMAN / Shared.kt
Last active April 28, 2019 17:55
Shared RIB Interface ('ChangePassword' Example)
// --------------------------------------------------------------------
// *** Shared ***
// --------------------------------------------------------------------
// --------------------------------------------------------------------
// View.kt
// --------------------------------------------------------------------
/**