Show text if there are no DMs

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
James Carucci
2022-08-09 10:05:07 -07:00
committed by William Casarin
parent d6ef1c4019
commit f149368ac2

View File

@@ -132,6 +132,12 @@ struct DMChatView: View {
Footer
}
Text("Send a message to start the conversation...")
.lineLimit(nil)
.multilineTextAlignment(.center)
.padding(.horizontal, 40)
.opacity(((dms.events.count == 0) ? 1.0 : 0.0))
.foregroundColor(.gray)
}
.navigationTitle("DM")
.toolbar { Header }