Digital ACT-191 ONEAPP-7958 story: adding a border to the collectionView instead of the CalendarBase.layer

This commit is contained in:
vasavk 2024-05-14 15:24:51 +05:30
parent 8fb424bed9
commit f30d416164

View File

@ -158,15 +158,15 @@ open class CalendarBase: View {
self.fetchDates(with: displayDate)
}
layer.backgroundColor = backgroundColorConfiguration.getColor(self).cgColor
containerView.layer.backgroundColor = backgroundColorConfiguration.getColor(self).cgColor
if hideContainerBorder {
layer.borderColor = nil
layer.borderWidth = 0
layer.cornerRadius = 0
containerView.layer.borderColor = nil
containerView.layer.borderWidth = 0
containerView.layer.cornerRadius = 0
} else {
layer.borderColor = containerBorderColorConfiguration.getColor(self).cgColor
layer.borderWidth = VDSFormControls.borderWidth
layer.cornerRadius = VDSFormControls.borderRadius
containerView.layer.borderColor = containerBorderColorConfiguration.getColor(self).cgColor
containerView.layer.borderWidth = VDSFormControls.borderWidth
containerView.layer.cornerRadius = VDSFormControls.borderRadius
}
}