Configured and applied SwiftFormat

This commit is contained in:
Stefan Ceriu
2022-09-27 10:17:22 +03:00
committed by Stefan Ceriu
parent ff2e6ddfa7
commit 43c28d23b7
663 changed files with 2329 additions and 2840 deletions
@@ -14,11 +14,10 @@
// limitations under the License.
//
import SwiftUI
import CoreLocation
import SwiftUI
struct LocationSharingView: View {
// MARK: - Properties
// MARK: Private
@@ -39,7 +38,6 @@ struct LocationSharingView: View {
}
VStack(spacing: 0) {
if context.viewState.showMapLoadingError {
MapLoadingErrorView()
} else {
@@ -50,7 +48,7 @@ struct LocationSharingView: View {
})
.padding(.bottom, 10.0)
.actionSheet(isPresented: $context.showMapCreditsSheet) {
return MapCreditsActionSheet(openURL: { url in
MapCreditsActionSheet(openURL: { url in
openURL(url)
}).sheet
}
@@ -99,8 +97,8 @@ struct LocationSharingView: View {
mapCenterCoordinate: $context.pinLocation,
errorSubject: context.viewState.errorSubject,
userDidPan: {
context.send(viewAction: .userDidPan)
})
context.send(viewAction: .userDidPan)
})
if context.viewState.isPinDropSharing {
LocationSharingMarkerView(backgroundColor: theme.colors.accent) {
Image(uiImage: Asset.Images.locationPinIcon.image)