ABCollage is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ABCollage'
collageView.horizontalfactors = [[2,1],[1,2],[1,1]] //optional
collageView.verticalFactors = [1,1,1] //optional
collageView.padding = 10 //optional
collageView.cornerRadius = 10 //optional
collageView.borderWidth = 3 //optional
let image1 = ABImage(image: UIImage(named: "test1")!)
let image2 = ABImage(image: UIImage(named: "test2")!)
let image3 = ABImage(image: UIImage(named: "test3")!)
let image4 = ABImage(image: UIImage(named: "test4")!)
let image5 = ABImage(image: UIImage(named: "test5")!)
let image6 = ABImage(image: UIImage(named: "test6")!)
collageView.media = [[image1,image2],
[image4,image3],
[image5,image6]]
collageView.setUserInteraction(enabled: true, vc: self) //optional
andreas bagias, [email protected]
ABCollage is available under the MIT license. See the LICENSE file for more info.