File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,29 @@ struct ContentView: View {
110
110
}
111
111
```
112
112
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
+
113
136
# Compatibility
114
137
115
138
This package is compatible on iOS 13 and later.
You can’t perform that action at this time.
0 commit comments