r/iOSProgramming • u/xixtoo • 24d ago
Question I made a dev overlay to visualize the iPhone Duo's reserved regions on top of your app's UI
Hello all! I wanted a way to visualize the various reserved areas for the crease, status bar, cameras, etc on iPhone Duo so I built this overlay. You can run either of the demo apps, or use the SPM package to add the overlay to your app!
https://github.com/mikeakers/DuoDevOverlay
MIT License
140
Upvotes




2
u/UtterlyMagenta objc_msgSend 23d ago
what do those occlusion areas do? i know they’re for the camera, but what are Apple expecting developers to do with those areas?
2
u/b0rsht 23d ago
Doing work apple should had done themselves during HIG update, ask them for a discount or something 😂🙌
2
u/yanklot 19d ago
Literally just started updating the app for duo. This is super helpful, thanks!
2
u/Shot_Bat2938 16d ago
wish i’d found this a month ago lol. when i adapted my app for the Duo i found the crease by trial and error. text kept landing on the visual in the middle when unfolded, ended up laying content out like two pages side by side. the status bar being on the side of the inner screen also caught me off guard. question: does the division region change when the hinge is half open (tabletop)?
4
u/azaphiel 24d ago
Hi, isn’t the navigation bar a bit bigger than usual? Is it native and preferred nav bar height? Thanks!
3
u/meowthor 24d ago
Very nice thank you
5
u/ICameHereForThiss 24d ago
Really nice dude thank you 🙏🙏🙏
2
u/noxwei 23d ago
I did something similar in my dev build
2
u/Live_Ad6148 23d ago
Awesome!
2
u/SwiftlyJon 23d ago
I wish Adaptivity would come back.
2
u/pvinis 23d ago
lol throwing mine here too https://github.com/pvinis/duo-demo
2
u/Fun-Relationship5464 22d ago
Very nice and useful tyyy
6
u/[deleted] 24d ago
[removed] — view removed comment