mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
Merge pull request #1266 from vector-im/move_loading_wheel_with_keyboard
RoomVC: Make the activity indicator follow the keyboard
This commit is contained in:
commit
7450045ba9
1 changed files with 6 additions and 0 deletions
|
@ -930,6 +930,12 @@
|
|||
|
||||
});
|
||||
}
|
||||
|
||||
// Make the activity indicator follow the keyboard
|
||||
// At runtime, this creates a smooth animation
|
||||
CGPoint activityIndicatorCenter = self.activityIndicator.center;
|
||||
activityIndicatorCenter.y = self.view.center.y - keyboardHeight / 2;
|
||||
self.activityIndicator.center = activityIndicatorCenter;
|
||||
}
|
||||
|
||||
- (void)dismissTemporarySubViews
|
||||
|
|
Loading…
Reference in a new issue