Inkspring / app · inkspring.ai / native-mac / Sources / Inkspring / SetupHelpLink.swift
| 1 | import SwiftUI |
| 2 | |
| 3 | struct SetupHelpLink: View { |
| 4 | let title: String |
| 5 | let topic: String |
| 6 | let description: String |
| 7 | |
| 8 | init(_ title: String, topic: String, description: String? = nil) { |
| 9 | self.title = title |
| 10 | self.topic = topic |
| 11 | self.description = description ?? title |
| 12 | } |
| 13 | |
| 14 | var body: some View { |
| 15 | Link(destination: URL(string: "https://inkspring.ai/help#" + topic)!) { |
| 16 | StudioLinkOutLabel { Label(title, systemImage: "questionmark.circle") } |
| 17 | .font(.callout) |
| 18 | } |
| 19 | .help(description + " (opens in your browser)") |
| 20 | .accessibilityLabel(description) |
| 21 | } |
| 22 | } |