diff options
Diffstat (limited to 'Captura')
| -rw-r--r-- | Captura/Captura.entitlements | 5 | ||||
| -rw-r--r-- | Captura/Info.plist | 2 | ||||
| -rw-r--r-- | Captura/Presentation/Screens/PreferencesScreen.swift | 3 | ||||
| -rw-r--r-- | Captura/Presentation/Settings/AboutSettings.swift | 29 |
4 files changed, 39 insertions, 0 deletions
diff --git a/Captura/Captura.entitlements b/Captura/Captura.entitlements index f6cc65e..b7ad98c 100644 --- a/Captura/Captura.entitlements +++ b/Captura/Captura.entitlements @@ -2,6 +2,11 @@ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> + <key>com.apple.security.temporary-exception.mach-lookup.global-name</key> + <array> + <string>$(PRODUCT_BUNDLE_IDENTIFIER)-spks</string> + <string>$(PRODUCT_BUNDLE_IDENTIFIER)-spki</string> + </array> <key>com.apple.developer.aps-environment</key> <string>development</string> <key>com.apple.developer.icloud-container-identifiers</key> diff --git a/Captura/Info.plist b/Captura/Info.plist index e997f3d..4c54891 100644 --- a/Captura/Info.plist +++ b/Captura/Info.plist @@ -2,6 +2,8 @@ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> + <key>SUEnableInstallerLauncherService</key> + <true/> <key>SUFeedURL</key> <string>https://captura.tranquil.systems/appcast.xml</string> <key>SUPublicEDKey</key> diff --git a/Captura/Presentation/Screens/PreferencesScreen.swift b/Captura/Presentation/Screens/PreferencesScreen.swift index c9c0c07..17ec3d7 100644 --- a/Captura/Presentation/Screens/PreferencesScreen.swift +++ b/Captura/Presentation/Screens/PreferencesScreen.swift @@ -9,6 +9,9 @@ struct PreferencesScreen: View { AdvancedSettings().tabItem { Label("Advanced", systemImage: "gear") }.padding(8.0).frame(minWidth: 300, minHeight: 260) + AboutSettings().tabItem { + Label("About", systemImage: "questionmark.circle.fill") + }.padding(8.0).frame(minWidth: 300, minHeight: 260) }.padding(16.0) } } diff --git a/Captura/Presentation/Settings/AboutSettings.swift b/Captura/Presentation/Settings/AboutSettings.swift new file mode 100644 index 0000000..f5fe77c --- /dev/null +++ b/Captura/Presentation/Settings/AboutSettings.swift @@ -0,0 +1,29 @@ +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() +} |