Following.
Post
Replies
Boosts
Views
Activity
Hi there, you can reliably get the dock position like so:
enum DockPosition {
case bottom
case left
case right
case unknown
}
func getDockPosition() -> DockPosition {
guard let screen = NSScreen.main else { return .bottom }
if screen.visibleFrame.origin.y == 0 {
return screen.visibleFrame.origin.x == 0 ? .right : .left
} else {
return .bottom
}
}