mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-04 06:58:20 +02:00
vector-im/element-ios/issues/5298 - Displaying a modal when tapping on a location in the timeline.
This commit is contained in:
committed by
Stefan Ceriu
parent
17f9639173
commit
2ef67f3ed2
@@ -48,8 +48,17 @@ enum LocationSharingViewModelResult {
|
||||
struct LocationSharingViewState: BindableState {
|
||||
let tileServerMapURL: URL
|
||||
let avatarData: AvatarInputProtocol
|
||||
var shareButtonEnabled: Bool = true
|
||||
let location: CLLocationCoordinate2D?
|
||||
|
||||
var showLoadingIndicator: Bool = false
|
||||
|
||||
var shareButtonVisible: Bool {
|
||||
(location == nil)
|
||||
}
|
||||
|
||||
var shareButtonEnabled: Bool {
|
||||
!showLoadingIndicator
|
||||
}
|
||||
|
||||
let errorSubject = PassthroughSubject<LocationSharingViewError, Never>()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user