CoderMJLee/MJRefresh

RTL开启flipsHorizontallyInOppositeLayoutDirection collectionView的mj_header会出现镜像

Closed this issue · 2 comments

描述bug
系统切换到阿拉伯语,给UICollectionViewFlowLayout增加flipsHorizontallyInOppositeLayoutDirection返回true,设置mj_header

必现/偶发?
必现

怎么样重现这个bug
自定义一个header,添加stackview,并设置图标和文字,水平排列。
UICollectionViewFlowLayout设置flipsHorizontallyInOppositeLayoutDirection为true,并切换到阿拉伯语。
整个header被镜像,像是旋转了180度,而不是仅仅的左右view互换。

你期望的结果是什么?
header只是从右到左布局,但不是被镜像的效果

运行环境

  • iPhone15
  • iOS17
  • Xcode15.4

来个 Demo?