Show HN: A debug overlay for iPhone Duo apps that shows reserved screen areas gi...
Show HN @show
Show HN: A debug overlay for iPhone Duo apps that shows reserved screen areas github.com · 2 points · 0 comments · HN thread
TL;DR A GitHub project called DuoDevOverlay, an MIT-licensed Swift package for debugging iPhone Duo apps. It draws safe-area insets and the fold, camera and status-bar reserved regions over a running app, with a draggable panel of numeric values that updates as the device folds and rotates. The post has 2 points and no comments yet.
- Overlay draws safe-area insets in blue, the fold in orange, and cameras and the status block in pink, with a draggable panel of exact numbers.
- Installed with one call, DuoDevOverlay.install(in:), in a UIWindowSceneDelegate; uninstall(from:) and isInstalled(in:) are also provided.
- It runs in its own window above the app, so it stays on top of modals and passes touches outside the panel through to the app.
- Insets added by the app's own navigation bars and tab bars are not shown, because the overlay only sees window-level geometry.
- Requires iOS 17 or later and does nothing below iOS 27.1, where the reserved-region APIs do not exist.
- Includes two demo projects: a SwiftUI app with switches for toolbar, title and tab bar, and a plain UIKit app.
Discussion No comments have been posted yet, so there is no discussion to summarize.