TextField inside a List doesn't respect certain styling as for instance a background colour when it gets focused (edited). The right colour is only visible and working as long as the textfield has no focus. I have noticed height of the textfield also changes on focus, so it must be using some other style forced by the List.
Setting the textfield's style to plain has no effect. Testing the same TextField inside a ScrollView or any other View, it's been working correctly, so I am assuming this is a SwiftUI bug? Is there no workaround for this?
Tested on MacOS 14, Xcode 15.4.
I've been also getting the following error coming from textfields although this has been already reported elsewhere. No idea if it's related somehow:
CLIENT ERROR: TUINSRemoteViewController does not override -viewServiceDidTerminateWithError: and thus cannot react to catastrophic errors beyond logging them