Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

replaces all occurrences of class-only protocols from class to AnyObject #2

Closed
wants to merge 2 commits into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {

// 1
func questionViewController(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {

// 1
func questionViewController(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol QuestionViewControllerDelegate: class {
public protocol QuestionViewControllerDelegate: AnyObject {
func questionViewController(
_ viewController: QuestionViewController,
didCancel questionGroup: QuestionStrategy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import Foundation

public protocol QuestionStrategy: class {
public protocol QuestionStrategy: AnyObject {
var title: String { get }

var correctCount: Int { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

@objc public protocol DrawViewDelegate: class {
@objc public protocol DrawViewDelegate: AnyObject {
func drawView(_ source: DrawView, didAddLine line: LineShape)
func drawView(_ source: DrawView, didAddPoint point: CGPoint)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol DrawingSelectionViewControllerDelegate: class {
public protocol DrawingSelectionViewControllerDelegate: AnyObject {
func drawingSelectionViewControllerDidCancel(_ viewController: DrawingSelectionViewController)

func drawingSelectionViewController(_ viewController: DrawingSelectionViewController,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

@objc public protocol DrawViewDelegate: class {
@objc public protocol DrawViewDelegate: AnyObject {
func drawView(_ source: DrawView, didAddLine line: LineShape)
func drawView(_ source: DrawView, didAddPoint point: CGPoint)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

@objc public protocol DrawViewDelegate: class {
@objc public protocol DrawViewDelegate: AnyObject {
func drawView(_ source: DrawView, didAddLine line: LineShape)
func drawView(_ source: DrawView, didAddPoint point: CGPoint)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import YelpAPI

// MARK: - SearchClientDelegate
public protocol SearchClientDelegate: class {
public protocol SearchClientDelegate: AnyObject {

func searchClient(_ searchClient: SearchClient,
didSelect business: YLPBusiness,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import CoreLocation.CLLocation
import YelpAPI

public protocol SearchColleague: class {
public protocol SearchColleague: AnyObject {

var category: YelpCategory { get }
var selectedBusiness: YLPBusiness? { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import YelpAPI

public protocol SearchColleagueMediating: class {
public protocol SearchColleagueMediating: AnyObject {

func searchColleague(_ searchColleague: SearchColleague,
didSelect business: YLPBusiness)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import YelpAPI

// MARK: - SearchClientDelegate
public protocol SearchClientDelegate: class {
public protocol SearchClientDelegate: AnyObject {

func searchClient(_ searchClient: SearchClient,
didSelect business: YLPBusiness,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/// THE SOFTWARE.

public protocol Coordinator: class {
public protocol Coordinator: AnyObject {

var children: [Coordinator] { get set }
var router: Router { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol Router: class {
public protocol Router: AnyObject {
func present(_ viewController: UIViewController, animated: Bool)
func present(_ viewController: UIViewController,
animated: Bool,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - FakingItViewControllerDelegate
public protocol FakingItViewControllerDelegate: class {
public protocol FakingItViewControllerDelegate: AnyObject {
func fakingItViewControllerPressedIsFake(_ controller: FakingItViewController)
func fakingItViewControllerPressedNotFake(_ controller: FakingItViewController)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - HomeViewControllerDelegate
public protocol HomeViewControllerDelegate: class {
public protocol HomeViewControllerDelegate: AnyObject {
func homeViewControllerDidPressScheduleAppointment(_ viewController: HomeViewController)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - NoAppointmentViewControllerDelegate
public protocol NoAppointmentRequiredViewControllerDelegate: class {
public protocol NoAppointmentRequiredViewControllerDelegate: AnyObject {
func noAppointmentViewControllerDidPressOkay(_ controller: NoAppointmentRequiredViewController)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - SelectPainLevelViewControllerDelegate
public protocol SelectPainLevelViewControllerDelegate: class {
public protocol SelectPainLevelViewControllerDelegate: AnyObject {
func selectPainLevelViewController(_ controller: SelectPainLevelViewController,
didSelect painLevel: PainLevel)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol StoryboardInstantiable: class {
public protocol StoryboardInstantiable: AnyObject {
associatedtype MyType

static var storyboardFileName: String { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - SelectVisitTypeViewControllerDelegate
public protocol SelectVisitTypeViewControllerDelegate: class {
public protocol SelectVisitTypeViewControllerDelegate: AnyObject {
func selectVisitTypeViewController(_ controller: SelectVisitTypeViewController,
didSelect visitType: VisitType)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/// THE SOFTWARE.

public protocol Coordinator: class {
public protocol Coordinator: AnyObject {

var children: [Coordinator] { get set }
var router: Router { get }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

import UIKit

public protocol Router: class {
public protocol Router: AnyObject {
func present(_ viewController: UIViewController, animated: Bool)
func present(_ viewController: UIViewController,
animated: Bool,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - FakingItViewControllerDelegate
public protocol FakingItViewControllerDelegate: class {
public protocol FakingItViewControllerDelegate: AnyObject {
func fakingItViewControllerPressedIsFake(_ controller: FakingItViewController)
func fakingItViewControllerPressedNotFake(_ controller: FakingItViewController)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - HomeViewControllerDelegate
public protocol HomeViewControllerDelegate: class {
public protocol HomeViewControllerDelegate: AnyObject {
func homeViewControllerDidPressScheduleAppointment(_ viewController: HomeViewController)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - NoAppointmentViewControllerDelegate
public protocol NoAppointmentRequiredViewControllerDelegate: class {
public protocol NoAppointmentRequiredViewControllerDelegate: AnyObject {
func noAppointmentViewControllerDidPressOkay(_ controller: NoAppointmentRequiredViewController)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import UIKit

// MARK: - SelectPainLevelViewControllerDelegate
public protocol SelectPainLevelViewControllerDelegate: class {
public protocol SelectPainLevelViewControllerDelegate: AnyObject {
func selectPainLevelViewController(_ controller: SelectPainLevelViewController,
didSelect painLevel: PainLevel)
}
Expand Down
Loading