AS
Size: a a a
AS
AS
func addControllersToNavigation() {
viewControllers.append(profileViewController)
viewControllers.append(inviteFriendsViewController)
viewControllers.append(invitationsViewController)
viewControllers.append(chatsViewController)
viewControllers.append(editGalleryViewController)
}
AS
AS
AS
VS
AS
T
AY
РЛ
VM
@objc func keyboardWillShow(_ notification: Notification) {
let userInfo = notification.userInfo
let offset = (userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as! NSValue).cgRectValue
self.inputTextBottomAnchor?.constant = -offset.height + 35
self.collectionView.collectionViewLayout.invalidateLayout()
}
VM
РЛ
A
VM
VM
@objc func keyboardWillShow(_ notification: Notification) {
let userInfo = notification.userInfo
let offset = (userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as! NSValue).cgRectValue
self.inputTextBottomAnchor?.constant = -offset.height + 35
self.collectionView.setNeedsLayout()
self.collectionView.layoutIfNeeded()
scrollToBottom()
}
РЛ
VM
РЛ