Commit 0a20b96b authored by Alex朱枝文's avatar Alex朱枝文

合并dev代码并解决冲突

parents 42e76996 5f12e6f8
...@@ -42,12 +42,10 @@ class YHTabBarViewController: ESTabBarController { ...@@ -42,12 +42,10 @@ class YHTabBarViewController: ESTabBarController {
shareView.frame = self.tabBar.frame shareView.frame = self.tabBar.frame
view.addSubview(shareView) view.addSubview(shareView)
if UIDevice.current.userInterfaceIdiom == .pad { if UIDevice.current.userInterfaceIdiom == .pad {
if #available(iOS 18.0, *) { if #available(iOS 18.0, *) {
traitOverrides.horizontalSizeClass = .compact traitOverrides.horizontalSizeClass = .compact
// if let classType = NSClassFromString("_UITabContainerView"), let view = view.subviews.first(where: { $0.isKind(of: classType) }) {
// view.isHidden = true
// }
// 2. 遍历子视图,找到可能是 _UITabContainerView 的视图 // 2. 遍历子视图,找到可能是 _UITabContainerView 的视图
for subview in view.subviews { for subview in view.subviews {
let className = String(describing: type(of: subview)) let className = String(describing: type(of: subview))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment