Created
April 27, 2019 15:37
-
-
Save dimohamdy/ec62605437a4a4e56d0806cdedf3b54e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IqraaliCollectionViewCell: UICollectionViewCell { | |
var book: BookEntity! | |
} | |
extension BookCollectionViewCell: UIViewControllerPreviewingDelegate { | |
func previewingContext(_ previewingContext: UIViewControllerPreviewing, viewControllerForLocation location: CGPoint) -> UIViewController? { | |
return AboutBookViewControllerWith(book) | |
} | |
func previewingContext(_ previewingContext: UIViewControllerPreviewing, commit viewControllerToCommit: UIViewController) { | |
sourceVC.show(viewControllerToCommit, sender: self) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment