airbnb / MagazineLayout

A collection view layout capable of laying out views in vertically scrolling grids and lists.
Apache License 2.0
3.3k stars 220 forks source link

Make RTL support configurable #39

Closed bryankeller closed 5 years ago

bryankeller commented 5 years ago

Details

https://github.com/airbnb/MagazineLayout/pull/30 added RTL layout support, but did not make it configurable. To enable more control, I've added an initializer to control flipsHorizontallyInOppositeLayoutDirection, with a default of true.

Related Issue

N/A

Motivation and Context

This makes RTL support opt-out. Currently, it's not configurable at all.

How Has This Been Tested

Tested RTL support in the sample app.

Types of changes

Checklist