Skip to content

Display Multiple Images for Picture #9

Description

@0xLeif

Currently Picture only shows text for the initial images. We should display multiple Images. 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 multiple images. Some simple SwiftUI Image views would be fine.

The code is located in the Picture.swift file:

public var body: some View {
    Group {
        if sources.count == 1 {
            // ...
        } else {
            Text("Images: \(sources.count)") // Multiple Images
        }
    }
    .sheet(isPresented: $isFullscreen) {
        fullscreenView
    }
    .onTapGesture {
        isFullscreen = true
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions