mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-05 07:27:42 +02:00
LiveLocationSharingViewerViewState: Add location sharing ended flag.
This commit is contained in:
+10
-1
@@ -38,7 +38,7 @@ struct LiveLocationSharingViewerViewState: BindableState {
|
||||
var annotations: [UserLocationAnnotation]
|
||||
|
||||
/// Map annotation to focus on
|
||||
var highlightedAnnotation: UserLocationAnnotation?
|
||||
var highlightedAnnotation: LocationAnnotation?
|
||||
|
||||
/// Live location list items
|
||||
var listItemsViewData: [LiveLocationListItemViewData]
|
||||
@@ -48,6 +48,15 @@ struct LiveLocationSharingViewerViewState: BindableState {
|
||||
var shareButtonEnabled: Bool {
|
||||
!showLoadingIndicator
|
||||
}
|
||||
|
||||
/// True to indicate that everybody stopped to share live location sharing in the room
|
||||
var isAllLocationSharingEnded: Bool {
|
||||
return listItemsViewData.isEmpty
|
||||
}
|
||||
|
||||
var isBottomSheetVisible: Bool {
|
||||
return isAllLocationSharingEnded == false
|
||||
}
|
||||
|
||||
let errorSubject = PassthroughSubject<LocationSharingViewError, Never>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user