mirror of
https://github.com/sudosylabs/vnidrop.git
synced 2026-08-05 02:29:55 +02:00
feat(apple): replace About source-code link with privacy policy
This commit is contained in:
@@ -116,7 +116,7 @@ struct StorageSettings: View {
|
|||||||
struct AboutSettings: View {
|
struct AboutSettings: View {
|
||||||
@ObservedObject var model: SettingsModel
|
@ObservedObject var model: SettingsModel
|
||||||
|
|
||||||
private static let sourceURL = URL(string: "https://github.com/vnidrop/vnidrop")!
|
private static let privacyPolicyURL = URL(string: "https://github.com/vnidrop/vnidrop")!
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
Section {
|
Section {
|
||||||
@@ -152,8 +152,8 @@ struct AboutSettings: View {
|
|||||||
LabeledContent(String(localized: "os_version_title"), value: device.operatingSystem)
|
LabeledContent(String(localized: "os_version_title"), value: device.operatingSystem)
|
||||||
}
|
}
|
||||||
LabeledContent(String(localized: "about_license_label"), value: "Apache 2.0")
|
LabeledContent(String(localized: "about_license_label"), value: "Apache 2.0")
|
||||||
Link(destination: Self.sourceURL) {
|
Link(destination: Self.privacyPolicyURL) {
|
||||||
Label(String(localized: "about_source_label"), systemImage: "link")
|
Label(String(localized: "about_privacy_policy_label"), systemImage: "hand.raised")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -207,12 +207,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"about_source_label" : {
|
"about_privacy_policy_label" : {
|
||||||
"localizations" : {
|
"localizations" : {
|
||||||
"en" : {
|
"en" : {
|
||||||
"stringUnit" : {
|
"stringUnit" : {
|
||||||
"state" : "translated",
|
"state" : "translated",
|
||||||
"value" : "Source code"
|
"value" : "Privacy policy"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user