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

added support for custom "See all" close buttons #109

Merged
merged 3 commits into from
Feb 4, 2017
Merged

added support for custom "See all" close buttons #109

merged 3 commits into from
Feb 4, 2017

Conversation

miex0r
Copy link
Contributor

@miex0r miex0r commented Feb 3, 2017

It was useful for me to have a unique button and button layout for the dismissal of the thumbnail view

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())
Copy link
Collaborator

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

@zfoltin
Copy link
Collaborator

zfoltin commented Feb 3, 2017

LGTM 👍 Thanks @miex0r for contributing 👌

case .seeAllCloseButtonMode(let buttonMode):

switch buttonMode {

Copy link
Collaborator

Choose a reason for hiding this comment

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

extra space

@miex0r
Copy link
Contributor Author

miex0r commented Feb 3, 2017

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).

@zfoltin zfoltin merged commit a4c7735 into Krisiacik:master Feb 4, 2017
@zfoltin
Copy link
Collaborator

zfoltin commented Feb 4, 2017

👍 looking forward to the next PR :) There is a lot that could be improved on the thumbnails view

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.

None yet

3 participants