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

全屏播放视频,再返回后底部tab Image和title 布局变了。 #286

Open
JoanLeeo opened this issue Apr 18, 2023 · 2 comments
Open

Comments

@JoanLeeo
Copy link

image

@archerx3
Copy link

ESTabBarItemContentView.swift updateLayout()

var isLandscape = false
            if let keyWindow = UIApplication.shared.keyWindow {
                isLandscape = keyWindow.bounds.width > keyWindow.bounds.height
            }

这个横竖屏判断不严谨 可能当前的keyWindow 不是tabBar所在的keyWindow

我遇到的情况是这么个情况

@JoanLeeo
Copy link
Author

ESTabBarItemContentView.swift updateLayout()

var isLandscape = false
            if let keyWindow = UIApplication.shared.keyWindow {
                isLandscape = keyWindow.bounds.width > keyWindow.bounds.height
            }

这个横竖屏判断不严谨 可能当前的keyWindow 不是tabBar所在的keyWindow

我遇到的情况是这么个情况

谢谢!是这样的,我是因为从视频全屏返回就会出现这个问题。另外一个发现是:只有iOS15及以下会出现这个问题。同一个操作,iOS15及以下系统获取到的keyWindow 和 iOS16 以上系统不一样的。

Repository owner deleted a comment from thenakulgupta Feb 3, 2024
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

No branches or pull requests

2 participants