Type Safely

Type Safely

Change TextEditor Background Using .scrollContentBackground(.hidden)

Daily Coding Tip 162

Millie Sturgeon's avatar
Millie Sturgeon
Aug 21, 2022
∙ Paid
window curtain open wide
Photo by Rob Wingate on Unsplash

Like a List, the background of a TextEditor can be hidden using .scrollContentBackground.

To demonstrate this I have two instances of ColorPicker, one that changes the background of a VStack and one that changes the background of the TextEditor itself.

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