Turn on strict memory safety for the macOS app
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user