-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: develop
Are you sure you want to change the base?
Conversation
Conflicts: Dokan/Dokan/Scenes/CategoryList/CategoryListViewController.swift
|
||
return CGSize(width: (collectionView.bounds.width / 2) - 20, height: 280) |
There was a problem hiding this comment.
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
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static let identifier = "CategoryFooterReusableView" | |
static let identifier = "CategoryFooterReusableView" |
No need for identifier, you can use IdentifiableView
instead.
public func configure() { | ||
addSubview(button) | ||
} |
There was a problem hiding this comment.
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
?
No description provided.