Skip to content

Commit 316ca13

Browse files
Updated to 1.2.0
Added unit tests. Fixed size bug. Updated syntax.
1 parent 9aa2dd7 commit 316ca13

File tree

7 files changed

+424
-318
lines changed

7 files changed

+424
-318
lines changed

README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
1414
pod '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
7370
UIImage.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
8077
UIImage.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
8784
UIImage.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
9491
UIImage.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

Comments
 (0)