NavigationRow.swift 637 B

123456789101112131415161718192021222324252627
  1. // LoopFollow
  2. // NavigationRow.swift
  3. // Created by Jonas Björkert on 2025-05-27.
  4. import SwiftUI
  5. struct NavigationRow: View {
  6. let title: String
  7. let icon: String
  8. var iconTint: Color = .white
  9. let action: () -> Void
  10. var body: some View {
  11. Button(action: action) {
  12. HStack {
  13. Glyph(symbol: icon, tint: iconTint)
  14. Text(title)
  15. Spacer()
  16. Image(systemName: "chevron.right")
  17. .foregroundColor(Color(uiColor: .tertiaryLabel))
  18. }
  19. .contentShape(Rectangle())
  20. }
  21. .buttonStyle(.plain)
  22. }
  23. }