Skip to content

Commit

Permalink
HotFix for ermalkaleci#248
Browse files Browse the repository at this point in the history
This commit fixes ermalkaleci#248. This is a hot fix, a proper fix needed.
ermalkaleci#248
  • Loading branch information
Pratik948 authored Apr 22, 2020
1 parent 63fa730 commit 14bf2b3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CarbonKit/CarbonTabSwipeNavigation.m
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ - (instancetype)initWithItems:(NSArray *)items delegate:(id)target {
[self createTabSwipeScrollViewWithItems:items];
[self addToolbarIntoSuperview];
[self createPageViewController];

[self loadFirstViewController];
}
return self;
}
Expand All @@ -111,8 +109,6 @@ - (instancetype)initWithItems:(NSArray *)items toolBar:(UIToolbar *)toolBar dele
[self setToolbar:toolBar];
[self createTabSwipeScrollViewWithItems:items];
[self createPageViewController];

[self loadFirstViewController];
}
return self;
}
Expand All @@ -128,6 +124,7 @@ - (void)viewDidAppear:(BOOL)animated {

- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self loadFirstViewController];
[self.pageViewController viewWillAppear:animated];
}

Expand Down

0 comments on commit 14bf2b3

Please sign in to comment.