App Layout: added space invites in space bottom sheet

This commit is contained in:
Gil Eluard
2022-08-21 11:07:21 +02:00
parent 74454d11cb
commit 03fc5676bb
13 changed files with 306 additions and 104 deletions
@@ -54,6 +54,8 @@ struct SpaceSelectorListItemData {
let highlightedNotificationCount: UInt
/// Indicates if the space has sub spaces (condition the display of the disclosure button)
let hasSubItems: Bool
/// Indicates if the space has has already been joined
let isJoined: Bool
init(id: String,
avatar: AvatarInput? = nil,
@@ -61,7 +63,8 @@ struct SpaceSelectorListItemData {
displayName: String?,
notificationCount: UInt = 0,
highlightedNotificationCount: UInt = 0,
hasSubItems: Bool = false) {
hasSubItems: Bool = false,
isJoined: Bool = false) {
self.id = id
self.avatar = avatar
self.icon = icon
@@ -69,6 +72,7 @@ struct SpaceSelectorListItemData {
self.notificationCount = notificationCount
self.highlightedNotificationCount = highlightedNotificationCount
self.hasSubItems = hasSubItems
self.isJoined = isJoined
}
}