This commit is contained in:
Михаил Капелько committed 2026-10-19 17:08:35 +03:00
1 parent 0da8bfcfa2
commit 30476a880d
5 files changed
+69 -25

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import AppKit
func renderPixelSize(_ view: NSView) -> [Int32] {
let backing = view.convertToBacking(view.bounds)
let w = Int32(max(1, backing.width))
let h = Int32(max(1, backing.height))
return [w, h]
}