@@ -16,20 +16,25 @@ public struct RichTextKeyboardToolbarConfig {
1616 ///
1717 /// - Parameters:
1818 /// - alwaysDisplayToolbar: Whether or not to always show the toolbar, by default `false`.
19+ /// - displayFormatSheetButton: Whether to show the format sheet button, by default `true`.
1920 /// - leadingActions: The leading actions, by default `.undo` and `.redo`.
2021 /// - trailingActions: The trailing actions, by default `.dismissKeyboard`.
2122 public init (
2223 alwaysDisplayToolbar: Bool = false ,
24+ displayFormatSheetButton: Bool = true ,
2325 leadingActions: [ RichTextAction ] = [ . undo, . redo] ,
24- trailingActions: [ RichTextAction ] = [ . dismissKeyboard]
25- ) {
26+ trailingActions: [ RichTextAction ] = [ . dismissKeyboard] ) {
2627 self . alwaysDisplayToolbar = alwaysDisplayToolbar
28+ self . displayFormatSheetButton = displayFormatSheetButton
2729 self . leadingActions = leadingActions
2830 self . trailingActions = trailingActions
2931 }
3032
3133 /// Whether or not to always show the toolbar.
3234 public var alwaysDisplayToolbar : Bool
35+
36+ /// Whether to display the format sheet button.
37+ public var displayFormatSheetButton : Bool
3338
3439 /// The leading toolbar actions.
3540 public var leadingActions : [ RichTextAction ]
0 commit comments