xxxxxxxxxx
//
// ViewController.swift
// GalleryImagePicker
//
// Created by Md Murad Hossain on 16/10/22.
//
import UIkit
class ViewController: UIViewController {
@IBOutlet weak var collectionView: UICollectionView!
var selectedImageArr = [UIImage]()
override func viewDidLoad() {
super.viewDidLoad()
// Register Fucntion call
setupCollectionView()
}
// MARK: Register the CollectionViewCell
func setupCollectionView() {
let nib = UINib(nibName: "CollectionViewCell", bundle: nil)
collectionView.register(nib, forCellWithReuseIdentifier: "cell")
collectionView.delegate = self
collectionView.dataSource = self
}