Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use An Extension Function For a Specific View

Use An Extension Function For a Specific View

Daily Coding Tip 209

Type Safely's avatar
Type Safely
Nov 02, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use An Extension Function For a Specific View
Share
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…

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