refactored code

This commit is contained in:
vasavk 2024-05-28 10:43:04 +05:30
parent eedf33e47c
commit 238d178f30

View File

@ -41,14 +41,7 @@ class CalendarFooterReusableView: UICollectionReusableView {
$0.minimumInteritemSpacing = VDSLayout.space4X $0.minimumInteritemSpacing = VDSLayout.space4X
$0.scrollDirection = .vertical $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 { open lazy var legendCollectionView = UICollectionView(frame: .zero, collectionViewLayout: flowLayout).with {
$0.isScrollEnabled = false $0.isScrollEnabled = false
$0.translatesAutoresizingMaskIntoConstraints = false $0.translatesAutoresizingMaskIntoConstraints = false
@ -79,6 +72,13 @@ class CalendarFooterReusableView: UICollectionReusableView {
setUp() setUp()
} }
open override var accessibilityElements: [Any]? {
get {
return [containerView, legendLabels]
}
set { super.accessibilityElements = newValue }
}
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Private Methods // MARK: - Private Methods
//-------------------------------------------------- //--------------------------------------------------