【文件属性】:
文件名称:Sendbird-Chat-in-SwiftUI:SwiftUI中的简单Sendbird聊天应用程序
文件大小:212KB
文件格式:ZIP
更新时间:2021-03-18 12:21:44
Sendbird聊天SwiftUI
尖端
如何绘制聊天界面?
通过使用.rotationEffect(Angle(degrees: 180))两次,可以使消息气泡与底部对齐。
ScrollView ( showsIndicators : false ) {
LazyVStack {
// Align to the bottom
Spacer ()
// Draw bubbles
ForEach (messages) {
MessageBubble ( message : $0 )
}
}
. rotationEffect ( Angle ( degrees : 180 ))
}
. rotationEffect ( An
【文件预览】:
Sendbird-Chat-in-SwiftUI-main
----LICENSE(1KB)
----screenshot_1.png(210KB)
----README.md(1KB)