diff --git a/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift b/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift index 8710bed6b1..3156f42864 100644 --- a/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift +++ b/RevenueCatUI/CustomerCenter/Views/CustomerCenterView.swift @@ -32,9 +32,6 @@ public struct CustomerCenterView: View { @Environment(\.colorScheme) private var colorScheme - private var localization: CustomerCenterConfigData.Localization - private var appearance: CustomerCenterConfigData.Appearance - private var supportInformation: CustomerCenterConfigData.Support? /// Create a view to handle common customer support tasks /// - Parameters: @@ -43,16 +40,10 @@ public struct CustomerCenterView: View { public init(customerCenterActionHandler: CustomerCenterActionHandler? = nil) { self._viewModel = .init(wrappedValue: CustomerCenterViewModel(customerCenterActionHandler: customerCenterActionHandler)) - self.localization = .default - self.appearance = .default } - fileprivate init(viewModel: CustomerCenterViewModel, - localization: CustomerCenterConfigData.Localization = .default, - appearance: CustomerCenterConfigData.Appearance = .default) { + fileprivate init(viewModel: CustomerCenterViewModel) { self._viewModel = .init(wrappedValue: viewModel) - self.localization = localization - self.appearance = appearance } // swiftlint:disable:next missing_docs @@ -118,7 +109,8 @@ private extension CustomerCenterView { @ViewBuilder func destinationView(configuration: CustomerCenterConfigData) -> some View { - let accentColor = Color.from(colorInformation: self.appearance.accentColor, for: self.colorScheme) + let accentColor = Color.from(colorInformation: configuration.appearance.accentColor, + for: self.colorScheme) CompatibilityNavigationStack { destinationContent(configuration: configuration)