FLEXBundleShortcuts.m 818 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // FLEXBundleShortcuts.m
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 12/12/19.
  6. // Copyright © 2019 Flipboard. All rights reserved.
  7. //
  8. #import "FLEXBundleShortcuts.h"
  9. #import "FLEXShortcut.h"
  10. #import "FLEXFileBrowserTableViewController.h"
  11. #pragma mark -
  12. @implementation FLEXBundleShortcuts
  13. #pragma mark Overrides
  14. + (instancetype)forObject:(NSBundle *)bundle {
  15. return [self forObject:bundle additionalRows:@[
  16. [FLEXActionShortcut title:@"Browse Bundle Directory" subtitle:nil
  17. viewer:^UIViewController *(id view) {
  18. return [FLEXFileBrowserTableViewController path:bundle.bundlePath];
  19. }
  20. accessoryType:^UITableViewCellAccessoryType(id view) {
  21. return UITableViewCellAccessoryDisclosureIndicator;
  22. }
  23. ]
  24. ]];
  25. }
  26. @end