Skip to content

Commit 41066ae

Browse files
committed
Fix bug
Former-commit-id: 31a5c96
1 parent 00937a4 commit 41066ae

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

MVVMReactiveCocoa/View/MRCStarredReposViewController.m

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ @implementation MRCStarredReposViewController
1919

2020
@dynamic viewModel;
2121

22+
- (void)viewDidLoad {
23+
if (!(self.viewModel.isCurrentUser && self.viewModel.entryPoint == MRCStarredReposViewModelEntryPointHomepage)) {
24+
self.searchBar.frame = CGRectZero;
25+
}
26+
27+
[super viewDidLoad];
28+
}
29+
2230
- (UIEdgeInsets)contentInset {
2331
return self.viewModel.entryPoint == MRCStarredReposViewModelEntryPointUserDetail ? UIEdgeInsetsMake(64, 0, 0, 0) : [super contentInset];
2432
}

0 commit comments

Comments
 (0)