Post

Replies

Boosts

Views

Activity

SwiftUI 2.0 lazy HStack not working with right to left language
If I have a horizontal scrollview with a lazy hstack inside and I test it with a right-to-left language (e.g. arabic), the lazy hstack loads the elements wrong. This means, that the elements that should become visible are disappearing and the other way round. Applying the .flipsForRightToLeftLayoutDirection(true) modifier makes the lazy stack loads the elements correctly, but then the elements are flipped horizontally. Does anyone know how to fix this issue? Tested with Xcode 12.0 / 12.2 beta and iOS 14.0 / 14.2 beta
1
0
1k
Sep ’20