forked from BandarHL/BHInstagram
-
-
Notifications
You must be signed in to change notification settings - Fork 423
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation taken from vlourme@481fe46
- Loading branch information
Showing
6 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#import "../../InstagramHeaders.h" | ||
#import "../../Manager.h" | ||
|
||
// Hide reels tab | ||
%hook IGTabBar | ||
- (void)didMoveToWindow { | ||
%orig; | ||
|
||
if ([BHIManager hideReelsTab]) { // !! change to "hideReelsTab" before commit | ||
NSMutableArray *tabButtons = [self valueForKey:@"_tabButtons"]; | ||
|
||
NSLog(@"[BHInsta] Hiding reels tab"); | ||
|
||
if ([tabButtons count] == 5) { | ||
[tabButtons removeObjectAtIndex:3]; | ||
} | ||
|
||
[self.subviews[4] setHidden:YES]; | ||
} | ||
} | ||
%end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters