Skip to content

Instantly share code, notes, and snippets.

View joehinkle11's full-sized avatar

Joe Hinkle joehinkle11

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>
com.apple.dt.previewsd.allowed
</key>
<true />
<key>
com.apple.private.rtcreportingd
@joehinkle11
joehinkle11 / SwiftUIBomb.swift
Created April 21, 2021 02:40
Example showing how a stack overflow can be triggered by rendering a SwiftUI struct, even if the struct was already safely created
//
// ContentView.swift
// Shared
//
// Created by Joseph Hinkle on 4/20/21.
//
import SwiftUI
public struct ContentView: View {
--pan
local lastX = 0
local lastY = 0
local touchNum = 0
local touch1 = false
local touch2 = false
local touch1X = 0
local touch1Y = 0
local touch2X = 0
local touch2Y = 0