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,