@@ -16,20 +16,25 @@ public struct RichTextKeyboardToolbarConfig {
16
16
///
17
17
/// - Parameters:
18
18
/// - alwaysDisplayToolbar: Whether or not to always show the toolbar, by default `false`.
19
+ /// - displayFormatSheetButton: Whether to show the format sheet button, by default `true`.
19
20
/// - leadingActions: The leading actions, by default `.undo` and `.redo`.
20
21
/// - trailingActions: The trailing actions, by default `.dismissKeyboard`.
21
22
public init (
22
23
alwaysDisplayToolbar: Bool = false ,
24
+ displayFormatSheetButton: Bool = true ,
23
25
leadingActions: [ RichTextAction ] = [ . undo, . redo] ,
24
- trailingActions: [ RichTextAction ] = [ . dismissKeyboard]
25
- ) {
26
+ trailingActions: [ RichTextAction ] = [ . dismissKeyboard] ) {
26
27
self . alwaysDisplayToolbar = alwaysDisplayToolbar
28
+ self . displayFormatSheetButton = displayFormatSheetButton
27
29
self . leadingActions = leadingActions
28
30
self . trailingActions = trailingActions
29
31
}
30
32
31
33
/// Whether or not to always show the toolbar.
32
34
public var alwaysDisplayToolbar : Bool
35
+
36
+ /// Whether to display the format sheet button.
37
+ public var displayFormatSheetButton : Bool
33
38
34
39
/// The leading toolbar actions.
35
40
public var leadingActions : [ RichTextAction ]
0 commit comments