|
@@ -435,6 +435,16 @@ class NCMedia: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
|
|
|
|
|
|
header.backgroundColor = .clear
|
|
|
header.setTitleLabel(sectionDatasource: sectionDatasource, section: indexPath.section)
|
|
|
+ header.labelSection.font = UIFont.boldSystemFont(ofSize: 16)
|
|
|
+ header.labelSection.textColor = .white
|
|
|
+ header.labelSection.textAlignment = .center
|
|
|
+ header.labelSection.layer.cornerRadius = 11
|
|
|
+ header.labelSection.layer.masksToBounds = true
|
|
|
+ header.labelSection.layer.backgroundColor = UIColor(red: 152.0/255.0, green: 167.0/255.0, blue: 181.0/255.0, alpha: 0.8).cgColor
|
|
|
+ let x = header.labelSection.intrinsicContentSize
|
|
|
+ let widthFrame = header.labelSection.intrinsicContentSize.width + 30
|
|
|
+ let xFrame = collectionView.bounds.width / 2 - widthFrame / 2
|
|
|
+ header.labelSection.frame = CGRect(x: xFrame, y: 10, width: widthFrame, height: 22)
|
|
|
|
|
|
return header
|
|
|
|