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 } }