Text is cut off when selected on macOS

When I select text in a text field or regular text view in SwiftUI the text shifts and is cut off and I can only see half of the value on screen.

Example of a text field using .textFieldStyle(.plain).

Example of text view using .textSelection(.enabled). The text color also changes from white to black when in dark mode.

I'm not sure what I'm doing wrong here for these views.

Text is cut off when selected on macOS
 
 
Q