diff --git a/VDS/Components/Calendar/CalendarFooterReusableView.swift b/VDS/Components/Calendar/CalendarFooterReusableView.swift index 6a713428..bdab58b5 100644 --- a/VDS/Components/Calendar/CalendarFooterReusableView.swift +++ b/VDS/Components/Calendar/CalendarFooterReusableView.swift @@ -41,14 +41,7 @@ class CalendarFooterReusableView: UICollectionReusableView { $0.minimumInteritemSpacing = VDSLayout.space4X $0.scrollDirection = .vertical } - - open override var accessibilityElements: [Any]? { - get { - return [containerView, legendLabels] - } - set { super.accessibilityElements = newValue } - } - + open lazy var legendCollectionView = UICollectionView(frame: .zero, collectionViewLayout: flowLayout).with { $0.isScrollEnabled = false $0.translatesAutoresizingMaskIntoConstraints = false @@ -79,6 +72,13 @@ class CalendarFooterReusableView: UICollectionReusableView { setUp() } + open override var accessibilityElements: [Any]? { + get { + return [containerView, legendLabels] + } + set { super.accessibilityElements = newValue } + } + //-------------------------------------------------- // MARK: - Private Methods //--------------------------------------------------