Skip to content

Commit 9e37344

Browse files
author
Tosin Afolabi
committed
remove completion block from animation
1 parent b79b8ea commit 9e37344

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Source/SLKTextViewController.m

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -904,20 +904,16 @@ - (void)dismissTextInputbar:(BOOL)animated
904904

905905
weakSelf.keyboardHC.constant = 0.0;
906906
weakSelf.scrollViewHC.constant = [weakSelf slk_appropriateScrollViewHeight];
907+
[weakSelf slk_hideAutoCompletionViewIfNeeded];
907908

908909
[weakSelf.view layoutIfNeeded];
909910
};
910911

911-
void (^completion)(BOOL finished) = ^void(BOOL finished){
912-
[weakSelf slk_hideAutoCompletionViewIfNeeded];
913-
};
914-
915912
if (animated) {
916-
[UIView animateWithDuration:0.25 animations:animations completion:completion];
913+
[UIView animateWithDuration:0.25 animations:animations completion:nil];
917914
}
918915
else {
919916
animations();
920-
completion(NO);
921917
}
922918
}
923919

0 commit comments

Comments
 (0)