File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
Sources/RichTextKit/Colors Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ private extension EditorScreen {
59
59
trailingButtons: { }
60
60
) {
61
61
var sheet = $0
62
- sheet. colorPickers = . all
62
+ // sheet.colorPickers = .all
63
63
return sheet
64
64
}
65
65
}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ This release starts moving types and views that relate to other types into the t
23
23
* All types that implement ` RichTextLabelValue ` get a ` label ` that has improved accessibility.
24
24
25
25
* ` RichTextColor ` ` .adjust ` now takes an optional color.
26
+ * ` RichTextColor ` ` .allCases ` no longer returns ` undefined ` .
26
27
* ` RichTextFormatSheet ` no longer hard-codes an accent color.
27
28
* ` RichTextStyle ` views no longer use a style - use ` foregroundStyle ` , ` tint ` and ` accentColor ` instead.
28
29
Original file line number Diff line number Diff line change @@ -38,6 +38,17 @@ public extension RichTextColor {
38
38
39
39
/// The unique color ID.
40
40
var id : String { rawValue }
41
+
42
+ /// All relevant cases.
43
+ static var allCases : [ RichTextColor ] {
44
+ [
45
+ . foreground,
46
+ . background,
47
+ . strikethrough,
48
+ . stroke,
49
+ . underline
50
+ ]
51
+ }
41
52
42
53
/// The corresponding rich text attribute, if any.
43
54
var attribute : NSAttributedString . Key ? {
You can’t perform that action at this time.
0 commit comments