From f587cf0ed4ae0f08f29047668fca93e64d0b9fe4 Mon Sep 17 00:00:00 2001 From: Julien PIERRE-LOUIS Date: Wed, 21 Dec 2022 16:51:34 +0100 Subject: [PATCH 1/2] Change spinner appearance --- Source/Pages/Gallery/Album/YPAlbumView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Pages/Gallery/Album/YPAlbumView.swift b/Source/Pages/Gallery/Album/YPAlbumView.swift index 499e8151d..8f7950585 100644 --- a/Source/Pages/Gallery/Album/YPAlbumView.swift +++ b/Source/Pages/Gallery/Album/YPAlbumView.swift @@ -17,6 +17,10 @@ class YPAlbumView: UIView { convenience init() { self.init(frame: .zero) + if #available(iOS 13, *) { + spinner.style = .large + } + subviews( tableView, spinner From 2760ffebdde2d2c78fdad4b1853c9fc4c304099d Mon Sep 17 00:00:00 2001 From: Julien PIERRE-LOUIS Date: Wed, 21 Dec 2022 17:51:45 +0100 Subject: [PATCH 2/2] Clean --- Source/Pages/Gallery/Album/YPAlbumView.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Pages/Gallery/Album/YPAlbumView.swift b/Source/Pages/Gallery/Album/YPAlbumView.swift index 8f7950585..aa61ea2ac 100644 --- a/Source/Pages/Gallery/Album/YPAlbumView.swift +++ b/Source/Pages/Gallery/Album/YPAlbumView.swift @@ -18,6 +18,10 @@ class YPAlbumView: UIView { self.init(frame: .zero) if #available(iOS 13, *) { + let spinnerColor = UIColor { trait -> UIColor in + return trait.userInterfaceStyle == .dark ? .white : .gray + } + spinner.color = spinnerColor spinner.style = .large }