|
@ -21,6 +21,8 @@ struct ImageViewer: View { |
|
|
.loadDiskFileSynchronously() |
|
|
.loadDiskFileSynchronously() |
|
|
.scaleFactor(UIScreen.main.scale) |
|
|
.scaleFactor(UIScreen.main.scale) |
|
|
.fade(duration: 0.1) |
|
|
.fade(duration: 0.1) |
|
|
|
|
|
.resizable() |
|
|
|
|
|
.aspectRatio(contentMode: .fit) |
|
|
.tabItem { |
|
|
.tabItem { |
|
|
Text(url.absoluteString) |
|
|
Text(url.absoluteString) |
|
|
} |
|
|
} |
|
@ -45,6 +47,8 @@ struct ImageCarousel: View { |
|
|
.loadDiskFileSynchronously() |
|
|
.loadDiskFileSynchronously() |
|
|
.scaleFactor(UIScreen.main.scale) |
|
|
.scaleFactor(UIScreen.main.scale) |
|
|
.fade(duration: 0.1) |
|
|
.fade(duration: 0.1) |
|
|
|
|
|
.resizable() |
|
|
|
|
|
.aspectRatio(contentMode: .fit) |
|
|
.tabItem { |
|
|
.tabItem { |
|
|
Text(url.absoluteString) |
|
|
Text(url.absoluteString) |
|
|
} |
|
|
} |
|
|