From ff1caaedeed4fc0e2f99db451f84a26621c2c356 Mon Sep 17 00:00:00 2001 From: "soumen.rautray" <96281209+SoumenRautray@users.noreply.github.com> Date: Wed, 25 Sep 2024 12:31:43 +0530 Subject: [PATCH] chore: enable dark background only for Modal Campaign (RMCCX-7328) --- Sources/RInAppMessaging/Views/FullView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/RInAppMessaging/Views/FullView.swift b/Sources/RInAppMessaging/Views/FullView.swift index debdc74f..2c7d99a4 100644 --- a/Sources/RInAppMessaging/Views/FullView.swift +++ b/Sources/RInAppMessaging/Views/FullView.swift @@ -152,11 +152,11 @@ internal class FullView: UIView, FullViewType, RichContentBrowsable { layoutUIComponents(viewModel: viewModel) createMessageBody(viewModel: viewModel) if RInAppMessaging.isRMCEnvironment, + case .modal = mode, let opacity = viewModel.customJson?.background?.opacity, (0...1).contains(opacity) { backgroundViewColor = .black.withAlphaComponent(opacity) - } - else { + } else { backgroundViewColor = uiConstants.backgroundColor ?? viewModel.backgroundColor }