From c3ba748728d02b121c1b8bb6f13573d939d78916 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Fri, 17 Mar 2023 11:42:05 +0530 Subject: [PATCH] color configuration updates --- VDS/Components/Notification/Notification.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/VDS/Components/Notification/Notification.swift b/VDS/Components/Notification/Notification.swift index f15f99f2..483d7f9c 100644 --- a/VDS/Components/Notification/Notification.swift +++ b/VDS/Components/Notification/Notification.swift @@ -86,13 +86,13 @@ public class Notification: View { //-------------------------------------------------- // MARK: - Configuration //-------------------------------------------------- - private var backgroundColorConfiguration: KeyedColorConfiguration = { - let config = KeyedColorConfiguration(keyName: "type") + private var backgroundColorConfiguration: AnyColorable = { + let config = KeyedColorConfiguration(keyPath: \.type) config.setSurfaceColors(VDSColor.feedbackInformationBackgroundOnlight, VDSColor.feedbackInformationBackgroundOndark, forKey: .info) config.setSurfaceColors(VDSColor.feedbackWarningBackgroundOnlight, VDSColor.feedbackWarningBackgroundOndark, forKey: .warning) config.setSurfaceColors(VDSColor.feedbackSuccessBackgroundOnlight, VDSColor.feedbackSuccessBackgroundOndark, forKey: .success) config.setSurfaceColors(VDSColor.feedbackErrorBackgroundOnlight, VDSColor.feedbackErrorBackgroundOndark, forKey: .error) - return config + return config.eraseToAnyColorable() }() private var textColorConfig = ViewColorConfiguration()