We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've been trying to remove/hide the 3 top-left buttons of the view (close, minimize and maximize, but I stuck.
This is my current code, not working ...
override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) #if targetEnvironment(macCatalyst) Dynamic(self.view.window?.nsWindow).standardWindowButton(0).isHidden = true Dynamic(self.view.window?.nsWindow).standardWindowButton(1).isHidden = true Dynamic(self.view.window?.nsWindow).standardWindowButton(2).isHidden = true #endif }
Did anyone manage to solve this?
The text was updated successfully, but these errors were encountered:
You can achieve this over a NSWindow setting the style mask https://developer.apple.com/documentation/appkit/nswindow/stylemask
Sorry, something went wrong.
No branches or pull requests
I've been trying to remove/hide the 3 top-left buttons of the view (close, minimize and maximize, but I stuck.
This is my current code, not working ...
Did anyone manage to solve this?
The text was updated successfully, but these errors were encountered: