EnesKaraosman / SwiftyChat

SwiftUI Chat UI (Client) Framework & Documentation to get started!
Apache License 2.0
277 stars 53 forks source link

Chat view doesn't scroll on keyboard open / input #27

Closed nikans closed 1 year ago

nikans commented 2 years ago

There's a listener for keyboardWillShowNotification, but chat view doesn't scroll to bottom, because isKeyboardActive is true.

Screenshot 2022-04-13 at 12 56 04

Also, I couldn't find if there's functionality to scroll to bottom on message sent (nice to have, i.e. if you scrolled up while typing).

EnesKaraosman commented 1 year ago

I remember that we've added isKeyboardActive condition because the user might check an already received message and based on that he may be writing a new message. So we did not want user to loose his focus by scrolling..