Skip to content

Commit

Permalink
chore: enable dark background only for Modal Campaign (RMCCX-7328)
Browse files Browse the repository at this point in the history
  • Loading branch information
SoumenRautray authored Sep 25, 2024
1 parent ec12d97 commit ff1caae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/RInAppMessaging/Views/FullView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit ff1caae

Please sign in to comment.