From 1554b451f66120d81693eb722875e49a7e9a4186 Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期二, 10 九月 2024 15:21:03 +0800
Subject: [PATCH] fix API

---
 XQMuse/Root/Other/View/ChooseOptView.swift |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/XQMuse/Root/Other/View/ChooseOptView.swift b/XQMuse/Root/Other/View/ChooseOptView.swift
index b10a088..f691567 100644
--- a/XQMuse/Root/Other/View/ChooseOptView.swift
+++ b/XQMuse/Root/Other/View/ChooseOptView.swift
@@ -64,12 +64,24 @@
 }
 
 extension ChooseOptView:UITableViewDelegate & UITableViewDataSource{
+
+				func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
+								clouse(indexPath.row)
+								self.cons_bottom.constant = -JQ_ScreenW
+								UIView.animate(withDuration: 0.4) {
+												self.alpha = 0
+												self.layoutIfNeeded()
+								} completion: { _ in
+												self.removeFromSuperview()
+								}
+				}
+
 				func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
 								return items.count
 				}
 				
 				func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
-								var cell = tableView.dequeueReusableCell(withIdentifier: "_cell")
+								let cell = tableView.dequeueReusableCell(withIdentifier: "_cell")
 								cell!.textLabel?.font = UIFont.systemFont(ofSize: 15, weight: .medium)
 								cell!.textLabel?.textColor = UIColor(hexString: "#92A87D")
 								cell!.selectionStyle = .none

--
Gitblit v1.7.1