Impressia/Vernissage/Views/SettingsView/Subviews/OtherSectionView.swift

78 lines
3.0 KiB
Swift
Raw Normal View History

2023-02-08 21:09:51 +01:00
//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
2023-03-28 10:35:38 +02:00
// Licensed under the Apache License 2.0.
2023-02-08 21:09:51 +01:00
//
import SwiftUI
2023-02-21 07:05:06 +01:00
struct OtherSectionView: View {
2023-02-08 21:09:51 +01:00
var body: some View {
2023-03-13 13:53:36 +01:00
Section("settings.title.other") {
2023-02-08 21:09:51 +01:00
NavigationLink(value: RouteurDestinations.thirdParty) {
2023-03-13 13:53:36 +01:00
Text("settings.title.thirdParty", comment: "Third party")
2023-02-08 21:09:51 +01:00
}
2023-03-19 08:09:44 +01:00
HStack {
Text("settings.title.privacyPolicy", comment: "Privacy policy")
Spacer()
Link(NSLocalizedString("settings.title.openPage", comment: "Open"), destination: URL(string: "https://mczachurski.dev/vernissage/privacy-policy.html")!)
.font(.footnote)
}
HStack {
Text("settings.title.terms", comment: "Terms & Conditions")
Spacer()
Link(NSLocalizedString("settings.title.openPage", comment: "Open"), destination: URL(string: "https://mczachurski.dev/vernissage/terms.html")!)
.font(.footnote)
}
2023-02-08 21:09:51 +01:00
HStack {
2023-03-13 13:53:36 +01:00
Text("settings.title.reportBug", comment: "Report a bug")
2023-02-08 21:09:51 +01:00
Spacer()
2023-03-13 13:53:36 +01:00
Link(NSLocalizedString("settings.title.githubIssues", comment: "Issues on GitHub"), destination: URL(string: "https://github.com/VernissageApp/Home/issues")!)
2023-02-08 21:09:51 +01:00
.font(.footnote)
}
2023-03-19 08:09:44 +01:00
HStack {
VStack(alignment: .leading) {
Text("settings.title.followVernissage", comment: "Follow Vernissage")
Text("Mastodon account")
.font(.footnote)
.foregroundColor(.lightGrayColor)
}
Spacer()
Link("@vernissage", destination: URL(string: "https://mastodon.social/@vernissage")!)
.font(.footnote)
}
2023-02-08 21:09:51 +01:00
HStack {
2023-03-19 08:09:44 +01:00
VStack(alignment: .leading) {
Text("settings.title.follow", comment: "Follow me")
Text("settings.title.mastodonAccount", comment: "Mastodon account")
.font(.footnote)
.foregroundColor(.lightGrayColor)
}
2023-02-08 21:09:51 +01:00
Spacer()
Link("@mczachurski", destination: URL(string: "https://mastodon.social/@mczachurski")!)
.font(.footnote)
}
2023-03-19 08:09:44 +01:00
HStack {
VStack(alignment: .leading) {
Text("settings.title.follow", comment: "Follow me")
Text("settings.title.pixelfedAccount", comment: "Pixelfed account")
.font(.footnote)
.foregroundColor(.lightGrayColor)
}
Spacer()
Link("@mczachurski", destination: URL(string: "https://pixelfed.social/@mczachurski")!)
.font(.footnote)
}
2023-02-08 21:09:51 +01:00
}
}
}