Type Safely

Type Safely

Create a View Modifier For Proportional Padding

Daily Coding Tip 196

Type Safely's avatar
Type Safely
Oct 15, 2022
∙ Paid
man wearing jacket
Photo by Jacqueline Day on Unsplash

In Daily Coding Tip 093 I explored a way to create padding that scales as a view scales, rather than being a fixed value that never changes.

I had the beginning of the idea then, but I really didn’t finish it by making it possible to add everywhere. I used proportional padding in one view, and then used it as the backg…

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