Skip to content

Commit

Permalink
Merge pull request #10 from daangn/feature/ray/component-cell
Browse files Browse the repository at this point in the history
NO-JIRA UICollectionViewComponentCell 의 접근제어자를 조정해요
  • Loading branch information
OhKanghoon authored Feb 6, 2024
2 parents 86f336e + 3dd691a commit 8f6d06d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ final class UICollectionComponentReusableView: UICollectionReusableView, Compone
// MARK: - Initializing

@available(*, unavailable)
public required init?(coder aDecoder: NSCoder) {
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

public override init(frame: CGRect) {
override init(frame: CGRect) {
super.init(frame: frame)

backgroundColor = .clear
}

// MARK: - Override Methods

public override func preferredLayoutAttributesFitting(
override func preferredLayoutAttributesFitting(
_ layoutAttributes: UICollectionViewLayoutAttributes
) -> UICollectionViewLayoutAttributes {
let attributes = super.preferredLayoutAttributesFitting(layoutAttributes)
Expand Down
10 changes: 5 additions & 5 deletions Sources/KarrotListKit/View/UICollectionViewComponentCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
import Combine
import UIKit

final class UICollectionViewComponentCell: UICollectionViewCell, ComponentRenderable {
public final class UICollectionViewComponentCell: UICollectionViewCell, ComponentRenderable {

var renderedContent: UIView?
public internal(set) var renderedContent: UIView?

var coordinator: Any?

Expand All @@ -20,11 +20,11 @@ final class UICollectionViewComponentCell: UICollectionViewCell, ComponentRender
// MARK: - Initializing

@available(*, unavailable)
public required init?(coder aDecoder: NSCoder) {
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}

public override init(frame: CGRect) {
override init(frame: CGRect) {
super.init(frame: frame)

backgroundColor = .clear
Expand All @@ -37,7 +37,7 @@ final class UICollectionViewComponentCell: UICollectionViewCell, ComponentRender

// MARK: - Override Methods

override func prepareForReuse() {
public override func prepareForReuse() {
super.prepareForReuse()

cancellables?.forEach { $0.cancel() }
Expand Down

0 comments on commit 8f6d06d

Please sign in to comment.