clean mac keyboard code example
Example 1: macos keyboard remove beeping
Go to System Preferences > Sound > Sound Effects:
And set the Alert volume to off
Example 2: cleaner keyboard mac book pro 2019
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
let menuButtonImage = UIImage(systemName: "flame")
let menuButton = UIBarButtonItem(image: menuButtonImage, style: .plain, target: self, action: #selector(didTapMenuButton))
navigationItem.rightBarButtonItem = menuButton
}
@objc public func didTapMenuButton() {
print("Hello World")
}