Skip to content

Instantly share code, notes, and snippets.

View samhenrigold's full-sized avatar
📱
out with rach, cell’s hot if u r

samhenrigold

📱
out with rach, cell’s hot if u r
View GitHub Profile
@samhenrigold
samhenrigold / demangle_tbd.py
Last active November 14, 2024 23:08
Swift .tbd symbol demangler
import yaml
import subprocess
import sys
import re
import os
import concurrent.futures
from concurrent.futures import ProcessPoolExecutor
from tqdm import tqdm
def demangle_symbol(symbol):
@samhenrigold
samhenrigold / SwiftUICore.tbd
Created November 14, 2024 23:07
SwiftUICore demangled output
This file has been truncated, but you can view the full file.
--- !tapi-tbd
tbd-version: 4
targets: [ armv7-ios, armv7s-ios, arm64-ios, arm64e-ios ]
install-name: '/System/Library/Frameworks/SwiftUICore.framework/SwiftUICore'
current-version: 6.1.19
swift-abi-version: 7
allowable-clients:
- targets: [ armv7-ios, armv7s-ios, arm64-ios, arm64e-ios ]
clients: [ AppKit, DesignLibrary, PepperUICore, SwiftUI, SwiftUIBenchmarksCore,
SwiftUICatalogNoKit, SwiftUINoKit, SwiftUITestsAppNoKit, SwiftUITestsNoKit,
@samhenrigold
samhenrigold / gist:c5f8ec3156532c220cb12e042d0bf6fd
Created April 1, 2025 14:45
List of all UIKit notifications (public and private) on iOS 18.2
_UIActiveViewServiceSessionDidChangeNotification
_UIAlertDidDisappearNotification
_UIAlertWillAppearNotification
_UIAppActiveInterfaceOrientationDidChangeNotification
_UIAppearanceInvocationsDidChangeNotification
_UIApplicationCameraShutterButtonDownNotification
_UIApplicationCameraShutterButtonUpNotification
_UIApplicationDidBeginIgnoringInteractionEventsNotification
_UIApplicationDidEndIgnoringInteractionEventsNotification
_UIApplicationDidEndSnapshotSessionNotification
_kCAFilterMultiplyColor
_kCAFilterColorAdd
_kCAFilterColorSubtract
_kCAFilterColorMonochrome
_kCAFilterColorMatrix
_kCAFilterColorHueRotate
_kCAFilterColorSaturate
_kCAFilterColorBrightness
_kCAFilterColorContrast
_kCAFilterColorInvert
@samhenrigold
samhenrigold / gist:5b88f12283513d8808d8cc9b65bc47ee
Last active April 19, 2025 22:35
`UIView.SystemAnimation.delete` demo playground
/// Video demo: https://hachyderm.io/@samhenrigold/114359529882977822
import UIKit
import PlaygroundSupport
final class DeleteDemoVC: UIViewController {
private let stack = UIStackView()
override func viewDidLoad() {
super.viewDidLoad()