mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
improved location sheets presentations and addressed some pr suggestions
This commit is contained in:
@@ -72,8 +72,9 @@ struct LocationSharingScreenViewState: BindableState {
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if the user's location has not yet been determined, while location permissions are given or not yet set
|
||||
/// Does not work as intended on simulator.
|
||||
var isLocationLoading: Bool {
|
||||
// May not work as intended on simulator
|
||||
!bindings.hasLoadedUserLocation && bindings.isLocationAuthorized != false
|
||||
}
|
||||
|
||||
@@ -92,7 +93,7 @@ struct LocationSharingScreenViewState: BindableState {
|
||||
|
||||
var userProfile: UserProfileProxy?
|
||||
|
||||
var staticLocationMarkerUserProfile: UserProfileProxy? {
|
||||
var locationMarkerUserProfile: UserProfileProxy? {
|
||||
switch interactionMode {
|
||||
case .picker:
|
||||
isSharingUserLocation ? userProfile : nil
|
||||
@@ -159,10 +160,3 @@ extension AlertInfo where T == LocationSharingViewError {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
struct StaticLocationData: Hashable {
|
||||
let sender: TimelineItemSender
|
||||
let geoURI: GeoURI
|
||||
let kind: StaticLocationKind
|
||||
let timestamp: Date
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user