oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1import SwiftUI
2
3/// Third-party attribution is reachable from Account on both platforms.
4/// The copyright and licence text is the dependency's verbatim notice.
5struct MarkdownNotices: View {
6 private var licence: String {
7 guard let url = Bundle.module.url(forResource: "SwiftCMark-LICENSE", withExtension: "txt"),
8 let text = try? String(contentsOf: url, encoding: .utf8) else { return "" }
9 return text
10 }
11 var body: some View {
12 Section {
13 DisclosureGroup {
14 Text(verbatim: licence).font(.caption).textSelection(.enabled)
15 Link(destination: URL(string: "https://github.com/swiftlang/swift-cmark/tree/08ddb528923cc1a6527e02b7a1aee9e516ca749a")!) { Text(verbatim: "swiftlang/swift-cmark") }
16 } label: { Text(verbatim: "swift-cmark") }
17 }
18 }
19}
20