Resize images in imageviewer to fill the space
Changelog-Fixed: Resize images to fill the space
This commit is contained in:
committed by
William Casarin
parent
d002654624
commit
1615671dfb
@@ -21,6 +21,8 @@ struct ImageViewer: View {
|
||||
.loadDiskFileSynchronously()
|
||||
.scaleFactor(UIScreen.main.scale)
|
||||
.fade(duration: 0.1)
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.tabItem {
|
||||
Text(url.absoluteString)
|
||||
}
|
||||
@@ -45,6 +47,8 @@ struct ImageCarousel: View {
|
||||
.loadDiskFileSynchronously()
|
||||
.scaleFactor(UIScreen.main.scale)
|
||||
.fade(duration: 0.1)
|
||||
.resizable()
|
||||
.aspectRatio(contentMode: .fit)
|
||||
.tabItem {
|
||||
Text(url.absoluteString)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user