Bringing an application window to the front Swift

Bringing an application window to the front Swift

onedayitwillmake No Comment
Uncategorized

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)
}

Leave a Reply


*