+import SwiftUI
+
+struct AboutSettings: View {
+
+ var appVersion: String {
+ let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "Unknown"
+ let build = Bundle.main.infoDictionary?["CFBundleVersion"] as? String ?? "Unknown"
+ return "Version \(version) (\(build))"
+ }
+
+ var imprint = (try? AttributedString(markdown: "Captura is open source. Help and more information available at [captura.tranquil.systems](https://captura.tranquil.systems)")) ?? ""
+
+ var body: some View {
+ Form {
+ VStack (alignment: .center) {
+ Text("Captura").bold()
+ Text(appVersion).foregroundStyle(.secondary)
+ Spacer()
+ Text(imprint)
+ .multilineTextAlignment(.center)
+ }
+ Spacer()
+ }
+ }
+}
+
+#Preview {
+ AboutSettings()
+}