From 5275289e675dd3425ee2fca39c9d2c007e9c1cea Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Sun, 4 Jan 2026 18:17:48 -0600 Subject: [PATCH] Simplify AppLicensesView - remove extension pattern --- SelfieCam/Features/Settings/LicensesView.swift | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/SelfieCam/Features/Settings/LicensesView.swift b/SelfieCam/Features/Settings/LicensesView.swift index edba66e..7cf2aee 100644 --- a/SelfieCam/Features/Settings/LicensesView.swift +++ b/SelfieCam/Features/Settings/LicensesView.swift @@ -8,11 +8,8 @@ import SwiftUI import Bedrock -// MARK: - App Licenses - -extension License { - /// All open source licenses used in SelfieCam - static let appLicenses: [License] = [ +struct AppLicensesView: View { + private static let licenses: [License] = [ License( name: "MijickCamera", url: "https://github.com/Mijick/Camera", @@ -26,14 +23,10 @@ extension License { description: "In-app subscriptions made easy." ) ] -} - -// MARK: - App Licenses View - -struct AppLicensesView: View { + var body: some View { LicensesView( - licenses: License.appLicenses, + licenses: Self.licenses, backgroundColor: AppSurface.overlay, cardBackgroundColor: AppSurface.card, cardBorderColor: AppBorder.subtle,