Merge branch 'mkirk/gallery-headers'

pull/1/head
Michael Kirk 7 years ago
commit 7b156be73b

@ -8,7 +8,7 @@ public protocol MediaTileViewControllerDelegate: class {
func mediaTileViewController(_ viewController: MediaTileViewController, didTapView tappedView: UIView, mediaGalleryItem: MediaGalleryItem)
}
public class MediaTileViewController: UICollectionViewController, MediaGalleryDataSourceDelegate {
public class MediaTileViewController: UICollectionViewController, MediaGalleryDataSourceDelegate, UICollectionViewDelegateFlowLayout {
private weak var mediaGalleryDataSource: MediaGalleryDataSource?
@ -770,14 +770,17 @@ private class MediaGallerySectionHeader: UICollectionReusableView {
override init(frame: CGRect) {
label = UILabel()
label.textColor = Theme.primaryColor
let blurEffect = UIBlurEffect(style: .extraLight)
let blurEffect = Theme.barBlurEffect
let blurEffectView = UIVisualEffectView(effect: blurEffect)
blurEffectView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
super.init(frame: frame)
self.backgroundColor = Theme.navbarBackgroundColor.withAlphaComponent(OWSNavigationBar.backgroundBlurMutingFactor)
self.addSubview(blurEffectView)
self.addSubview(label)
@ -814,6 +817,7 @@ private class MediaGalleryStaticHeader: UICollectionViewCell {
addSubview(label)
label.textColor = Theme.primaryColor
label.textAlignment = .center
label.numberOfLines = 0
label.autoPinEdgesToSuperviewMargins()

Loading…
Cancel
Save