paololeonardi / WaterfallGrid

A waterfall grid layout view for SwiftUI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

right to left grid

eskanndar opened this issue · comments

I need it to be right to left grid. is there any possibility to do that?

You could force the grid environment to have an RTL layout direction:

WaterfallGrid(rectangles) { rectangle in
  RectangleView(rectangle: rectangle)
}
.environment(\.layoutDirection, .rightToLeft)

Is it what you want?

Simulator Screen Shot - iPhone 11 Pro - 2020-06-15 at 15 25 08

Yes, thank you. great job.