Type Safely

Type Safely

Use An Extension Function For a Specific View

Daily Coding Tip 209

Type Safely's avatar
Type Safely
Nov 02, 2022
∙ Paid
white cow on green grass field under white clouds and blue sky during daytime
Photo by Ray Aucott on Unsplash

You may notice that there is a View modifier called .resizable() that can only be applied to an Image.

There are also a lot of modifiers that have no effect on anything except Text, but you’ll notice that they can actually be applied anywhere because they’re still View extensions. This is because they will actually apply t…

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