Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use AnyObject instead of deprecated class for protocol #86

Merged
merged 1 commit into from
Apr 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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