Skip to content

Commit af6da88

Browse files
committed
fixed winUI AppBackend Conformance
1 parent 602ab54 commit af6da88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/WinUIBackend/WinUIBackend.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1881,9 +1881,9 @@ public class CustomWindow: WinUI.Window, SheetImplementation {
18811881
var cachedAppWindow: WinAppSDK.AppWindow!
18821882

18831883
//only for AppBackend conformance, no support yet
1884-
var sheetSize: SIMD2<Int> {
1884+
public var sheetSize: SIMD2<Int> {
18851885
let size = self.cachedAppWindow.size
1886-
return SIMD2<Int>(x: size.width, y: size.height)
1886+
return SIMD2<Int>(x: Int(size.width), y: Int(size.height))
18871887
}
18881888

18891889
var scaleFactor: Double {

0 commit comments

Comments
 (0)