Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

适配RTL布局 #1709

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

适配RTL布局 #1709

wants to merge 2 commits into from

Conversation

Rogue24
Copy link

@Rogue24 Rogue24 commented Dec 12, 2024

你好,关于TZImagePickerController的部分UI并没有做RTL布局的适配,我为此做出了以下补全:

1.TZPhotoPickerController
111
777

2.TZPhotoPreviewController
222

3.TZVideoPlayerController
333

4.TZVideoCropController
444

5.TZVideoEditedPreviewController
555

6.TZGifPhotoPreviewController
666

主要是导航栏和底部工具栏的镜像布局。

另外需要说明的是,UICollectionView的RTL布局在水平方向是从右到左排序的,并且使用普通的UICollectionViewFlowLayout的话,cell虽然是从右到左排列的,但是contentOffset依旧是从左到右的。为此TZPhotoPickerController和TZPhotoPreviewController部分我都处理好了,但是TZVideoCropController的视频裁剪区我并没有做RTL适配,主要是因为你的裁剪框已经固定了从左边开始算起,我只好在RTL环境下让视频裁剪区还是固定LTR布局了😅。

如果你觉得没问题的话,可以合并一下😁。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant