Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit 5dd6d3c

Browse files
committed
Replace reusable type to be dequeued as table view header-footer views
with the correct UIView subclass
1 parent 41c7510 commit 5dd6d3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Library/UIKit/UITableView+ReuseIdentifierProtocol.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public extension UITableView {
4444

4545
- returns: A UITableViewHeaderFooterView object with the associated identifier or nil if no such object exists in the reusable view queue or if it couldn't be cast correctly.
4646
*/
47-
public func dequeueReusableHeaderFooterViewWithIdentifier<Identifier: ReuseIdentifierType where Identifier.ReusableType: UIView>(identifier: Identifier) -> Identifier.ReusableType? {
47+
public func dequeueReusableHeaderFooterViewWithIdentifier<Identifier: ReuseIdentifierType where Identifier.ReusableType: UITableViewHeaderFooterView>(identifier: Identifier) -> Identifier.ReusableType? {
4848
return dequeueReusableHeaderFooterViewWithIdentifier(identifier.identifier) as? Identifier.ReusableType
4949
}
5050

0 commit comments

Comments
 (0)