Type Safely

Type Safely

Change TextEditor Background Using .scrollContentBackground(.hidden)

Daily Coding Tip 162

Millie Sturgeon's avatar
Millie Sturgeon
Aug 21, 2022
∙ Paid
Share
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.

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