Commit c1879328 authored by Aral Balkan's avatar Aral Balkan
Browse files

Updated sharedApplication() to shared()

In OS X conditional.
parent 1358fd34
......@@ -82,7 +82,7 @@ extension NotificationCenter
public func post(_ notificationName:String)
{
#if os(OSX)
self.post(notificationName, from: NSApplication.sharedApplication(), with: /* userInfo as */ nil)
self.post(notificationName, from: NSApplication.shared(), with: /* userInfo as */ nil)
#elseif os(iOS)
self.post(notificationName, from: UIApplication.shared(), with: /* userInfo as */ nil)
#endif
......
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