Skip to content

Commit

Permalink
Add share button in Full screen image carousel view (for Image only)
Browse files Browse the repository at this point in the history
The ellipsis (share button) allows you to share the current image being displayed in the full screen carousel viewer.

Changelog-Changes: Add share button in Full screen image carousel view (for Image only)
Signed-off-by: Swift Coder  <[email protected]>
  • Loading branch information
scoder1747 committed Oct 29, 2024
1 parent b1b032d commit e800156
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions damus/Views/Images/FullScreenCarouselView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,24 @@ struct FullScreenCarouselView<Content: View>: View {
GeometryReader { geo in
VStack {
if showMenu {
NavDismissBarView(navDismissBarContainer: .fullScreenCarousel)
.foregroundColor(.white)

HStack {
NavDismissBarView(navDismissBarContainer: .fullScreenCarousel)
.foregroundColor(.white)

if let url = urls[safe: selectedIndex],
case .image = url {
ShareLink(item: url.url) {
Image(systemName: "ellipsis")
.foregroundColor(.white)
.frame(width: 33, height: 33)
.background(.damusBlack)
.clipShape(Circle())
}
.padding(20)
}
}

Spacer()

if urls.count > 1 {
Expand Down

0 comments on commit e800156

Please sign in to comment.