Repo created
This commit is contained in:
parent
4af19165ec
commit
68073add76
12458 changed files with 12350765 additions and 2 deletions
|
|
@ -0,0 +1,25 @@
|
|||
final class LoadingOverlayViewController: UIViewController {
|
||||
private var activityIndicator: UIActivityIndicatorView = {
|
||||
let indicator: UIActivityIndicatorView
|
||||
indicator = UIActivityIndicatorView(style: .large)
|
||||
indicator.color = .white
|
||||
indicator.startAnimating()
|
||||
indicator.translatesAutoresizingMaskIntoConstraints = false
|
||||
return indicator
|
||||
}()
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
view.backgroundColor = UIColor.black.withAlphaComponent(0.3)
|
||||
setupViews()
|
||||
}
|
||||
|
||||
private func setupViews() {
|
||||
view.addSubview(activityIndicator)
|
||||
NSLayoutConstraint.activate([
|
||||
activityIndicator.centerXAnchor.constraint(equalTo: view.centerXAnchor),
|
||||
activityIndicator.centerYAnchor.constraint(equalTo: view.centerYAnchor)
|
||||
])
|
||||
view.isUserInteractionEnabled = false
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue