Aligning right to left on UICollectionView

前端 未结 13 632
悲哀的现实
悲哀的现实 2020-12-02 08:31

this is a pretty straightforward question, but I haven\'t been able to find a definitive answer to it on SO (if I missed it, please correct me).

Basically, my quest

13条回答
  •  [愿得一人]
    2020-12-02 09:27

    you can use this since iOS 11:

    extension UICollectionViewFlowLayout {
    
        open override var flipsHorizontallyInOppositeLayoutDirection: Bool {
            return true
        }
    
    }
    

提交回复
热议问题