Skip to content
Discussion options

You must be logged in to vote

Hi Eric,

I’ve been experimenting with watchOS 26 too, and I ran into the same issue. The gray background on TextField is intentional in watchOS 26 — Apple seems to have added an intrinsic background for consistency across apps, so it’s not a bug.

The good news is you can override it to make your TextField fully transparent on a .glassEffect container. Here’s what works:

TextField("Message...", text: $viewModel.userInput)
.textFieldStyle(.plain) // removes default fancy styling
.background(.clear) // makes the TextField itself transparent
.labelsHidden() // hides any system-added labels

The key is using both .textFieldStyle(.plain) and .background(.clear) — just one of them alone doesn’t f…

Replies: 7 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@birdmoozy
Comment options

@Eric-Terminal
Comment options

@birdmoozy
Comment options

Comment options

You must be logged in to vote
1 reply
@Eric-Terminal
Comment options

Answer selected by Eric-Terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Ask and answer questions about GitHub features and usage Programming Help Discussions around programming languages, open source and software development
4 participants