Simplify AppLicensesView - remove extension pattern

This commit is contained in:
Matt Bruce 2026-01-04 18:17:48 -06:00
parent d0e541910b
commit 5275289e67

View File

@ -8,11 +8,8 @@
import SwiftUI import SwiftUI
import Bedrock import Bedrock
// MARK: - App Licenses struct AppLicensesView: View {
private static let licenses: [License] = [
extension License {
/// All open source licenses used in SelfieCam
static let appLicenses: [License] = [
License( License(
name: "MijickCamera", name: "MijickCamera",
url: "https://github.com/Mijick/Camera", url: "https://github.com/Mijick/Camera",
@ -26,14 +23,10 @@ extension License {
description: "In-app subscriptions made easy." description: "In-app subscriptions made easy."
) )
] ]
}
// MARK: - App Licenses View
struct AppLicensesView: View {
var body: some View { var body: some View {
LicensesView( LicensesView(
licenses: License.appLicenses, licenses: Self.licenses,
backgroundColor: AppSurface.overlay, backgroundColor: AppSurface.overlay,
cardBackgroundColor: AppSurface.card, cardBackgroundColor: AppSurface.card,
cardBorderColor: AppBorder.subtle, cardBorderColor: AppBorder.subtle,