Files
GitHawk/Classes/Views/SpinnerCell.swift
2017-06-30 08:25:57 -07:00

31 lines
671 B
Swift

//
// SpinnerCell.swift
// Freetime
//
// Created by Ryan Nystrom on 6/30/17.
// Copyright © 2017 Ryan Nystrom. All rights reserved.
//
import UIKit
import SnapKit
final class SpinnerCell: UICollectionViewCell {
let activity = UIActivityIndicatorView(activityIndicatorStyle: .gray)
override init(frame: CGRect) {
super.init(frame: frame)
activity.startAnimating()
contentView.addSubview(activity)
activity.snp.makeConstraints { make in
make.center.equalTo(contentView)
}
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}