|
@@ -34,13 +34,6 @@ class BackupTransferViewController: UIViewController {
|
|
return progress
|
|
return progress
|
|
}()
|
|
}()
|
|
|
|
|
|
- private lazy var blurView: UIVisualEffectView = {
|
|
|
|
- let blurEffect = UIBlurEffect(style: .light)
|
|
|
|
- let view = UIVisualEffectView(effect: blurEffect)
|
|
|
|
- view.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
- return view
|
|
|
|
- }()
|
|
|
|
-
|
|
|
|
init(dcAccounts: DcAccounts) {
|
|
init(dcAccounts: DcAccounts) {
|
|
self.dcAccounts = dcAccounts
|
|
self.dcAccounts = dcAccounts
|
|
self.dcContext = dcAccounts.getSelected()
|
|
self.dcContext = dcAccounts.getSelected()
|
|
@@ -91,7 +84,6 @@ class BackupTransferViewController: UIViewController {
|
|
private func setupSubviews() {
|
|
private func setupSubviews() {
|
|
view.addSubview(qrContentView)
|
|
view.addSubview(qrContentView)
|
|
view.addSubview(progressContainer)
|
|
view.addSubview(progressContainer)
|
|
- progressContainer.addSubview(blurView)
|
|
|
|
progressContainer.addSubview(progress)
|
|
progressContainer.addSubview(progress)
|
|
let qrDefaultWidth = qrContentView.widthAnchor.constraint(equalTo: view.safeAreaLayoutGuide.widthAnchor, multiplier: 0.75)
|
|
let qrDefaultWidth = qrContentView.widthAnchor.constraint(equalTo: view.safeAreaLayoutGuide.widthAnchor, multiplier: 0.75)
|
|
qrDefaultWidth.priority = UILayoutPriority(500)
|
|
qrDefaultWidth.priority = UILayoutPriority(500)
|
|
@@ -110,7 +102,6 @@ class BackupTransferViewController: UIViewController {
|
|
progress.constraintCenterXTo(progressContainer),
|
|
progress.constraintCenterXTo(progressContainer),
|
|
progress.constraintCenterYTo(progressContainer)
|
|
progress.constraintCenterYTo(progressContainer)
|
|
])
|
|
])
|
|
- blurView.fillSuperview()
|
|
|
|
progressContainer.isHidden = false
|
|
progressContainer.isHidden = false
|
|
progress.startAnimating()
|
|
progress.startAnimating()
|
|
view.backgroundColor = DcColors.defaultBackgroundColor
|
|
view.backgroundColor = DcColors.defaultBackgroundColor
|