Hossam Ghareeb Hossam Ghareeb - 1 year ago 174
Swift Question

Disable RTL direction for UICollectionView

I'm building a custom calendar view with

. Everything is pretty well but when I tried to test when language is set to Arabic, the cells are listed from right to left. Is there a way to disable this in RTL mode.
I have checked the documentation but there is no such option.

Answer Source

You can disable it by setting view semantics property You have to set it on UICollectionView there is a property in UIView Class


with following value

UISemanticContentAttributeUnspecified = 0,

enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download