Skip to content

Commit

Permalink
Improve framework
Browse files Browse the repository at this point in the history
  • Loading branch information
Friend-LGA committed Dec 20, 2016
1 parent d95df93 commit 82a4532
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions LGSideMenuController/LGSideMenuController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1372,7 +1372,7 @@ - (void)rootViewsValidate {

// -----

if (self.rootViewController && !self.isLeftViewVisible && !self.isRightViewVisible) {
if (self.rootViewController && !self.isLeftViewGoingToShow && !self.isRightViewGoingToShow) {
[self addChildViewController:self.rootViewController];
}

Expand Down Expand Up @@ -2286,13 +2286,13 @@ - (void)showLeftViewAnimatedActions:(BOOL)animated completionHandler:(LGSideMenu
- (void)showLeftViewDoneWithGesture:(BOOL)withGesture {
self.leftViewShowing = YES;

if (self.rootViewController) {
[self addChildViewController:self.rootViewController];
}

if (self.isLeftViewGoingToShow) {
self.leftViewGoingToShow = NO;

if (self.rootViewController) {
[self addChildViewController:self.rootViewController];
}

[self didShowLeftViewCallbacks];
}
}
Expand Down Expand Up @@ -2541,12 +2541,12 @@ - (void)showRightViewAnimatedActions:(BOOL)animated completionHandler:(LGSideMen
- (void)showRightViewDoneWithGesture:(BOOL)withGesture {
self.rightViewShowing = YES;

if (self.rootViewController) {
[self addChildViewController:self.rootViewController];
}

if (self.isRightViewGoingToShow) {
self.rightViewGoingToShow = NO;

if (self.rootViewController) {
[self addChildViewController:self.rootViewController];
}

[self didShowRightViewCallbacks];
}
Expand Down

0 comments on commit 82a4532

Please sign in to comment.