Skip to content

Commit 5c6eb4c

Browse files
Minor fix
1 parent 797d7ff commit 5c6eb4c

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

Demo/macOS/EditorScreen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private extension EditorScreen {
5959
var toolbar: some View {
6060
RichTextFormatSidebar(
6161
context: context,
62-
colorPickers: .allRelevant
62+
colorPickers: .all
6363
)
6464
.frame(width: 250)
6565
}

Sources/RichTextKit/Colors/RichTextColor.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,8 @@ public extension RichTextColor {
8686
}
8787
}
8888

89-
public extension Collection where Element == RichTextColor {
90-
static var allRelevant: [RichTextColor] { Element.allCases - .undefined }
91-
92-
static var all: [RichTextColor] { Element.allCases }
89+
public extension Collection where Element == RichTextColor {
90+
static var all: [RichTextColor] { Element.allCases - .undefined }
9391
}
9492

9593
extension Array where Element == RichTextColor {

0 commit comments

Comments
 (0)