-
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
Allow extensibility through using a custom GalleryItem #80
Conversation
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.
Looks good to me..just minor name thing..
} | ||
|
||
return GalleryItem.custom(fetchImageBlock: myFetchImageBlock, getViewController: getViewController) | ||
} |
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.
I would rename the argument name to itemViewController
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.
👍 changed it to itemViewControllerBlock
I made ItemBaseController public so it can be inherited from Now there is still an issue - in the example the displaced view animations don't work on this item :( |
They should work...I don't see any reason why not..did you implement the displaced Datasource? |
* 'master' of https://github.com/MailOnline/ImageViewer: Add warning about 3.1 Fix typo Cleanup README.md Add CHANGELOG.md
…stom Changing a few more things to public to make GalleryItem.custom work
It was to do with not setting the |
* 'master' of https://github.com/MailOnline/ImageViewer: Slight change to follow convention Gallery not clipped to bounds Remove extra empty line Added activity indicator to ItemBaseController Unnecessary white space removed PR suggestions followed Overlay view added to back of the gallery instead of the original view controller Fix executing launchedCompletion block
Looks good...if it indeed works, let's merge merge merge. And win win win. |
Using the
.custom
GalleryItem type, people will be able to use theirUIImageView
subclasses in the galleryExample in the example project. Feedback is welcome
PS: hopefully helps with #56