Currently Picture only shows text for the initial images. We should display an Image if there is only one image. This will be the default behavior for Picture, there will be ways to customize the single or multiple images. This ticket should only focus on displaying a single image. A simple SwiftUI Image view would be fine.
The code is located in the Picture.swift file:
public var body: some View {
Group {
if sources.count == 1 {
Text("Image") // Single Image
} else {
// ...
}
}
.sheet(isPresented: $isFullscreen) {
fullscreenView
}
.onTapGesture {
isFullscreen = true
}
}
Currently Picture only shows text for the initial images. We should display an Image if there is only one image. This will be the default behavior for Picture, there will be ways to customize the single or multiple images. This ticket should only focus on displaying a single image. A simple
SwiftUIImageview would be fine.The code is located in the
Picture.swiftfile: