Post

Replies

Boosts

Views

Activity

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 ?
1
3
972
Sep ’22