Type Safely

Type Safely

Hiding The Sheet Drag Indicator and Binding Sheet Detent Selection

Daily Coding Tip 191

Type Safely's avatar
Type Safely
Oct 09, 2022
∙ Paid
three dome tents with lights on forest beside campfire
Photo by Tommy Lisbin on Unsplash

I wanted to improve on Daily Coding Tip 113, where I made it possible to snap a sheet to multiple heights using PresentationDetent.

That tip didn’t use a modifier for content within a sheet that can hide or show the drag indicator. This is a small capsule shaped view that Apple places at the top of a sheet, informing the…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture