Yattee v2 rewrite

This commit is contained in:
Arkadiusz Fal
2026-02-08 18:31:16 +01:00
parent 20d0cfc0c7
commit 05f921d605
1043 changed files with 163875 additions and 68430 deletions

View File

@@ -0,0 +1,49 @@
//
// AcknowledgementsView.swift
// Yattee
//
// Lists dependencies and open source libraries used in the app.
//
import SwiftUI
struct AcknowledgementsView: View {
@Environment(\.openURL) private var openURL
var body: some View {
Form {
Section {
dependencyLink("mpv", url: "https://github.com/mpv-player/mpv")
dependencyLink("MPVKit", url: "https://github.com/mpvkit/MPVKit")
dependencyLink("Nuke", url: "https://github.com/kean/Nuke")
} header: {
Text(String(localized: "settings.acknowledgements.dependencies.header"))
}
}
.navigationTitle(String(localized: "settings.acknowledgements.title"))
#if os(iOS)
.navigationBarTitleDisplayMode(.inline)
#endif
}
private func dependencyLink(_ name: String, url: String) -> some View {
Button {
if let url = URL(string: url) {
openURL(url)
}
} label: {
HStack {
Text(name)
Spacer()
Image(systemName: "arrow.up.right")
.foregroundStyle(.secondary)
}
}
}
}
#Preview {
NavigationStack {
AcknowledgementsView()
}
}