added preview for views
This commit is contained in:
1 parent
1650145d4d
commit
1e2670903f
36 files changed
+744
-16
No files matched your search
@@ -90,3 +90,21 @@ struct AvatarView: View {
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#Preview("Контакт") {
|
||||
AvatarView(
|
||||
conversation: PreviewSupport.conversation(displayName: "Алиса", isOnline: true)
|
||||
)
|
||||
}
|
||||
|
||||
#Preview("Группа") {
|
||||
AvatarView(
|
||||
conversation: PreviewSupport.conversation(
|
||||
jid: "team@conference.example.org",
|
||||
displayName: "Команда Luma",
|
||||
kind: .group,
|
||||
isGroupJoined: true,
|
||||
occupantCount: 7
|
||||
)
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user