From 6d3bd32d4f4464228c92ab8fb36e32f4d28256a5 Mon Sep 17 00:00:00 2001 From: Michal Rentka Date: Wed, 22 Nov 2023 13:19:17 +0100 Subject: [PATCH] rebase fix --- .../Views/AnnotationPopoverViewController.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Zotero/Scenes/Detail/Annotation Popover/Views/AnnotationPopoverViewController.swift b/Zotero/Scenes/Detail/Annotation Popover/Views/AnnotationPopoverViewController.swift index b5abae39f..64673ffe2 100644 --- a/Zotero/Scenes/Detail/Annotation Popover/Views/AnnotationPopoverViewController.swift +++ b/Zotero/Scenes/Detail/Annotation Popover/Views/AnnotationPopoverViewController.swift @@ -98,13 +98,7 @@ final class AnnotationPopoverViewController: UIViewController { ) // Update selected color - if let views = colorPickerContainer?.arrangedSubviews { - for view in views { - guard let circleView = view as? ColorPickerCircleView else { continue } - circleView.isSelected = circleView.hexColor == state.color - circleView.accessibilityLabel = name(for: circleView.hexColor, isSelected: circleView.isSelected) - } - } + colorPicker.setSelected(hexColor: state.color) // Update tags if !state.tags.isEmpty {