Skip to content

Commit

Permalink
Make loading nicer (#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeitschlag committed Jan 17, 2025
1 parent 7698c43 commit a51dc8a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions deltachat-ios/Chat/AppPickerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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),
])
}

Expand Down

0 comments on commit a51dc8a

Please sign in to comment.