-
Notifications
You must be signed in to change notification settings - Fork 390
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
added support for custom "See all" close buttons #109
Conversation
if let closeButton = seeAllCloseButton { | ||
thumbnailsController.closeButton = closeButton | ||
thumbnailsController.closeLayout = seeAllCloseLayout | ||
} else if let closeButton = closeButton { | ||
let seeAllCloseButton = UIButton(frame: CGRect(origin: CGPoint.zero, size: closeButton.bounds.size)) | ||
seeAllCloseButton.setImage(closeButton.image(for: UIControlState()), for: UIControlState()) |
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.
not related to this PR but this should be .normal
instead of UIControlState()
... will fix it at some point
LGTM 👍 Thanks @miex0r for contributing 👌 |
case .seeAllCloseButtonMode(let buttonMode): | ||
|
||
switch buttonMode { | ||
|
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.
extra space
removed the extra line. NP @zfoltin - glad to help. love the plugin so far. another PR i may put in next week will be configuration around the thumbnail collection view cell cards. It would be cool to customize the style of those (custom shadows,margins,etc). |
👍 looking forward to the next PR :) There is a lot that could be improved on the thumbnails view |
It was useful for me to have a unique button and button layout for the dismissal of the thumbnail view