lnd-demo-app/wallet/Views/LoadingView.swift

30 lines
627 B
Swift
Raw Normal View History

2023-06-08 06:36:06 +00:00
//
// LoadingView.swift
// wallet
//
// Created by Jason on 8/23/20.
// Copyright © 2020 Jason. All rights reserved.
//
import UIKit
class LoadingView: UIView {
init() {
super.init(frame: .zero)
backgroundColor = Theme.backgroundColor
addLoadingIndicator()
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
private func addLoadingIndicator() {
let loadingIndicator = UIActivityIndicatorView(style: .large)
self.addSubviewAndFill(loadingIndicator)
loadingIndicator.startAnimating()
}
}