diff options
Diffstat (limited to 'iOSClient/ScanDocument/NCScan+CollectionView.swift')
-rw-r--r-- | iOSClient/ScanDocument/NCScan+CollectionView.swift | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/iOSClient/ScanDocument/NCScan+CollectionView.swift b/iOSClient/ScanDocument/NCScan+CollectionView.swift index 34290e86f..83185e615 100644 --- a/iOSClient/ScanDocument/NCScan+CollectionView.swift +++ b/iOSClient/ScanDocument/NCScan+CollectionView.swift @@ -23,7 +23,6 @@ import Foundation -@available(iOS 13.0, *) extension NCScan: UICollectionViewDataSource { func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { @@ -46,7 +45,7 @@ extension NCScan: UICollectionViewDataSource { // 72 DPI if imageWidthInPixels > 595 || imageHeightInPixels > 842 { - image = image.resizeImage(size: CGSize(width: 595, height: 842), isAspectRation: true) ?? image + image = image.resizeImage(size: CGSize(width: 595, height: 842)) ?? image } cell.customImageView?.image = image @@ -78,7 +77,7 @@ extension NCScan: UICollectionViewDataSource { // 72 DPI if imageWidthInPixels > 595 || imageHeightInPixels > 842 { - image = image.resizeImage(size: CGSize(width: 595, height: 842), isAspectRation: true) ?? image + image = image.resizeImage(size: CGSize(width: 595, height: 842)) ?? image } cell.customImageView?.image = filter(image: image) @@ -89,7 +88,6 @@ extension NCScan: UICollectionViewDataSource { } } -@available(iOS 13.0, *) extension NCScan: UICollectionViewDragDelegate { func collectionView(_ collectionView: UICollectionView, itemsForBeginning session: UIDragSession, at indexPath: IndexPath) -> [UIDragItem] { @@ -148,7 +146,6 @@ extension NCScan: UICollectionViewDragDelegate { } } -@available(iOS 13.0, *) extension NCScan: UICollectionViewDropDelegate { func collectionView(_ collectionView: UICollectionView, canHandle session: UIDropSession) -> Bool { |