Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Create a View Modifier For Proportional Padding

Create a View Modifier For Proportional Padding

Daily Coding Tip 196

Type Safely's avatar
Type Safely
Oct 15, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Create a View Modifier For Proportional Padding
Share
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…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share