Keep window always on top (Cocoa & Swift)

This question shows research effort; it is useful and clear

36

This question does not show any research effort; it is unclear or not useful

Show activity on this post.

In Objective-C for Cocoa Apps it's possible to use such way to keep window always on top?

How to achieve the same with Swift?

self.view.window?.level = NSFloatingWindowLevel

Causes build error Use of unresolved identifier 'NSFloatingWindowLevel'

首页 - Wiki
Copyright © 2011-2024 iteam. Current version is 2.125.0. UTC+08:00, 2024-05-04 13:48
浙ICP备14020137号-1 $访客地图$