NavigationRow.swift 592 B

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