TextField with trailing multilineTextAlignment does not show spaces

I've noticed a bug recently when I create a TextField in SwiftUI (iOS) and set the multilineTextAlignment to .trailing (like below)

TextField("Placeholder", text: $text)
      .multilineTextAlignment(.trailing)

When you enter spaces, they are not reflected until you enter another non-space character. This leads to a weird user experience where you are tapping the space bar but not seeing a visible change on screen until you type the next character.

This does not happen with the other text alignment options like center or leading.

Has anyone found a workaround to this ?

Having the same issue.. It's like the trailing whitespace disappears in the view until you type a character.

Apple can you look at this? Should we file a bug report?

TextField with trailing multilineTextAlignment does not show spaces
 
 
Q