Skip to content

Commit

Permalink
Remove unused menus on Mac Catalyst
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmousee committed May 29, 2020
1 parent c970e68 commit 6f41eac
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Apple/VSD.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = VSD/VSD.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 18;
CURRENT_PROJECT_VERSION = 19;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = 656LRSVN44;
GCC_PREPROCESSOR_DEFINITIONS = "";
Expand All @@ -642,7 +642,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = VSD/VSD.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 18;
CURRENT_PROJECT_VERSION = 19;
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
DEVELOPMENT_TEAM = 656LRSVN44;
INFOPLIST_FILE = VSD/Info.plist;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@
filePath = "VSD/ViewController.swift"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "61"
endingLineNumber = "61"
startingLineNumber = "62"
endingLineNumber = "62"
landmarkName = "openSettings(alert:)"
landmarkType = "7">
</BreakpointContent>
Expand Down
12 changes: 9 additions & 3 deletions Apple/VSD/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}



override func buildMenu(with builder: UIMenuBuilder) {
super.buildMenu(with: builder)

builder.remove(menu: .services)
builder.remove(menu: .format)
builder.remove(menu: .toolbar)
builder.remove(menu: .help)
}
}

1 change: 1 addition & 0 deletions Apple/VSD/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class ViewController: UIViewController {
NotificationCenter.default.addObserver(self, selector: #selector(updateStressView(notification:)), name: NSNotification.Name(rawValue: STRESS_NOTIFICATION_NAME), object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(askForMicrophonePermission(notification:)), name: NSNotification.Name(rawValue: NO_MIC_PERMISSION_NOTIFICATION_NAME), object: nil)
self.view.layer.addSublayer(stressTL)
stressTL.setNeedsDisplay()
}

override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) {
Expand Down

0 comments on commit 6f41eac

Please sign in to comment.