Skip to content

Instantly share code, notes, and snippets.

@bfahey
bfahey / DebuggingOverlay.swift
Created April 5, 2024 16:56
Debug your app with Apple's private UIDebuggingInformationOverlay. Supports iOS 13-17+.
import UIKit
import ObjectiveC.runtime
/// An enum that displays UIKitCore's `UIDebuggingInformationOverlay`.
enum DebuggingOverlay {
/// Shows the `UIDebuggingInformationOverlay`.
@available(iOS 13, *)
static func show() {
struct Once {
@bfahey
bfahey / DebuggingOverlay.m
Last active May 27, 2024 03:59
Debug your app with Apple's private UIDebuggingInformationOverlay. Supports iOS 13-17+.
@import ObjectiveC.runtime;
@import UIKit;
@interface DebuggingOverlay: NSObject
+ (void)show API_AVAILABLE(ios(13));
@end
@implementation DebuggingOverlay
/// Shows the `UIDebuggingInformationOverlay`.