Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add UISearchController and footer view to CategoryListViewController 🕵️ #120

Open
wants to merge 18 commits into
base: develop
Choose a base branch
from

Conversation

ahmednaagy
Copy link
Contributor

No description provided.

@ahmednaagy ahmednaagy requested a review from a team as a code owner August 19, 2022 06:26
@ahmednaagy ahmednaagy changed the title add UISearchController to CategoryListViewController add UISearchController to CategoryListViewController 🕵️ Aug 19, 2022
@ahmednaagy ahmednaagy changed the title add UISearchController to CategoryListViewController 🕵️ add UISearchController and footer view to CategoryListViewController 🕵️ Aug 26, 2022
Comment on lines 87 to 88

return CGSize(width: (collectionView.bounds.width / 2) - 20, height: 280)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add constants to Metrics enum

Suggested change
return CGSize(width: (collectionView.bounds.width / 2) - 20, height: 280)
return CGSize(width: (collectionView.bounds.width / 2) - 20, height: 280)


class CategoryFooterReusableView: UICollectionReusableView {

static let identifier = "CategoryFooterReusableView"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
static let identifier = "CategoryFooterReusableView"
static let identifier = "CategoryFooterReusableView"

No need for identifier, you can use IdentifiableView instead.

Comment on lines 25 to 27
public func configure() {
addSubview(button)
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not adding it inside init?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants