self.window.titlebarAppearsTransparent = true;
self.window.titleVisibility = .hidden
self.window.toolbar = nil
self.window.styleMask.insert(.fullSizeContentView)
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
#if targetEnvironment(macCatalyst)
if let titlebar = windowScene.titlebar {
titlebar.titleVisibility = .hidden
titlebar.toolbar = nil
}
#endif
}
修改close button 位置
https://stackoverflow.com/questions/30085631/nswindow-change-positions-of-window-buttons
网友评论