From a51dc8ae5b9c06d921385008dd9696fb6e23d6f4 Mon Sep 17 00:00:00 2001 From: Nathan Mattes Date: Fri, 17 Jan 2025 10:04:17 +0100 Subject: [PATCH] Make loading nicer (#2450) --- deltachat-ios/Chat/AppPickerViewController.swift | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/deltachat-ios/Chat/AppPickerViewController.swift b/deltachat-ios/Chat/AppPickerViewController.swift index 7534e332e..1e15f971e 100644 --- a/deltachat-ios/Chat/AppPickerViewController.swift +++ b/deltachat-ios/Chat/AppPickerViewController.swift @@ -128,8 +128,10 @@ class DownloadingView: UIView { activityIndicator.color = .label activityIndicator.translatesAutoresizingMaskIntoConstraints = false - blurView = UIVisualEffectView(effect: UIBlurEffect(style: .light)) + blurView = UIVisualEffectView(effect: UIBlurEffect(style: .systemMaterial)) blurView.translatesAutoresizingMaskIntoConstraints = false + blurView.layer.cornerRadius = 10 + blurView.layer.masksToBounds = true super.init(frame: .zero) @@ -140,10 +142,10 @@ class DownloadingView: UIView { activityIndicator.centerXAnchor.constraint(equalTo: centerXAnchor), activityIndicator.centerYAnchor.constraint(equalTo: centerYAnchor), - blurView.topAnchor.constraint(equalTo: topAnchor), - blurView.leadingAnchor.constraint(equalTo: leadingAnchor), - trailingAnchor.constraint(equalTo: blurView.trailingAnchor), - bottomAnchor.constraint(equalTo: blurView.bottomAnchor), + activityIndicator.topAnchor.constraint(equalTo: blurView.topAnchor, constant: 20), + activityIndicator.leadingAnchor.constraint(equalTo: blurView.leadingAnchor, constant: 20), + blurView.trailingAnchor.constraint(equalTo: activityIndicator.trailingAnchor, constant: 20), + blurView.bottomAnchor.constraint(equalTo: activityIndicator.bottomAnchor, constant: 20), ]) }