Skip to content

Commit

Permalink
P-12: Create file for #8
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Oct 12, 2023
1 parent 5bf9cca commit 4fa8842
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Sources/Picture/Internal/SingleImageView.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import SwiftUI

// TODO: [P-8](https://github.com/0xOpenBytes/Picture/issues/8)
public struct SingleImageView: View {
let image: Image

public var body: some View {
image
}
}

struct SingleImageView_Preview: PreviewProvider {
static var previews: some View {
SingleImageView(image: Image(systemName: "photo.artframe"))
}
}

0 comments on commit 4fa8842

Please sign in to comment.