From 234f232cb95ae5c09ed5e587f9f2063f65785677 Mon Sep 17 00:00:00 2001 From: Levin Li Date: Tue, 27 Apr 2021 12:19:29 +0800 Subject: [PATCH] Fix warnings --- MobileCelestia/Celestia/CelestiaControlView.swift | 2 +- MobileCelestia/Celestia/CelestiaInteractionController.swift | 4 ++-- MobileCelestia/Celestia/CelestiaViewController.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MobileCelestia/Celestia/CelestiaControlView.swift b/MobileCelestia/Celestia/CelestiaControlView.swift index 9ad1098f..951b9795 100644 --- a/MobileCelestia/Celestia/CelestiaControlView.swift +++ b/MobileCelestia/Celestia/CelestiaControlView.swift @@ -28,7 +28,7 @@ enum CelestiaControlButton { case tap(image: UIImage, action: CelestiaControlAction) } -protocol CelestiaControlViewDelegate: class { +protocol CelestiaControlViewDelegate: AnyObject { func celestiaControlView(_ celestiaControlView: CelestiaControlView, pressDidStartWith action: CelestiaControlAction) func celestiaControlView(_ celestiaControlView: CelestiaControlView, pressDidEndWith action: CelestiaControlAction) func celestiaControlView(_ celestiaControlView: CelestiaControlView, didTapWith action: CelestiaControlAction) diff --git a/MobileCelestia/Celestia/CelestiaInteractionController.swift b/MobileCelestia/Celestia/CelestiaInteractionController.swift index 499958c2..4cf82b9a 100644 --- a/MobileCelestia/Celestia/CelestiaInteractionController.swift +++ b/MobileCelestia/Celestia/CelestiaInteractionController.swift @@ -45,13 +45,13 @@ extension CelestiaAppCore { } } -protocol CelestiaInteractionControllerDelegate: class { +protocol CelestiaInteractionControllerDelegate: AnyObject { func celestiaInteractionController(_ celestiaInteractionController: CelestiaInteractionController, requestShowActionMenuWithSelection selection: CelestiaSelection) func celestiaInteractionController(_ celestiaInteractionController: CelestiaInteractionController, requestShowInfoWithSelection selection: CelestiaSelection) func celestiaInteractionController(_ celestiaInteractionController: CelestiaInteractionController, requestWebInfo webURL: URL) } -protocol RenderingTargetInformationProvider: class { +protocol RenderingTargetInformationProvider: AnyObject { var targetGeometry: RenderingTargetGeometry { get } var targetImage: UIImage { get } } diff --git a/MobileCelestia/Celestia/CelestiaViewController.swift b/MobileCelestia/Celestia/CelestiaViewController.swift index f1711940..aa966c2c 100644 --- a/MobileCelestia/Celestia/CelestiaViewController.swift +++ b/MobileCelestia/Celestia/CelestiaViewController.swift @@ -24,7 +24,7 @@ struct RenderingTargetGeometry { typealias CelestiaLoadingResult = Result -protocol CelestiaControllerDelegate: class { +protocol CelestiaControllerDelegate: AnyObject { func celestiaController(_ celestiaController: CelestiaViewController, requestShowActionMenuWithSelection selection: CelestiaSelection) func celestiaController(_ celestiaController: CelestiaViewController, requestShowInfoWithSelection selection: CelestiaSelection) func celestiaController(_ celestiaController: CelestiaViewController, requestWebInfo webURL: URL)