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 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,