Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
levinli303 committed Apr 27, 2021
1 parent 8409eaf commit 234f232
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion MobileCelestia/Celestia/CelestiaControlView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions MobileCelestia/Celestia/CelestiaInteractionController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
}
Expand Down
2 changes: 1 addition & 1 deletion MobileCelestia/Celestia/CelestiaViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct RenderingTargetGeometry {

typealias CelestiaLoadingResult = Result<Void, CelestiaLoadingError>

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)
Expand Down

0 comments on commit 234f232

Please sign in to comment.