Skip to content

Instantly share code, notes, and snippets.

View iandundas's full-sized avatar

Ian Dundas iandundas

View GitHub Profile
@iandundas
iandundas / EXC_BAD_ACCESS.swift
Last active July 22, 2025 09:20
Eventually a EXC_BAD_ACCESS
/*
Eventually throws a EXC_BAD_ACCESS, reliably around iteration 130688, I think due to stack overflow.
https://share.cleanshot.com/qQdj9ygc
*/
import SwiftUI
@Observable
class MyObservableCounter {
var value = 0