Closed jiasongs closed 2 years ago
mac 上的 toolbar 也是可以隐藏的,QMUIHelper.safeAreaInsetsForDeviceWithNotch 的设计本意更希望用于“无法动态获取 safeAreaInsets 时不得已才用”的方法,更希望用来表达硬件层面的 safeAreaInsets 信息,所以该方法不修改。
此函数下的UIInterfaceOrientation orientation = UIApplication.sharedApplication.statusBarOrientation; 在iOS16是不是需要做适配,
Bug 表现
QMUIHelper.safeAreaInsetsForDeviceWithNotch
在Mac Catalyst上不准确,Mac Catalyst上有个“tool bar”通过
keyWindow.safeAreaInsets
拿到的结果是截图 如上图
如何重现 run in Mac Catalyst
预期的表现 QMUIHelper.safeAreaInsetsForDeviceWithNotch在其他平台上也能得到正确的结果
其他信息