
Team Member
From syxUI — written for both platforms, not translated between them.
A team-member row with avatar, role and a message button.
Cards · SwiftUI · iOS 17
- cards
- swiftui
The actual source
TeamMemberCard.swift
// Team Member · syxUI · https://syxui.dev/components/card-team
// 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)
}
}
// Team member card
struct TeamMemberCard: View {
let blue = Color(red: 0.0, green: 0.47, blue: 1.0)
var body: some View {
HStack(spacing: 12) {
Image("person_4").resizable().scaledToFill().frame(width: 50, height: 50).clipShape(Circle())
VStack(alignment: .leading, spacing: 2) {
Text("Arjun Patel").font(.system(size: 16, weight: .semibold))
Text("Lead Engineer").font(.system(size: 13)).foregroundStyle(.secondary)
}
Spacer()
Image(systemName: "message.fill").font(.system(size: 15)).foregroundStyle(blue).frame(width: 36, height: 36).background(blue.opacity(0.12), in: Circle())
}.formaCard(14).frame(width: 300)
}
}
iOS 17 · 1 dependencies
Dependencies
- SwiftUI
- person_4 (image asset)
Requires iOS 17


