Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use .gridCellColumns To Specify When a View Should Span Multiple Grid Columns

Use .gridCellColumns To Specify When a View Should Span Multiple Grid Columns

Daily Coding Tip 161

Millie Sturgeon's avatar
Millie Sturgeon
Aug 20, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use .gridCellColumns To Specify When a View Should Span Multiple Grid Columns
Share
Photo by Kiran K. on Unsplash

I started by creating a simple view that pads a Text and gives it an outline.

This is mainly so I won’t need to repeat myself, as I’ll be creating 5 of these inside my Grid. The string that will be displayed by the Text will be passed in, along with the Color that will be given to the .border modifier for the outline.

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