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
@@ -1,4 +1,4 @@
//
//
// Copyright 2021 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
@@ -19,7 +19,6 @@ import Mapbox
/// Base class to handle a map annotation
class LocationAnnotation: NSObject, MGLAnnotation {
// MARK: - Properties
// Title property is needed to enable annotation selection and callout view showing
@@ -36,15 +35,14 @@ class LocationAnnotation: NSObject, MGLAnnotation {
}
/// POI map annotation
class PinLocationAnnotation: LocationAnnotation {}
class PinLocationAnnotation: LocationAnnotation { }
/// User map annotation
class UserLocationAnnotation: LocationAnnotation {
// MARK: - Properties
var userId: String {
return avatarData.matrixItemId
avatarData.matrixItemId
}
let avatarData: AvatarInputProtocol
@@ -53,13 +51,12 @@ class UserLocationAnnotation: LocationAnnotation {
init(avatarData: AvatarInputProtocol,
coordinate: CLLocationCoordinate2D) {
self.avatarData = avatarData
super.init(coordinate: coordinate)
super.title = self.avatarData.displayName ?? self.userId
super.title = self.avatarData.displayName ?? userId
}
}
/// Invisible annotation
class InvisibleLocationAnnotation: LocationAnnotation {}
class InvisibleLocationAnnotation: LocationAnnotation { }