refactored code
This commit is contained in:
parent
eedf33e47c
commit
238d178f30
@ -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
|
||||
//--------------------------------------------------
|
||||
|
||||
Loading…
Reference in New Issue
Block a user