Skip to content

Commit

Permalink
Merge pull request #86 from yageek/fix/deprecated_class
Browse files Browse the repository at this point in the history
Use `AnyObject` instead of deprecated `class` for protocol
  • Loading branch information
victor-sarda authored Apr 28, 2021
2 parents 250d8cb + a8fa473 commit 7f50926
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ViteMaDose/Helpers/Extensions/Storyboard+Common.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

protocol Storyboarded: class {
protocol Storyboarded: AnyObject {
static var storyboard: UIStoryboard { get }
}

Expand Down
2 changes: 1 addition & 1 deletion ViteMaDose/Helpers/Protocols/ErrorDisplayable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import UIKit

protocol ErrorDisplayable: class {
protocol ErrorDisplayable: AnyObject {
func presentRetryableAndCancellableError(
error: Error,
retryHandler: @escaping (_: UIAlertAction) -> Void,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ protocol CentresListViewModelProvider {
func bookingLink(at indexPath: IndexPath) -> URL?
}

protocol CentresListViewModelDelegate: class {
protocol CentresListViewModelDelegate: AnyObject {
func updateLoadingState(isLoading: Bool, isEmpty: Bool)

func presentLoadError(_ error: Error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ protocol CountySelectionViewModelProvider {
func didSelectCell(at indexPath: IndexPath)
}

protocol CountySelectionViewModelDelegate: class {
protocol CountySelectionViewModelDelegate: AnyObject {
func reloadTableView(with counties: Counties)
func dismissViewController(with county: County)
}
Expand Down
2 changes: 1 addition & 1 deletion ViteMaDose/ViewModels/Home/HomeViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ protocol HomeViewModelProvider {
var stats: Stats? { get }
}

protocol HomeViewModelDelegate: class {
protocol HomeViewModelDelegate: AnyObject {
func updateLoadingState(isLoading: Bool, isEmpty: Bool)

func presentVaccinationCentres(for county: County)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Foundation
import UIKit
import Haptica

protocol CountySelectionViewControllerDelegate: class {
protocol CountySelectionViewControllerDelegate: AnyObject {
func didSelect(county: County)
}

Expand Down

0 comments on commit 7f50926

Please # to comment.