mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 08:17:16 +00:00
35 lines
1.1 KiB
Swift
35 lines
1.1 KiB
Swift
//
|
|
// TimelineHeaderView.swift
|
|
// NetNewsWire
|
|
//
|
|
// Created by Stuart Breckenridge on 27/01/2026.
|
|
// Copyright © 2026 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
final class TimelineHeaderView: UICollectionReusableView {
|
|
static let reuseIdentifier = "TimelineHeaderView"
|
|
|
|
let label = UILabel()
|
|
|
|
override init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
|
|
label.translatesAutoresizingMaskIntoConstraints = false
|
|
label.font = .preferredFont(forTextStyle: .headline)
|
|
label.textColor = .label
|
|
|
|
addSubview(label)
|
|
|
|
NSLayoutConstraint.activate([
|
|
label.leadingAnchor.constraint(equalTo: layoutMarginsGuide.leadingAnchor),
|
|
label.trailingAnchor.constraint(equalTo: layoutMarginsGuide.trailingAnchor),
|
|
label.topAnchor.constraint(equalTo: layoutMarginsGuide.topAnchor, constant: 8),
|
|
label.bottomAnchor.constraint(equalTo: layoutMarginsGuide.bottomAnchor, constant: -8)
|
|
])
|
|
}
|
|
|
|
required init?(coder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
}
|