Show text if there are no DMs
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
committed by
William Casarin
parent
d6ef1c4019
commit
f149368ac2
@@ -132,6 +132,12 @@ struct DMChatView: View {
|
|||||||
|
|
||||||
Footer
|
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")
|
.navigationTitle("DM")
|
||||||
.toolbar { Header }
|
.toolbar { Header }
|
||||||
|
|||||||
Reference in New Issue
Block a user