Impressia/Vernissage/Views/ThirdPartyView.swift

98 lines
4.3 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-10-19 13:24:02 +02:00
@MainActor
2023-02-08 21:09:51 +01:00
struct ThirdPartyView: View {
var body: some View {
List {
2023-10-18 11:14:56 +02:00
Section("thirdparty.lazyimage.title") {
2023-02-08 21:09:51 +01:00
VStack(alignment: .leading) {
2023-10-18 11:14:56 +02:00
Link("thirdparty.lazyimage.address",
2023-02-08 21:09:51 +01:00
destination: URL(string: "https://github.com/kean/Nuke")!)
.padding(.bottom, 4)
2023-10-18 11:14:56 +02:00
Text("thirdparty.lazyimage.description", comment: "Lazy image section description.")
2023-02-08 21:09:51 +01:00
}
.font(.footnote)
}
2023-10-18 11:14:56 +02:00
Section("thirdparty.customemoji.title") {
VStack(alignment: .leading) {
2023-10-18 11:14:56 +02:00
Link("thirdparty.customemoji.address",
2023-02-08 21:09:51 +01:00
destination: URL(string: "https://github.com/divadretlaw/EmojiText")!)
.padding(.bottom, 4)
2023-10-18 11:14:56 +02:00
Text("thirdparty.customemoji.description", comment: "Render Custom Emoji in Text. Supports local and remote emojis. Remote emojis are loadad and cached using Nuke.")
2023-02-08 21:09:51 +01:00
}
.font(.footnote)
}
2023-10-18 11:14:56 +02:00
Section("thirdparty.htmlmarkdown.title") {
VStack(alignment: .leading) {
2023-10-18 11:14:56 +02:00
Link("thirdparty.htmlmarkdown.address",
2023-02-08 21:09:51 +01:00
destination: URL(string: "https://gitlab.com/mflint/HTML2Markdown")!)
.padding(.bottom, 4)
2023-10-18 11:14:56 +02:00
Text("thirdparty.htmlmarkdown.description", comment: "It's a Swift Package which attempts to convert HTML into Markdown.")
2023-02-08 21:09:51 +01:00
}
.font(.footnote)
}
2023-10-18 11:14:56 +02:00
Section("thirdparty.oauth.title") {
VStack(alignment: .leading) {
2023-10-18 11:14:56 +02:00
Link("thirdparty.oauth.address",
2023-03-26 08:21:22 +02:00
destination: URL(string: "https://github.com/OAuthSwift/OAuthSwift")!)
2023-02-08 21:09:51 +01:00
.padding(.bottom, 4)
2023-10-18 11:14:56 +02:00
Text("thirdparty.oauth.description", comment: "Swift based OAuth library for iOS and macOS.")
2023-02-08 21:09:51 +01:00
}
.font(.footnote)
}
2023-10-18 11:14:56 +02:00
Section("thirdparty.notifications.title") {
VStack(alignment: .leading) {
2023-10-18 11:14:56 +02:00
Link("thirdparty.notifications.address",
2023-02-08 21:09:51 +01:00
destination: URL(string: "https://github.com/omaralbeik/Drops")!)
.padding(.bottom, 4)
2023-10-18 11:14:56 +02:00
Text("thirdparty.notifications.description", comment: "A µFramework for showing alerts like the one used when copying from pasteboard or connecting Apple pencil.")
2023-02-08 21:09:51 +01:00
}
.font(.footnote)
}
2023-10-18 11:14:56 +02:00
Section("thirdparty.htmlstring.title") {
VStack(alignment: .leading) {
2023-10-18 11:14:56 +02:00
Link("thirdparty.htmlstring.address",
2023-03-26 08:21:22 +02:00
destination: URL(string: "https://github.com/alexisakers/HTMLString")!)
.padding(.bottom, 4)
2023-10-18 11:14:56 +02:00
Text("thirdparty.htmlstring.description", comment: "HTMLString is a library written in Swift that allows your program to add and remove HTML entities in Strings.")
2023-03-26 08:21:22 +02:00
}
.font(.footnote)
}
2023-10-18 11:14:56 +02:00
Section("thirdparty.fleur.title") {
VStack(alignment: .leading) {
2023-10-18 11:14:56 +02:00
Link("thirdparty.fleur.address",
2023-04-01 09:36:00 +02:00
destination: URL(string: "https://fonts.google.com/specimen/Fleur+De+Leah")!)
2023-04-01 09:09:58 +02:00
.padding(.bottom, 4)
2023-10-18 11:14:56 +02:00
Text("thirdparty.fleur.description", comment: "Font used in the application in the icons and in the splash screen.")
2023-04-01 09:09:58 +02:00
}
.font(.footnote)
}
2023-05-01 07:50:24 +02:00
2023-10-18 11:14:56 +02:00
Section("thirdparty.qrcodes.title") {
2023-05-01 07:50:24 +02:00
VStack(alignment: .leading) {
2023-10-18 11:14:56 +02:00
Link("thirdparty.qrcodes.address",
2023-05-01 07:50:24 +02:00
destination: URL(string: "https://github.com/dmrschmidt/QRCode")!)
.padding(.bottom, 4)
2023-10-18 11:14:56 +02:00
Text("thirdparty.qrcodes.description", comment: "A simple QR code image generator to use in your apps, written in Swift 5.")
2023-05-01 07:50:24 +02:00
}
.font(.footnote)
}
2023-02-08 21:09:51 +01:00
}
2023-03-13 13:53:36 +01:00
.navigationTitle("thirdParty.navigationBar.title")
2023-02-21 08:36:14 +01:00
.navigationBarTitleDisplayMode(.inline)
2023-02-08 21:09:51 +01:00
}
}