mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-06-13 01:08:17 +08:00
39 lines
880 B
Swift
39 lines
880 B
Swift
//
|
|
// NotificationNextPageCell.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 7/2/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
import SnapKit
|
|
|
|
final class NotificationNextPageCell: UICollectionViewCell {
|
|
|
|
let label = UILabel()
|
|
|
|
override init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
|
|
label.font = Styles.Fonts.button
|
|
label.textColor = Styles.Colors.Gray.light.color
|
|
contentView.addSubview(label)
|
|
label.snp.makeConstraints { make in
|
|
make.center.equalTo(contentView)
|
|
}
|
|
}
|
|
|
|
required init?(coder aDecoder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
|
|
// MARK: Public API
|
|
|
|
func configure(page: Int) {
|
|
let format = NSLocalizedString("Load page %i", comment: "")
|
|
label.text = String(format: format, page)
|
|
}
|
|
|
|
}
|