Skip to content

Commit

Permalink
Make demo compile on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Mar 4, 2024
1 parent cef30d8 commit 8ff13da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Demo/macOS/EditorScreen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,21 @@ private extension EditorScreen {
var editor: some View {
RichTextEditor(
text: $text,
context: context,
config: .init(isScrollingEnabled: true)
context: context
) {
$0.textContentInset = CGSize(width: 10, height: 20)
}
.frame(minWidth: 400)
.focusedValue(\.richTextContext, context)
.richTextEditorConfig(.init(isScrollingEnabled: true))
}

var toolbar: some View {
RichTextFormatSidebar(
context: context,
config: .init(colorPickers: [.foreground])
RichTextFormat.Sidebar(
context: context
)
.frame(width: 250)
.richTextFormatSidebarConfig(.init(colorPickers: [.foreground]))
}
}

Expand Down

0 comments on commit 8ff13da

Please sign in to comment.