mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -28,12 +28,12 @@ enum LocationSharingInteractionMode: Hashable {
|
||||
case picker(shouldShowLiveLocationOption: Bool)
|
||||
case viewStatic(StaticLocationData)
|
||||
case viewLive(sender: TimelineItemSender?, initialLiveLocationShare: LiveLocationShare?)
|
||||
|
||||
|
||||
var isPicker: Bool {
|
||||
if case .picker = self { return true }
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
var shouldShowLiveLocationOption: Bool {
|
||||
if case .picker(let shouldShowLiveLocationOption) = self {
|
||||
return shouldShowLiveLocationOption
|
||||
@@ -73,7 +73,7 @@ struct LocationSharingScreenViewState: BindableState {
|
||||
case .viewStatic, .viewLive: .show
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let interactionMode: LocationSharingInteractionMode
|
||||
let mapURLBuilder: MapTilerURLBuilderProtocol
|
||||
let ownUserID: String
|
||||
@@ -112,7 +112,7 @@ struct LocationSharingScreenViewState: BindableState {
|
||||
}
|
||||
|
||||
var bindings = LocationSharingScreenBindings(showsUserLocationMode: .hide)
|
||||
|
||||
|
||||
/// Indicates whether the user is sharing his current location
|
||||
var isSharingUserLocation: Bool {
|
||||
bindings.isLocationAuthorized == true && bindings.showsUserLocationMode == .showAndFollow
|
||||
@@ -148,7 +148,7 @@ struct LocationSharingScreenViewState: BindableState {
|
||||
!bindings.hasLoadedUserLocation && bindings.isLocationAuthorized == true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var zoomLevel: Double {
|
||||
15.0
|
||||
}
|
||||
@@ -194,7 +194,7 @@ struct LocationSharingScreenBindings {
|
||||
|
||||
/// Information describing the currently displayed alert.
|
||||
var alertInfo: AlertInfo<LocationSharingViewAlert>?
|
||||
|
||||
|
||||
var sharedAnnotation: LocationAnnotation?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user