EnesKaraosman / SwiftyChat

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

UI shaking when popped with keyboard was shown #36

Closed LiLiKazine closed 1 year ago

LiLiKazine commented 1 year ago

Enter BasicExampleView than tap TextView, wait til keyboard shows up, than tap navigation back, observe the UI closely, you will find the whole view including navigation bar was shaking slightly while popping. I have found the cause was the code below, but didn't find a solution yet. Binding<NSAttributedString>( get: { NSAttributedString( string: self.message, attributes: [ NSAttributedString.Key.font: UIFont.preferredFont(forTextStyle: .body), NSAttributedString.Key.foregroundColor: UIColor.label, ] ) }, set: { self.message = $0.string } )

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.