Turn on strict memory safety for the macOS app

This commit is contained in:
Ian Gulliver
2026-10-17 09:57:28 -07:00
parent 3541abb1b1
commit 7452bd5936
9 changed files with 33 additions and 32 deletions
+2 -2
View File
@@ -166,7 +166,7 @@ struct WindowReader: NSViewRepresentable {
func makeNSView(context: Context) -> NSView {
let view = NSView()
DispatchQueue.main.async {
if let w = view.window {
if let w = unsafe view.window {
found(w)
}
}
@@ -175,7 +175,7 @@ struct WindowReader: NSViewRepresentable {
func updateNSView(_ nsView: NSView, context: Context) {
DispatchQueue.main.async {
if let w = nsView.window {
if let w = unsafe nsView.window {
found(w)
}
}