shortcut library for widget picker

This commit is contained in:
True Zhuanjia
2026-05-27 13:01:12 +08:00
parent 3575e84165
commit 02fcdcecea
8 changed files with 1122 additions and 34 deletions
@@ -663,7 +663,7 @@ typedef NS_ENUM(NSUInteger, DecelerationRateSliderMode) {
if (@available(iOS 13.0, *)) {
WidgetPickerViewController *pickerViewController = [[WidgetPickerViewController alloc] init];
pickerViewController.delegate = self;
pickerViewController.tabIdentifiers = @[@"gamepad", @"keyboard", @"functional"];
pickerViewController.tabIdentifiers = @[@"gamepad", @"keyboard", @"functional", @"shortcuts"];
pickerViewController.initialTabIdentifier = @"gamepad";
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:pickerViewController];
@@ -800,7 +800,7 @@ typedef NS_ENUM(NSUInteger, DecelerationRateSliderMode) {
if (@available(iOS 13.0, *)) {
WidgetPickerViewController *pickerViewController = [[WidgetPickerViewController alloc] init];
pickerViewController.delegate = self;
pickerViewController.tabIdentifiers = @[@"gamepad", @"keyboard", @"functional"];
pickerViewController.tabIdentifiers = @[@"gamepad", @"keyboard", @"functional", @"shortcuts"];
pickerViewController.initialTabIdentifier = @"gamepad";
pickerViewController.isEditMode = true;
pickerViewController.initialCmdString = self->selectedWidgetView.cmdString;