mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-24 00:16:39 +02:00
Configured and applied SwiftFormat
This commit is contained in:
committed by
Stefan Ceriu
parent
205e1645d4
commit
89bcd92cca
+3
-5
@@ -17,7 +17,6 @@
|
||||
import SwiftUI
|
||||
|
||||
final class LiveLocationLabPromotionCoordinator: NSObject, Coordinator, Presentable {
|
||||
|
||||
// MARK: - Properties
|
||||
|
||||
// MARK: Private
|
||||
@@ -50,7 +49,7 @@ final class LiveLocationLabPromotionCoordinator: NSObject, Coordinator, Presenta
|
||||
func start() {
|
||||
MXLog.debug("[LiveLocationLabPromotionCoordinator] did start.")
|
||||
|
||||
self.liveLocationLabPromotionViewModel.completion = { [weak self] enableLiveLocation in
|
||||
liveLocationLabPromotionViewModel.completion = { [weak self] enableLiveLocation in
|
||||
guard let self = self else { return }
|
||||
|
||||
RiotSettings.shared.enableLiveLocationSharing = enableLiveLocation
|
||||
@@ -62,15 +61,14 @@ final class LiveLocationLabPromotionCoordinator: NSObject, Coordinator, Presenta
|
||||
}
|
||||
|
||||
func toPresentable() -> UIViewController {
|
||||
return self.liveLocationLabPromotionHostingController
|
||||
liveLocationLabPromotionHostingController
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - UIAdaptivePresentationControllerDelegate
|
||||
|
||||
extension LiveLocationLabPromotionCoordinator: UIAdaptivePresentationControllerDelegate {
|
||||
|
||||
func presentationControllerDidDismiss(_ presentationController: UIPresentationController) {
|
||||
self.completion?(RiotSettings.shared.enableLiveLocationSharing)
|
||||
completion?(RiotSettings.shared.enableLiveLocationSharing)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user