
Muted Avatar
From syxUI — written for both platforms, not translated between them.
A muted / inactive avatar.
Avatars · SwiftUI · iOS 17
- avatars
- swiftui
The actual source
AvatarMuted.swift
// Muted Avatar · syxUI · https://syxui.dev/components/avatar-muted
// Free in any project. Keep this line and credit syxUI where a person can read it.
import SwiftUI
func av(_ name: String, _ d: CGFloat) -> some View { Image(name).resizable().scaledToFill().frame(width: d, height: d).clipShape(Circle()) }
struct AvatarMuted: View { var body: some View { HStack(spacing: 12) { av("person_4", 56).saturation(0).opacity(0.6).overlay(alignment: .bottomTrailing) { Image(systemName: "speaker.slash.fill").font(.system(size: 9)).foregroundStyle(.white).frame(width: 20, height: 20).background(Color.gray, in: Circle()).overlay(Circle().stroke(Color(.systemBackground), lineWidth: 2)) }; VStack(alignment: .leading, spacing: 2) { Text("Muted").font(.system(size: 15, weight: .medium)).foregroundStyle(.secondary); Text("Notifications off").font(.system(size: 12)).foregroundStyle(.secondary) }; Spacer() }.frame(width: 220) } }
iOS 17 · 1 dependencies
Dependencies
- SwiftUI
- person_4 (image asset)
Requires iOS 17