From eae47487032c145baf57c940510387b82e6a4e83 Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Mon, 21 Apr 2025 21:38:21 +0200 Subject: [PATCH] Revert selected color for iOS --- Views/ViewModifiers/CellBackground.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Views/ViewModifiers/CellBackground.swift b/Views/ViewModifiers/CellBackground.swift index 331cd8a7..88b1e1fd 100644 --- a/Views/ViewModifiers/CellBackground.swift +++ b/Views/ViewModifiers/CellBackground.swift @@ -25,11 +25,15 @@ enum CellBackground { #endif static func colorFor(isHovering: Bool, isSelected: Bool = false) -> Color { + #if os(macOS) if isSelected { isHovering ? selected.opacity(0.75) : selected } else { isHovering ? selected.opacity(0.5) : normal } + #else + isHovering ? selected : normal + #endif } static let clipShapeRectangle = RoundedRectangle(cornerRadius: 12, style: .continuous)