Skip to content

Commit 3523f51

Browse files
committed
Add more mainactor annotations to windows
1 parent 3c8a4b8 commit 3523f51

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/WinUIBackend/WinUIBackend.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,6 +1743,7 @@ extension EnvironmentValues {
17431743
return brush
17441744
}
17451745

1746+
@MainActor
17461747
func apply(to control: WinUI.Control) {
17471748
let resolvedFont = resolvedFont
17481749
control.fontSize = resolvedFont.pointSize
@@ -1757,6 +1758,7 @@ extension EnvironmentValues {
17571758
}
17581759
}
17591760

1761+
@MainActor
17601762
func apply(to textBlock: WinUI.TextBlock) {
17611763
let resolvedFont = resolvedFont
17621764
textBlock.fontSize = resolvedFont.pointSize

0 commit comments

Comments
 (0)