SwiftUI Firebase Chat 13: ScrollViewReader and Proxy Auto Message Scrolling

preview_player
Показать описание
Source:

SwiftUI Core Data:

Maps UIKit Swift:

Fullstack Social NodeJS:

Рекомендации по теме
Комментарии
Автор

Thanks for share all your thoughts and experience with us. I loved how you solved the "scroll down" idea. That was awesome!

fabiano.almeida
Автор

man, you do amazing stuff. I appreciate the vids

brianortega
Автор

What a clover solution .
What I was thinking for this issue is to make it as the .id(vm.messages.last ?? .init(// whatever an object) )
and then make the scrollViewProxy.scrollTo(to the last message)

haven't thought about the DispatchQueue part 😅.

tariqAlmazyad
Автор

How are you handling scrolling the messages up when the keyboard is summoned?

johnsorensen
Автор

Thanks for the trick.But i need to scroll up when there is more content to load from server. How can i achieve that efficiently.

MohammedHussain-ufuo
Автор

While keyboard is presented every time we push the chat view controller the chat list doesnt scroll to the end of the last chat above the keyboard. if we put delay for scrolling to the last then it works.

piyushsharma