experiment(PodcastPlayerView): add ShareLink button to full player for sharing episode URL

This commit is contained in:
Krishna Kumar
2026-05-23 00:56:48 -05:00
parent 2a0cb2d648
commit 5c52693d4d

View File

@@ -467,6 +467,14 @@ struct PodcastPlayerView: View {
.background(Color(.systemGray5))
.clipShape(Capsule())
}
if let url = URL(string: articleUrl) {
ShareLink(item: url, subject: Text(vm.currentArticleTitle.isEmpty ? "Marks Podcast" : vm.currentArticleTitle)) {
Label("Share Episode", systemImage: "square.and.arrow.up")
.font(.system(size: 14, weight: .medium))
.foregroundStyle(.secondary)
}
}
}
}