Skip to content

Commit f274abc

Browse files
committed
Fix demo
1 parent 88f0298 commit f274abc

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Demo/iOS/EditorScreen.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ private extension EditorScreen {
5959
trailingButtons: {}
6060
) {
6161
var sheet = $0
62-
sheet.colorPickers = .all
62+
// Uncomment this to show all color pickers
63+
// sheet.colorPickers = .allCases
6364
return sheet
6465
}
6566
}

Sources/RichTextKit/Colors/RichTextColor.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,8 @@ public extension RichTextColor {
7979
}
8080
}
8181
}
82+
83+
public extension Collection where Element == RichTextColor {
84+
85+
static var allCases: [RichTextColor] { Element.allCases }
86+
}

0 commit comments

Comments
 (0)