Branchwell

Inkspring / app · inkspring.ai / native-mac / Sources / Inkspring / SetupHelpLink.swift

Raw 635 B on 8f75dd7d901e2186ca9d9e1cf2f061105c02ae42
1import SwiftUI
2
3struct 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}