
Podcast Row
From syxUI — written for both platforms, not translated between them.
A podcast episode row with cover and time left.
Cards · SwiftUI · iOS 17
- cards
- swiftui
The actual source
PodcastRow.swift
// Podcast Row · syxUI · https://syxui.dev/components/media2-podcast-row
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
extension View {
func formaCard(_ pad: CGFloat = 18) -> some View {
self.padding(pad)
.background(Color(.systemBackground), in: RoundedRectangle(cornerRadius: 20, style: .continuous))
.overlay(RoundedRectangle(cornerRadius: 20, style: .continuous).stroke(Color.primary.opacity(0.06), lineWidth: 1))
.shadow(color: .black.opacity(0.05), radius: 14, x: 0, y: 6)
}
}
// Podcast episode row
struct PodcastRow: View {
var body: some View {
HStack(spacing: 12) {
RoundedRectangle(cornerRadius: 10, style: .continuous).fill(LinearGradient(colors: [Color(red: 0.36, green: 0.42, blue: 0.9), Color(red: 0.16, green: 0.18, blue: 0.42)], startPoint: .topLeading, endPoint: .bottomTrailing)).frame(width: 60, height: 60).overlay(Image(systemName: "mic.fill").font(.system(size: 20)).foregroundStyle(.white))
VStack(alignment: .leading, spacing: 4) {
Text("The Future of AI").font(.system(size: 15, weight: .semibold)).lineLimit(1)
Text("Tech Talks Daily").font(.system(size: 12)).foregroundStyle(.secondary)
HStack(spacing: 8) { Image(systemName: "play.circle.fill").font(.system(size: 18)).foregroundStyle(.primary); Text("42 min left").font(.system(size: 12)).foregroundStyle(.secondary) }
}
Spacer()
}.formaCard(14).frame(width: 320)
}
}
iOS 17 · No dependencies
Dependencies
- SwiftUI
- No external dependencies
Requires iOS 17


