Glyph.swift 562 B

12345678910111213141516171819202122232425
  1. // LoopFollow
  2. // Glyph.swift
  3. import SwiftUI
  4. struct Glyph: View {
  5. let symbol: String
  6. let tint: Color
  7. @Environment(\.colorScheme) private var scheme
  8. var body: some View {
  9. ZStack {
  10. RoundedRectangle(cornerRadius: 8, style: .continuous)
  11. .fill(Color(uiColor: .systemGray))
  12. .frame(width: 28, height: 28)
  13. Image(systemName: symbol)
  14. .font(.system(size: 16, weight: .regular))
  15. .foregroundStyle(tint)
  16. }
  17. .frame(width: 36, height: 36)
  18. }
  19. }