We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42b7fbf commit cedd445Copy full SHA for cedd445
README.md
@@ -110,6 +110,29 @@ struct ContentView: View {
110
}
111
```
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
136
# Compatibility
137
138
This package is compatible on iOS 13 and later.
0 commit comments