Post

Replies

Boosts

Views

Activity

Reply to Issue with Empty Window Appearing on App Launch for macOS App - Help Needed
Yes of course, here it is: class LanguageSwitchPanel: NSPanel { init() { super.init( contentRect: NSRect(x: 100, y: 100, width: 200, height: 130), styleMask: [.nonactivatingPanel], backing: .buffered, defer: false ) self.isFloatingPanel = true self.hidesOnDeactivate = false self.level = NSWindow.Level.floating self.isOpaque = false self.backgroundColor = NSColor.clear self.hasShadow = true self.isMovableByWindowBackground = true self.collectionBehavior = [.canJoinAllSpaces, .stationary, .fullScreenAuxiliary] } override var canBecomeKey: Bool { return true } }
12h