Skip to content

Commit

Permalink
Fix iphone12 layout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
woookDev authored and tilltue committed Jun 3, 2021
1 parent 7ba7238 commit 4cb8f2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions TLPhotoPicker/Classes/TLPhotosPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ extension TLPhotosPickerViewController {
let width = floor((self.view.frame.size.width-(5*(count-1)))/count)
self.thumbnailSize = CGSize(width: width, height: width)
layout.itemSize = self.thumbnailSize
layout.minimumInteritemSpacing = 0
self.collectionView.collectionViewLayout = layout
self.placeholderThumbnail = centerAtRect(image: self.configure.placeholderIcon, rect: CGRect(x: 0, y: 0, width: width, height: width))
self.cameraImage = centerAtRect(image: self.configure.cameraIcon, rect: CGRect(x: 0, y: 0, width: width, height: width), bgColor: self.configure.cameraBgColor)
Expand Down

0 comments on commit 4cb8f2d

Please sign in to comment.