diff --git a/04-delegation-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/04-delegation-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index b69e516..923f6c7 100644 --- a/04-delegation-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/04-delegation-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { // 1 func questionViewController( diff --git a/05-strategy-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/05-strategy-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/05-strategy-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/05-strategy-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/05-strategy-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/05-strategy-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/05-strategy-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/05-strategy-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/05-strategy-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/05-strategy-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index b69e516..923f6c7 100644 --- a/05-strategy-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/05-strategy-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { // 1 func questionViewController( diff --git a/06-singleton-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/06-singleton-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/06-singleton-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/06-singleton-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/06-singleton-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/06-singleton-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/06-singleton-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/06-singleton-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/06-singleton-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/06-singleton-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/06-singleton-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/06-singleton-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/06-singleton-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/06-singleton-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/06-singleton-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/06-singleton-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/07-memento-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/07-memento-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/07-memento-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/07-memento-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/07-memento-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/07-memento-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/07-memento-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/07-memento-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/07-memento-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/07-memento-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/07-memento-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/07-memento-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/07-memento-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/07-memento-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/07-memento-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/07-memento-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/08-observer-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/08-observer-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/08-observer-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/08-observer-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/08-observer-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/08-observer-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/08-observer-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/08-observer-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/08-observer-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/08-observer-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/08-observer-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/08-observer-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/08-observer-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/08-observer-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/08-observer-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/08-observer-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/09-builder-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/09-builder-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/09-builder-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/09-builder-pattern/projects/final/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/09-builder-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/09-builder-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/09-builder-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/09-builder-pattern/projects/final/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/09-builder-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/09-builder-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/09-builder-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/09-builder-pattern/projects/starter/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/09-builder-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/09-builder-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/09-builder-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/09-builder-pattern/projects/starter/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/09-builder-pattern/projects/starter_before_files_added_TE_FPE_Only/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift b/09-builder-pattern/projects/starter_before_files_added_TE_FPE_Only/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift index d606acf..192fbf9 100644 --- a/09-builder-pattern/projects/starter_before_files_added_TE_FPE_Only/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift +++ b/09-builder-pattern/projects/starter_before_files_added_TE_FPE_Only/RabbleWabble/RabbleWabble/Controllers/QuestionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol QuestionViewControllerDelegate: class { +public protocol QuestionViewControllerDelegate: AnyObject { func questionViewController( _ viewController: QuestionViewController, didCancel questionGroup: QuestionStrategy) diff --git a/09-builder-pattern/projects/starter_before_files_added_TE_FPE_Only/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift b/09-builder-pattern/projects/starter_before_files_added_TE_FPE_Only/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift index 340b556..a0513ef 100644 --- a/09-builder-pattern/projects/starter_before_files_added_TE_FPE_Only/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift +++ b/09-builder-pattern/projects/starter_before_files_added_TE_FPE_Only/RabbleWabble/RabbleWabble/Strategies/QuestionStrategy.swift @@ -28,7 +28,7 @@ import Foundation -public protocol QuestionStrategy: class { +public protocol QuestionStrategy: AnyObject { var title: String { get } var correctCount: Int { get } diff --git a/16-multicast-delegate-pattern/projects/final/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift b/16-multicast-delegate-pattern/projects/final/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift index 187fa5c..fcb7a14 100644 --- a/16-multicast-delegate-pattern/projects/final/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift +++ b/16-multicast-delegate-pattern/projects/final/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift @@ -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) } diff --git a/17-facade-pattern/projects/final/MirrorPad/MirrorPad/Facades/DrawingSelectionViewController.swift b/17-facade-pattern/projects/final/MirrorPad/MirrorPad/Facades/DrawingSelectionViewController.swift index 6bdb6c5..5071afe 100644 --- a/17-facade-pattern/projects/final/MirrorPad/MirrorPad/Facades/DrawingSelectionViewController.swift +++ b/17-facade-pattern/projects/final/MirrorPad/MirrorPad/Facades/DrawingSelectionViewController.swift @@ -28,7 +28,7 @@ import UIKit -public protocol DrawingSelectionViewControllerDelegate: class { +public protocol DrawingSelectionViewControllerDelegate: AnyObject { func drawingSelectionViewControllerDidCancel(_ viewController: DrawingSelectionViewController) func drawingSelectionViewController(_ viewController: DrawingSelectionViewController, diff --git a/17-facade-pattern/projects/final/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift b/17-facade-pattern/projects/final/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift index 187fa5c..fcb7a14 100644 --- a/17-facade-pattern/projects/final/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift +++ b/17-facade-pattern/projects/final/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift @@ -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) } diff --git a/17-facade-pattern/projects/starter/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift b/17-facade-pattern/projects/starter/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift index 187fa5c..fcb7a14 100644 --- a/17-facade-pattern/projects/starter/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift +++ b/17-facade-pattern/projects/starter/MirrorPad/MirrorPad/Views/DrawView/DrawView.swift @@ -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) } diff --git a/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchClientDelegate.swift b/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchClientDelegate.swift index 2344526..d01848a 100644 --- a/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchClientDelegate.swift +++ b/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchClientDelegate.swift @@ -29,7 +29,7 @@ import YelpAPI // MARK: - SearchClientDelegate -public protocol SearchClientDelegate: class { +public protocol SearchClientDelegate: AnyObject { func searchClient(_ searchClient: SearchClient, didSelect business: YLPBusiness, diff --git a/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchColleague.swift b/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchColleague.swift index 41650d9..8fb8509 100644 --- a/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchColleague.swift +++ b/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchColleague.swift @@ -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 } diff --git a/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchColleagueMediating.swift b/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchColleagueMediating.swift index 4359684..822d28c 100644 --- a/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchColleagueMediating.swift +++ b/19-mediator-pattern/projects/final/YetiDate/YetiDate/SearchClient/Protocols/SearchColleagueMediating.swift @@ -28,7 +28,7 @@ import YelpAPI -public protocol SearchColleagueMediating: class { +public protocol SearchColleagueMediating: AnyObject { func searchColleague(_ searchColleague: SearchColleague, didSelect business: YLPBusiness) diff --git a/19-mediator-pattern/projects/starter/YetiDate/YetiDate/SearchClient/Protocols/SearchClientDelegate.swift b/19-mediator-pattern/projects/starter/YetiDate/YetiDate/SearchClient/Protocols/SearchClientDelegate.swift index 2344526..d01848a 100644 --- a/19-mediator-pattern/projects/starter/YetiDate/YetiDate/SearchClient/Protocols/SearchClientDelegate.swift +++ b/19-mediator-pattern/projects/starter/YetiDate/YetiDate/SearchClient/Protocols/SearchClientDelegate.swift @@ -29,7 +29,7 @@ import YelpAPI // MARK: - SearchClientDelegate -public protocol SearchClientDelegate: class { +public protocol SearchClientDelegate: AnyObject { func searchClient(_ searchClient: SearchClient, didSelect business: YLPBusiness, diff --git a/23-coordinator-pattern/projects/final/RayPets/RayPets/Coordinators/Coordinator.swift b/23-coordinator-pattern/projects/final/RayPets/RayPets/Coordinators/Coordinator.swift index f7b917c..1849342 100644 --- a/23-coordinator-pattern/projects/final/RayPets/RayPets/Coordinators/Coordinator.swift +++ b/23-coordinator-pattern/projects/final/RayPets/RayPets/Coordinators/Coordinator.swift @@ -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 } diff --git a/23-coordinator-pattern/projects/final/RayPets/RayPets/Routers/Router.swift b/23-coordinator-pattern/projects/final/RayPets/RayPets/Routers/Router.swift index a122ff8..4520df9 100644 --- a/23-coordinator-pattern/projects/final/RayPets/RayPets/Routers/Router.swift +++ b/23-coordinator-pattern/projects/final/RayPets/RayPets/Routers/Router.swift @@ -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, diff --git a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/FakingIt/FakingItViewController.swift b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/FakingIt/FakingItViewController.swift index 523cdcf..7f7a639 100644 --- a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/FakingIt/FakingItViewController.swift +++ b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/FakingIt/FakingItViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - FakingItViewControllerDelegate -public protocol FakingItViewControllerDelegate: class { +public protocol FakingItViewControllerDelegate: AnyObject { func fakingItViewControllerPressedIsFake(_ controller: FakingItViewController) func fakingItViewControllerPressedNotFake(_ controller: FakingItViewController) } diff --git a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/Home/Controllers/HomeViewController.swift b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/Home/Controllers/HomeViewController.swift index b6c8568..77a095f 100644 --- a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/Home/Controllers/HomeViewController.swift +++ b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/Home/Controllers/HomeViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - HomeViewControllerDelegate -public protocol HomeViewControllerDelegate: class { +public protocol HomeViewControllerDelegate: AnyObject { func homeViewControllerDidPressScheduleAppointment(_ viewController: HomeViewController) } diff --git a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/NoAppointmentRequired/Controllers/NoAppointmentRequiredViewController.swift b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/NoAppointmentRequired/Controllers/NoAppointmentRequiredViewController.swift index 0f93fbf..991c839 100644 --- a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/NoAppointmentRequired/Controllers/NoAppointmentRequiredViewController.swift +++ b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/NoAppointmentRequired/Controllers/NoAppointmentRequiredViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - NoAppointmentViewControllerDelegate -public protocol NoAppointmentRequiredViewControllerDelegate: class { +public protocol NoAppointmentRequiredViewControllerDelegate: AnyObject { func noAppointmentViewControllerDidPressOkay(_ controller: NoAppointmentRequiredViewController) } diff --git a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/PainLevel/Controllers/SelectPainLevelViewController.swift b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/PainLevel/Controllers/SelectPainLevelViewController.swift index e57ed5c..54c4c96 100644 --- a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/PainLevel/Controllers/SelectPainLevelViewController.swift +++ b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/PainLevel/Controllers/SelectPainLevelViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - SelectPainLevelViewControllerDelegate -public protocol SelectPainLevelViewControllerDelegate: class { +public protocol SelectPainLevelViewControllerDelegate: AnyObject { func selectPainLevelViewController(_ controller: SelectPainLevelViewController, didSelect painLevel: PainLevel) } diff --git a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/Protocols/StoryboardInstantiable.swift b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/Protocols/StoryboardInstantiable.swift index 94ec4cd..fcea546 100644 --- a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/Protocols/StoryboardInstantiable.swift +++ b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/Protocols/StoryboardInstantiable.swift @@ -28,7 +28,7 @@ import UIKit -public protocol StoryboardInstantiable: class { +public protocol StoryboardInstantiable: AnyObject { associatedtype MyType static var storyboardFileName: String { get } diff --git a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/VisitType/Controllers/SelectVisitTypeViewController.swift b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/VisitType/Controllers/SelectVisitTypeViewController.swift index 46fc4ad..6ce0e6e 100644 --- a/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/VisitType/Controllers/SelectVisitTypeViewController.swift +++ b/23-coordinator-pattern/projects/final/RayPets/RayPets/Screens/VisitType/Controllers/SelectVisitTypeViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - SelectVisitTypeViewControllerDelegate -public protocol SelectVisitTypeViewControllerDelegate: class { +public protocol SelectVisitTypeViewControllerDelegate: AnyObject { func selectVisitTypeViewController(_ controller: SelectVisitTypeViewController, didSelect visitType: VisitType) } diff --git a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Coordinators/Coordinator.swift b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Coordinators/Coordinator.swift index f7b917c..1849342 100644 --- a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Coordinators/Coordinator.swift +++ b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Coordinators/Coordinator.swift @@ -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 } diff --git a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Routers/Router.swift b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Routers/Router.swift index a122ff8..4520df9 100644 --- a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Routers/Router.swift +++ b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Routers/Router.swift @@ -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, diff --git a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/FakingIt/FakingItViewController.swift b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/FakingIt/FakingItViewController.swift index 523cdcf..7f7a639 100644 --- a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/FakingIt/FakingItViewController.swift +++ b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/FakingIt/FakingItViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - FakingItViewControllerDelegate -public protocol FakingItViewControllerDelegate: class { +public protocol FakingItViewControllerDelegate: AnyObject { func fakingItViewControllerPressedIsFake(_ controller: FakingItViewController) func fakingItViewControllerPressedNotFake(_ controller: FakingItViewController) } diff --git a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/Home/Controllers/HomeViewController.swift b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/Home/Controllers/HomeViewController.swift index b6c8568..77a095f 100644 --- a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/Home/Controllers/HomeViewController.swift +++ b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/Home/Controllers/HomeViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - HomeViewControllerDelegate -public protocol HomeViewControllerDelegate: class { +public protocol HomeViewControllerDelegate: AnyObject { func homeViewControllerDidPressScheduleAppointment(_ viewController: HomeViewController) } diff --git a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/NoAppointmentRequired/Controllers/NoAppointmentRequiredViewController.swift b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/NoAppointmentRequired/Controllers/NoAppointmentRequiredViewController.swift index 0f93fbf..991c839 100644 --- a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/NoAppointmentRequired/Controllers/NoAppointmentRequiredViewController.swift +++ b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/NoAppointmentRequired/Controllers/NoAppointmentRequiredViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - NoAppointmentViewControllerDelegate -public protocol NoAppointmentRequiredViewControllerDelegate: class { +public protocol NoAppointmentRequiredViewControllerDelegate: AnyObject { func noAppointmentViewControllerDidPressOkay(_ controller: NoAppointmentRequiredViewController) } diff --git a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/PainLevel/Controllers/SelectPainLevelViewController.swift b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/PainLevel/Controllers/SelectPainLevelViewController.swift index e57ed5c..54c4c96 100644 --- a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/PainLevel/Controllers/SelectPainLevelViewController.swift +++ b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/PainLevel/Controllers/SelectPainLevelViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - SelectPainLevelViewControllerDelegate -public protocol SelectPainLevelViewControllerDelegate: class { +public protocol SelectPainLevelViewControllerDelegate: AnyObject { func selectPainLevelViewController(_ controller: SelectPainLevelViewController, didSelect painLevel: PainLevel) } diff --git a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/Protocols/StoryboardInstantiable.swift b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/Protocols/StoryboardInstantiable.swift index 94ec4cd..fcea546 100644 --- a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/Protocols/StoryboardInstantiable.swift +++ b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/Protocols/StoryboardInstantiable.swift @@ -28,7 +28,7 @@ import UIKit -public protocol StoryboardInstantiable: class { +public protocol StoryboardInstantiable: AnyObject { associatedtype MyType static var storyboardFileName: String { get } diff --git a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/VisitType/Controllers/SelectVisitTypeViewController.swift b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/VisitType/Controllers/SelectVisitTypeViewController.swift index 46fc4ad..6ce0e6e 100644 --- a/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/VisitType/Controllers/SelectVisitTypeViewController.swift +++ b/23-coordinator-pattern/projects/starter/RayPets/RayPets/Screens/VisitType/Controllers/SelectVisitTypeViewController.swift @@ -29,7 +29,7 @@ import UIKit // MARK: - SelectVisitTypeViewControllerDelegate -public protocol SelectVisitTypeViewControllerDelegate: class { +public protocol SelectVisitTypeViewControllerDelegate: AnyObject { func selectVisitTypeViewController(_ controller: SelectVisitTypeViewController, didSelect visitType: VisitType) }