You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a font bigger but I receive strange text in console:
UITextView 0x102839600 is switching to TextKit 1 compatibility mode because its layoutManager was accessed.
Break on void _UITextViewEnablingCompatibilityMode(UITextView *__strong, BOOL) to debug.
my code:
import SwiftUI
import SwiftData
import RichTextKit
structNoteView:View{@Stateprivatevarcontext=RichTextContext()@StateprivatevarattributedNoteText:NSAttributedStringvarnote:Noteinit(note:Note){self.note = note
self.attributedNoteText =NSAttributedString(string: note.text)RichTextEditor.standardRichTextFontSize =50 // <- I've tried this
self.context.fontSize =50 // <- I've tried this
self.context.isEditable = false // <- I've tried this and editor is still editable (maybe I'm wrong)
}varbody:someView{RichTextEditor(text: $attributedNoteText, context: context){
$0.setRichTextFontSize(50) // <- I've tried this
}.focusedValue(\.richTextContext, context).frame(maxWidth:.infinity).frame(minHeight:100).richTextEditorStyle(.init(font:.preferredFont(forTextStyle:.extraLargeTitle))) // <- I've tried this
}
result:
The text was updated successfully, but these errors were encountered:
I'm trying to make a font bigger but I receive strange text in console:
my code:
result:
The text was updated successfully, but these errors were encountered: