Quantcast
Channel:
Viewing all articles
Browse latest Browse all 27

Bringing an application window to the front Swift

$
0
0

There are many ways to do this, however this simple method below has worked for me better than window?.makeKeyAndOrderFront(self)

override func viewDidAppear() {
  super.viewDidAppear()
  NSApp.activate(ignoringOtherApps: true)
}

Viewing all articles
Browse latest Browse all 27

Trending Articles