11# UIImagePlusPDF
2- [ ![ Swift 4.2] ( https://img.shields.io/badge/Swift-4.2 -orange.svg?style=flat )] ( https://developer.apple.com/swift/ )
2+ [ ![ Swift 4.2] ( https://img.shields.io/badge/Swift-5.3 -orange.svg?style=flat )] ( https://developer.apple.com/swift/ )
33[ ![ CocoaPods compatible] ( https://img.shields.io/cocoapods/v/UIImagePlusPDF.svg )] ( https://cocoapods.org/pods/UIImagePlusPDF )
44[ ![ Packagist] ( https://img.shields.io/packagist/l/doctrine/orm.svg )] ( )
55
@@ -12,9 +12,6 @@ Using `UIImagePlusPDF` you can avoid a lot `png` images files (1x, 2x, 3x sizes)
1212
1313``` ruby
1414pod ' UIImagePlusPDF'
15-
16- # for swift less than 4.2 use:
17- pod ' UIImagePlusPDF' , ' ~> 1.0.1'
1815```
1916
2017``` swift
@@ -72,28 +69,28 @@ UIImage.removeAllPDFDiskCache()
7269// memory cached pdf with name
7370UIImage.removeMemoryCachedPDFImage (
7471 with : " pdf name" ,
75- size : CGSize ( width : usedWidth, height : usedHeight) ,
72+ size : imageSize ,
7673 pageNumber : 1 /* optional, default is 1*/
7774)
7875
7976// memory cached pdf with url
8077UIImage.removeMemoryCachedPDFImage (
8178 with : URL (string : " path" ),
82- size : CGSize ( width : usedWidth, height : usedHeight) ,
79+ size : imageSize ,
8380 pageNumber : 1 /* optional, default is 1*/
8481)
8582
8683// disk cached pdf with name
8784UIImage.removeDiskCachedPDFImage (
8885 with : " pdf name" ,
89- size : CGSize ( width : usedWidth, height : usedHeight) ,
86+ size : imageSize ,
9087 pageNumber : 1 /* optional, default is 1*/
9188)
9289
9390// disk cached pdf with url
9491UIImage.removeDiskCachedPDFImage (
9592 with : URL (string : " path" ),
96- size : CGSize ( width : usedWidth, height : usedHeight) ,
93+ size : imageSize ,
9794 pageNumber : 1 /* optional, default is 1*/
9895)
9996```
0 commit comments