We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a53df4 commit 9b6f990Copy full SHA for 9b6f990
Sources/SwiftCrossUI/Views/Text.swift
@@ -21,9 +21,11 @@ public struct Text: ElementaryView, View {
21
backend: Backend,
22
dryRun: Bool
23
) -> ViewSize {
24
- if !dryRun {
25
- backend.updateTextView(widget, content: string, environment: environment)
26
- }
+ // TODO: Avoid this
+ // Even in dry runs we must update the underlying text view widget
+ // because GtkBackend currently relies on querying the widget for text
27
+ // properties and such (via Pango).
28
+ backend.updateTextView(widget, content: string, environment: environment)
29
30
let size = backend.size(
31
of: string,
0 commit comments