Files
NetNewsWire/iOS/Settings/TimelineHeaderView.swift
2026-01-31 21:04:11 -08:00

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")
}
}