Skip to content

Create photos gallery view with auto animation and zooming functionality.

Notifications You must be signed in to change notification settings

manekdilip/MTPhotosGallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

MTPhotosGallery

Create photos gallery view with auto animation and zooming functionality. MTPhotosGallery written in Swift 3.0 and easy to use in project.

BackgroundImage

#Installation

Manually

Clone or Download this Repo. Then simply drag the class PhotosGalleryView.swift to your Xcode project.

###Simply way to integrate MTPhotosGallery

###Create PhotosGalleryView in ViewController

       class ViewController: UIViewController {

        var photosGalleryViewObj:PhotosGalleryView!
        var arrImagesListModel = [GalleryDataImages]()

        override func viewDidLoad() {
            super.viewDidLoad()

            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum1")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum2")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum3")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum4")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum5")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum6")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum7")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum8")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum9")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum10")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum11")))
            arrImagesListModel.append(GalleryDataImages(image_src: #imageLiteral(resourceName: "imgPhotosAlbum12")))

            //Photo Gallery View Create
            photosGalleryViewObj = PhotosGalleryView.init(frame: CGRect(x: 0,y: 50,width: self.view.frame.size.width,height:              self.view.frame.size.height - 50)).show(view: self.view, arrImagesListModel: arrImagesListModel) as! PhotosGalleryView
        }
    }

About

Create photos gallery view with auto animation and zooming functionality.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages