LinkRow.swift 287 B

123456789101112131415161718
  1. // LoopFollow
  2. // LinkRow.swift
  3. import Foundation
  4. import SwiftUI
  5. @ViewBuilder
  6. func LinkRow(
  7. title: String,
  8. icon: String,
  9. tint: Color = .white,
  10. url: URL
  11. ) -> some View {
  12. ActionRow(title: title, icon: icon, tint: tint) {
  13. UIApplication.shared.open(url)
  14. }
  15. }