Verified Commit 4e68738b authored by Aral Balkan's avatar Aral Balkan
Browse files

Update macOS demo to latest Swift

parent 884c1139
......@@ -24,7 +24,7 @@ class OSXViewController: NSViewController
{
/* with */ notification in
guard let window = notification.object as? NSWindow else { return }
guard let window = notification?.object as? NSWindow else { return }
let message = "Window is at (\(window.frame.origin.x), \(window.frame.origin.y))"
self.messageLabel.stringValue = message
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment