58 lines
1.4 KiB
Swift
58 lines
1.4 KiB
Swift
//
|
|
// CalendarHeaderReusableView.swift
|
|
// VDS
|
|
//
|
|
// Created by Kanamarlapudi, Vasavi on 24/04/24.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
/// Custom header view
|
|
class CalendarHeaderReusableView: UICollectionReusableView {
|
|
|
|
///Identifier for the Calendar Header Reusable View
|
|
static let identifier: String = String(describing: CalendarHeaderReusableView.self)
|
|
|
|
override init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
|
|
func configure(with color: Bool) {
|
|
// Make a view and make in generic and dynamic
|
|
self.backgroundColor = .orange
|
|
}
|
|
|
|
override func layoutSubviews() {
|
|
super.layoutSubviews()
|
|
}
|
|
}
|
|
|
|
/// Custom footer view
|
|
class CalendarFooterReusableView: UICollectionReusableView {
|
|
|
|
///Identifier for the Calendar Footer Reusable View
|
|
static let identifier: String = String(describing: CalendarFooterReusableView.self)
|
|
|
|
override init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
|
|
func configure(with color: Bool) {
|
|
// Make a view and make in generic and dynamic
|
|
self.backgroundColor = .green
|
|
}
|
|
|
|
override func layoutSubviews() {
|
|
super.layoutSubviews()
|
|
}
|
|
}
|
|
|