When I show and close the RichTextEditor view several times, an error appears: the background becomes white or black (depending on the device’s theme).
There’s also always an error indicating that text kit 1 is being used, and in that case, everything works fine (no background errors), but as soon as the error disappears, the background turns white or black.
The error under which everything works, funny as it may sound:
When I show and close the RichTextEditor view several times, an error appears: the background becomes white or black (depending on the device’s theme).
There’s also always an error indicating that text kit 1 is being used, and in that case, everything works fine (no background errors), but as soon as the error disappears, the background turns white or black.
The error under which everything works, funny as it may sound:
Display:
Code: VStack { FcomFctm(stuck: stuck) TextEditorKit(text: stuck.textRussian, height: stuck.textRusHeight, rusOrNo: true)
}
import SwiftUI import RichTextKit
struct TextEditorKit: View {
if os(macOS)
endif
if os(iOS)
endif
}