Skip to content

Commit cedd445

Browse files
authored
Update README with option to disable cache
1 parent 42b7fbf commit cedd445

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,29 @@ struct ContentView: View {
110110
}
111111
```
112112

113+
### Disable Cache
114+
115+
#### Availability: 1.0.25 or higher
116+
117+
To disable cache on the remote image viewer, simply pass a `Bool` value to the `disableCache` parameter
118+
119+
Example:
120+
```Swift
121+
import ImageViewerRemote
122+
123+
struct ContentView: View {
124+
@State var showImageViewer: Bool = true
125+
126+
var body: some View {
127+
VStack {
128+
Text("Example!")
129+
}
130+
.frame(maxWidth: .infinity, maxHeight: .infinity)
131+
.overlay(ImageViewerRemote(imageURL: URL(string: "https://..."), viewerShown: self.$showImageViewer, disableCache: true))
132+
}
133+
}
134+
```
135+
113136
# Compatibility
114137

115138
This package is compatible on iOS 13 and later.

0 commit comments

Comments
 (0)