//
//  LectureHeaderView.swift
//  HTWDD
//
//  Created by Benjamin Herzog on 09/03/2017.
//  Copyright © 2017 HTW Dresden. All rights reserved.
//

import UIKit

class LectureHeaderView: CollectionReusableView, Identifiable {

	private let label = UILabel()

    var title: String? {
        get {
            return self.label.text
        }
        set {
            self.label.text = newValue?.uppercased()
        }
    }

	// MARK: - Init

    override func initialSetup() {
        self.backgroundColor = UIColor.htw.veryLightGrey

		self.label.frame = self.bounds
        self.label.autoresizingMask = [.flexibleWidth, .flexibleHeight]
		self.label.font = .systemFont(ofSize: 16, weight: .semibold)
		self.label.textColor = UIColor.htw.mediumGrey
		self.label.textAlignment = .center
        self.addSubview(self.label)
    }

}

//
//  LectureHeaderView.swift
//  HTWDD
//
//  Created by Benjamin Herzog on 09/03/2017.
//  Copyright © 2017 HTW Dresden. All rights reserved.
//

import UIKit

class LectureHeaderView: CollectionReusableView, Identifiable {

	private let label = UILabel()

    var title: String? {
        get {
            return self.label.text
        }
        set {
            self.label.text = newValue?.uppercased()
        }
    }

	// MARK: - Init

    override func initialSetup() {
        self.backgroundColor = .clear

		self.label.frame = self.bounds
        self.label.autoresizingMask = [.flexibleWidth, .flexibleHeight]
		self.label.font = .systemFont(ofSize: 16, weight: .semibold)
		self.label.textColor = UIColor.htw.mediumGrey
		self.label.textAlignment = .center
        self.addSubview(self.label)
    }

}

Clear bg on Schedule List header view
Clear bg on Schedule List header view
