禁用iOS26液态玻璃效果
authorliangzhenying <867174124@qq.com>
Sat, 28 Feb 2026 08:18:30 +0000 (16:18 +0800)
committerliangzhenying <867174124@qq.com>
Sat, 28 Feb 2026 08:18:30 +0000 (16:18 +0800)
ShenYin/ShenYin.xcodeproj/project.pbxproj
ShenYin/ShenYin/Info.plist
ShenYin/ShenYin/ShenYin copy-Info.plist
ShenYin/ShenYin/UI/Home/Dialog/DialogSplitView.swift
ShenYin/ShenYin/UI/Home/Dialog/DialogTranslateCell.swift
ShenYin/ShenYin/UI/Mine/LanguageVC.swift

index dd62d89..c69caea 100644 (file)
                                CODE_SIGN_ENTITLEMENTS = ShenYin/PLAYBOY.entitlements;
                                CODE_SIGN_IDENTITY = "Apple Development";
                                CODE_SIGN_STYLE = Automatic;
-                               CURRENT_PROJECT_VERSION = 202602271705;
+                               CURRENT_PROJECT_VERSION = 202602271457;
                                DEVELOPMENT_TEAM = JKLJ58J33Q;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
                                CODE_SIGN_ENTITLEMENTS = ShenYin/PLAYBOY.entitlements;
                                CODE_SIGN_IDENTITY = "Apple Development";
                                CODE_SIGN_STYLE = Automatic;
-                               CURRENT_PROJECT_VERSION = 202602271705;
+                               CURRENT_PROJECT_VERSION = 202602271457;
                                DEVELOPMENT_TEAM = JKLJ58J33Q;
                                FRAMEWORK_SEARCH_PATHS = (
                                        "$(inherited)",
index 69dbc59..40f0328 100644 (file)
@@ -53,5 +53,7 @@
        </array>
        <key>NSMicrophoneUsageDescription</key>
        <string>录音需要使用麦克风</string>
+       <key>UIDesignRequiresCompatibility</key>
+       <true/>
 </dict>
 </plist>
index 1348665..8ca32a3 100644 (file)
@@ -53,5 +53,7 @@
        </array>
        <key>UIViewControllerBasedStatusBarAppearance</key>
        <true/>
+       <key>UIDesignRequiresCompatibility</key>
+       <true/>
 </dict>
 </plist>
index 869595c..5dc996d 100644 (file)
@@ -33,10 +33,9 @@ class DialogSplitView: BaseView {
     override func setupViews() {
         addSubviews([tableView1,tableView2,line])
         
-//        backgroundColor = .red
+        backgroundColor = .color(.bgColor)
         tableView1.do { v in
             v.backgroundColor = .color(.bgColor)
-//            v.backgroundColor = .green
             v.delegate = self
             v.dataSource = self
             v.estimatedRowHeight = 60
@@ -46,7 +45,6 @@ class DialogSplitView: BaseView {
         }
         tableView2.do { v in
             v.backgroundColor = .color(.bgColor)
-//            v.backgroundColor = .yellow
             v.delegate = self
             v.dataSource = self
             v.estimatedRowHeight = 60
@@ -60,17 +58,17 @@ class DialogSplitView: BaseView {
             make.top.equalToSuperview()
             make.left.equalToSuperview()
             make.width.equalTo(kScreenWid)
-            make.height.equalToSuperview().multipliedBy(0.5)
+            make.bottom.equalTo(line.snp.top).offset(-18)
         }
         tableView2.snp.makeConstraints { make in
-            make.top.equalTo(tableView1.snp.bottom)
+            make.top.equalTo(line.snp.bottom).offset(18)
             make.left.equalToSuperview()
             make.width.equalTo(kScreenWid)
-            make.height.equalToSuperview().multipliedBy(0.5)
+            make.bottom.equalToSuperview()
         }
         line.snp.makeConstraints { make in
             make.left.right.equalToSuperview().inset(36)
-            make.top.equalTo(tableView2.snp.top )
+            make.centerY.equalToSuperview()
             make.height.equalTo(1)
         }
     }
index a99d0b4..4bab24e 100644 (file)
@@ -117,7 +117,7 @@ class DialogTranslateCell:BaseTableViewCell{
                     make.right.equalToSuperview().inset(18)
                 }
                 bgView.backgroundColor = .color(.theme)
-                originalLabel.textColor = .white
+                originalLabel.textColor = UIColor.white.withAlphaComponent(0.8)
                 translationLabel.textColor = .white
             }
             else{
index 5ef482d..057996c 100644 (file)
@@ -53,7 +53,7 @@ extension LanguageVC:UITableViewDelegate,UITableViewDataSource {
         if indexPath.row == 0 {
             cell.bgView.yc.setCorners(withRoundedRect: rect, roundingCorners: [.topLeft,.topRight], cornerRadii: CGSize(width: 8, height: 8))
         }
-        else if indexPath.row == LoginVM.shared.countryList.count - 1{
+        else if indexPath.row == list.count - 1{
             cell.bgView.yc.setCorners(withRoundedRect: rect, roundingCorners: [.bottomLeft,.bottomRight], cornerRadii: CGSize(width: 8, height: 8))
         }
         else{
@@ -67,7 +67,10 @@ extension LanguageVC:UITableViewDelegate,UITableViewDataSource {
         CCConfig.appLanguage = lan
         LanuageCache.save(lan: CCConfig.appLanguage)
         App.shared.didLogin()
-        App.shared.tabController?.selectedIndex = 4
+        if let index = App.shared.tabController?.viewControllers?.count {
+            App.shared.tabController?.selectedIndex = index - 1
+        }
+        
         App.shared.goToPage(LanguageVC())
     }
 }