From f7a9075b777dd9ced4275ffa0aeed429832de2e9 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 24 Oct 2023 15:02:13 -0400 Subject: [PATCH] Fix timeline jump button having background when button shapes accessibility setting is on --- Tusker/Screens/Timeline/TimelineJumpButton.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Tusker/Screens/Timeline/TimelineJumpButton.swift b/Tusker/Screens/Timeline/TimelineJumpButton.swift index 8bda27f3..2f1cf090 100644 --- a/Tusker/Screens/Timeline/TimelineJumpButton.swift +++ b/Tusker/Screens/Timeline/TimelineJumpButton.swift @@ -20,6 +20,8 @@ class TimelineJumpButton: UIView { var config = UIButton.Configuration.plain() config.image = UIImage(systemName: "arrow.up") config.contentInsets = .zero + // We don't want a background for this button, even when accessibility button shapes are enabled, because it's in the navbar. + config.background.backgroundColor = .clear return UIButton(configuration: config) }()