Skip to content

Commit

Permalink
Remove to avoid naming collision
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Aug 9, 2024
1 parent 25748e4 commit c24452d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Pinwheel/Sources/Pinwheel/Extensions/Identifiable.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import Foundation

public protocol Identifiable {
public protocol ReuseIdentifiable {
static var reuseIdentifier: String { get }
}

public extension Identifiable {
public extension ReuseIdentifiable {
static var reuseIdentifier: String {
return String(describing: self)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import UIKit

extension UICollectionReusableView: Identifiable {}
extension UICollectionReusableView: ReuseIdentifiable {}

public extension UICollectionView {
func register(_ cellClass: UICollectionViewCell.Type) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import UIKit

extension UITableViewCell: Identifiable {}
extension UITableViewCell: ReuseIdentifiable {}

extension UITableViewHeaderFooterView: Identifiable {}
extension UITableViewHeaderFooterView: ReuseIdentifiable {}

public extension UITableView {
func register(_ cellClass: UITableViewCell.Type) {
Expand Down

0 comments on commit c24452d

Please sign in to comment.