From 90dc3329d1973fda691e357cf4523d5c7c67fa1d Mon Sep 17 00:00:00 2001
From: 杨锴 <841720330@qq.com>
Date: 星期二, 11 三月 2025 12:23:53 +0800
Subject: [PATCH] fix bug

---
 Pods/SwifterSwift/Sources/SwifterSwift/UIKit/UITableViewExtensions.swift |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/Pods/SwifterSwift/Sources/SwifterSwift/UIKit/UITableViewExtensions.swift b/Pods/SwifterSwift/Sources/SwifterSwift/UIKit/UITableViewExtensions.swift
index 8267e2d..30c4816 100644
--- a/Pods/SwifterSwift/Sources/SwifterSwift/UIKit/UITableViewExtensions.swift
+++ b/Pods/SwifterSwift/Sources/SwifterSwift/UIKit/UITableViewExtensions.swift
@@ -8,7 +8,7 @@
 public extension UITableView {
     /// SwifterSwift: Index path of last row in tableView.
     var indexPathForLastRow: IndexPath? {
-        guard let lastSection = lastSection else { return nil }
+        guard let lastSection else { return nil }
         return indexPathForLastRow(inSection: lastSection)
     }
 
@@ -110,7 +110,7 @@
     /// - Parameters:
     ///   - nib: Nib file used to create the header or footer view.
     ///   - name: UITableViewHeaderFooterView type.
-    func register<T: UITableViewHeaderFooterView>(nib: UINib?, withHeaderFooterViewClass name: T.Type) {
+    func register(nib: UINib?, withHeaderFooterViewClass name: (some UITableViewHeaderFooterView).Type) {
         register(nib, forHeaderFooterViewReuseIdentifier: String(describing: name))
     }
 
@@ -133,7 +133,7 @@
     /// - Parameters:
     ///   - nib: Nib file used to create the tableView cell.
     ///   - name: UITableViewCell type.
-    func register<T: UITableViewCell>(nib: UINib?, withCellClass name: T.Type) {
+    func register(nib: UINib?, withCellClass name: (some UITableViewCell).Type) {
         register(nib, forCellReuseIdentifier: String(describing: name))
     }
 
@@ -143,7 +143,7 @@
     /// - Parameters:
     ///   - name: UITableViewCell type.
     ///   - bundleClass: Class in which the Bundle instance will be based on.
-    func register<T: UITableViewCell>(nibWithCellClass name: T.Type, at bundleClass: AnyClass? = nil) {
+    func register(nibWithCellClass name: (some UITableViewCell).Type, at bundleClass: AnyClass? = nil) {
         let identifier = String(describing: name)
         var bundle: Bundle?
 

--
Gitblit v1.7.1