├── FilesBrowsingOnly.plist
├── README.md
├── control
├── Makefile
└── Tweak.x
/FilesBrowsingOnly.plist:
--------------------------------------------------------------------------------
1 | { Filter = { Bundles = ( "com.apple.DocumentsApp" ); }; }
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # FilesBrowsingOnly
2 |
Displays only the Browse tab and hides the entire tab bar in iOS Files app
3 | Tested on iOS 14 and iOS 16, no options to configure
4 |
--------------------------------------------------------------------------------
/control:
--------------------------------------------------------------------------------
1 | Package: com.dvntm.fbo
2 | Name: FilesBrowsingOnly
3 | Version: 0.0.1
4 | Architecture: iphoneos-arm
5 | Description: Displays only the Browse tab and hides the tab bar
6 | Maintainer: dvntm
7 | Author: dvntm
8 | Section: Tweaks
9 | Depends: mobilesubstrate (>= 0.9.5000)
10 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | DEBUG = 0
2 | FINALPACKAGE = 1
3 | TARGET := iphone:clang:latest:14.0
4 | INSTALL_TARGET_PROCESSES = Files
5 |
6 | include $(THEOS)/makefiles/common.mk
7 |
8 | TWEAK_NAME = FilesBrowsingOnly
9 | $(TWEAK_NAME)_FILES = Tweak.x
10 | $(TWEAK_NAME)_CFLAGS = -fobjc-arc
11 |
12 | include $(THEOS_MAKE_PATH)/tweak.mk
13 |
--------------------------------------------------------------------------------
/Tweak.x:
--------------------------------------------------------------------------------
1 | #import
2 |
3 | @interface DOCAutoBarHidingTabBarController : UITabBarController
4 | - (void)hideBarWithTransition:(int)transition;
5 | @end
6 |
7 | %hook DOCAutoBarHidingTabBarController
8 | - (void)loadViewControllers:(NSArray *)controllers initialIndex:(NSInteger)index {
9 | %orig(controllers, [controllers indexOfObject:controllers.lastObject]);
10 |
11 | [self hideBarWithTransition:0];
12 | }
13 | %end
14 |
--------------------------------------------------------------------------------