Scroll to bottom when new DM received
Closes: #242 Closes: #241 Changelog-Fixed: Scroll to bottom when new DM received
This commit is contained in:
committed by
William Casarin
parent
553dcb785c
commit
96741af97b
@@ -27,6 +27,10 @@ struct DMChatView: View {
|
||||
}
|
||||
.onAppear {
|
||||
scroller.scrollTo("endblock")
|
||||
}.onChange(of: dms.events.count) { _ in
|
||||
withAnimation {
|
||||
scroller.scrollTo("endblock")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user