Simplify AppLicensesView - remove extension pattern
This commit is contained in:
parent
d0e541910b
commit
5275289e67
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user