From f30d416164903dba1ac1658e3fbf5d67d7663394 Mon Sep 17 00:00:00 2001 From: vasavk Date: Tue, 14 May 2024 15:24:51 +0530 Subject: [PATCH] Digital ACT-191 ONEAPP-7958 story: adding a border to the collectionView instead of the CalendarBase.layer --- VDS/Components/Calendar/Calendar.swift | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/VDS/Components/Calendar/Calendar.swift b/VDS/Components/Calendar/Calendar.swift index ff137004..d980d0b3 100644 --- a/VDS/Components/Calendar/Calendar.swift +++ b/VDS/Components/Calendar/Calendar.swift @@ -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 } }