-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
Hi!
Seems like the richTextFormatSheetConfigs fontPicker: false does not do what it is supposed to.
I edited a fresh clone of the repos DemoEditorScreen.swift to this:
import RichTextKit
import SwiftUI
struct DemoEditorScreen: View {
@Binding var document: DemoDocument
@StateObject var context = RichTextContext()
var body: some View {
VStack(spacing: 0) {
RichTextEditor(
text: $document.text,
context: context
)
RichTextKeyboardToolbar(
context: context,
leadingButtons: { $0 },
trailingButtons: { $0 },
formatSheet: { $0 }
)
}
.richTextFontPickerConfig(.init(fonts: []))
.richTextFormatSheetConfig(.init(
alignments: [],
colorPickers: [],
colorPickersDisclosed: [],
fontPicker: false,
fontSizePicker: false,
indentButtons: false,
styles: .all,
superscriptButtons: false
))
}
}
It renders a preview like this:
I guess it is supposed to hide the fontPicker part of the sheet.
I have kinda not read the whole documentation tho, but yeah, looked like a bug:)
All the best
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels