Skip to content

Commit

Permalink
fix: identifier extension 수정 #38
Browse files Browse the repository at this point in the history
  • Loading branch information
0gonge committed Nov 28, 2024
1 parent 191d791 commit 926b294
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ import SnapKit
import Then

final class DetailHeaderView: UITableViewHeaderFooterView {

static let reuseIdentifier: String = "DetailHeaderView"


private let backgroundImageView = UIImageView().then {
$0.contentMode = .scaleAspectFill
$0.image = .icHeart36
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
import UIKit

final class TableViewFooter: UITableViewHeaderFooterView {

static let identifier = "TableViewFooter"


private let footer = Footer()

override init(reuseIdentifier: String?) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ final class TicketDetailController: UIViewController {
$0.rowHeight = UITableView.automaticDimension
$0.register(
DetailHeaderView.self,
forHeaderFooterViewReuseIdentifier: DetailHeaderView.reuseIdentifier
forHeaderFooterViewReuseIdentifier: DetailHeaderView.identifier
)
$0.register(
TableViewFooter.self,
Expand Down Expand Up @@ -174,7 +174,7 @@ extension TicketDetailController: UITableViewDelegate, UITableViewDataSource {
viewForHeaderInSection section: Int
) -> UIView? {
guard let header = tableView.dequeueReusableHeaderFooterView(
withIdentifier: DetailHeaderView.reuseIdentifier
withIdentifier: DetailHeaderView.identifier
) as? DetailHeaderView else {
return nil
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//
// UITableViewHeaderFooterView+Identifier.swift
// Yes24Ticket
//
// Created by 송여경 on 11/28/24.
//

import UIKit

extension UITableViewHeaderFooterView {

static var identifier: String {
return String(describing: self)
}

}

0 comments on commit 926b294

Please sign in to comment.