From b1bcb74e41ebb0036c5b82f6af6d89ed1f4db42d Mon Sep 17 00:00:00 2001 From: Umair Zahid Date: Wed, 19 Nov 2025 19:20:16 +0500 Subject: [PATCH] Fix selected segment title color in Light Mode using EKColor.selectedContent --- .../Playground/Cells/SelectionTableViewCell.swift | 2 +- Source/Model/EKColor.swift | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Example/SwiftEntryKit/Playground/Cells/SelectionTableViewCell.swift b/Example/SwiftEntryKit/Playground/Cells/SelectionTableViewCell.swift index 4ff85ba1..5e5b491e 100644 --- a/Example/SwiftEntryKit/Playground/Cells/SelectionTableViewCell.swift +++ b/Example/SwiftEntryKit/Playground/Cells/SelectionTableViewCell.swift @@ -135,7 +135,7 @@ class SelectionTableViewCell: SelectionBaseCell { ) segmentedControl.setTitleTextAttributes( [NSAttributedString.Key.foregroundColor: - EKColor.standardContent.inverted.color( + EKColor.selectedContent.color( for: traitCollection, mode: PresetsDataSource.displayMode ) diff --git a/Source/Model/EKColor.swift b/Source/Model/EKColor.swift index 64f81bdf..947c3377 100644 --- a/Source/Model/EKColor.swift +++ b/Source/Model/EKColor.swift @@ -107,4 +107,8 @@ public extension EKColor { static var standardContent: EKColor { return EKColor(light: .black, dark: .white) } + + static var selectedContent : EKColor{ + return EKColor(light: .black, dark: .black) + } }