mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
ff2e6ddfa7
commit
43c28d23b7
@@ -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 { }
|
||||
|
||||
Reference in New Issue
Block a user