mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-03-30 23:20:27 +08:00
36 lines
838 B
Swift
36 lines
838 B
Swift
//
|
|
// EmptyView.swift
|
|
// Freetime
|
|
//
|
|
// Created by Ryan Nystrom on 5/15/17.
|
|
// Copyright © 2017 Ryan Nystrom. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
import SnapKit
|
|
|
|
final class EmptyView: UIView {
|
|
|
|
let label = UILabel()
|
|
|
|
override init(frame: CGRect) {
|
|
super.init(frame: frame)
|
|
|
|
label.backgroundColor = .clear
|
|
label.textAlignment = .center
|
|
label.font = Styles.Text.body.preferredFont
|
|
label.textColor = Styles.Colors.Gray.medium.color
|
|
label.numberOfLines = 0
|
|
addSubview(label)
|
|
label.snp.makeConstraints { make in
|
|
make.center.equalTo(self)
|
|
make.width.lessThanOrEqualToSuperview().offset(-Styles.Sizes.gutter)
|
|
}
|
|
}
|
|
|
|
required init?(coder aDecoder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
|
|
}
|