You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-3Lines changed: 30 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -67,9 +67,10 @@ struct ContentView: View {
67
67
68
68
### Close Button Position
69
69
70
-
#### Availability: 2.2.0 or higher
70
+
#### Availability: 3.0.0 or higher
71
+
*Optional:* Defaults to .topLeft
71
72
72
-
The close button can be moved to the top right if desired. The `closeButtonTopRight` parameter accepts `bool`.
73
+
The close button position can be customized. The `closeButtonAlignment` parameter is an enum that accepts `.topLeft`, `.topRight`, `.bottomLeft`, `.bottomRight`, and `.hidden`.
A caption can be added to the image viewer. The caption will appear near the bottom of the image viewer (if the image fills the whole screen the text will appear on top of the image). The `caption` parameter accepts `Text`.
98
100
@@ -187,6 +189,31 @@ struct ContentView: View {
187
189
}
188
190
}
189
191
```
192
+
193
+
### Close Button Position
194
+
195
+
#### Availability: Below 3.0.0
196
+
#### *DEPRECATED*: View new usage above for >= 3.0.0
197
+
198
+
The close button can be moved to the top right if desired. The `closeButtonTopRight` parameter accepts `bool`.
0 commit comments