Skip to content

Commit 139bab3

Browse files
committed
Replace class with AnyObject
1 parent 423c630 commit 139bab3

File tree

10 files changed

+10
-10
lines changed

10 files changed

+10
-10
lines changed

Base VIPER Interfaces/BaseWireframe.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
protocol WireframeInterface: class {
3+
protocol WireframeInterface: AnyObject {
44
}
55

66
class BaseWireframe {

Base VIPER Interfaces/FormatterInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
protocol FormatterInterface: class {
1+
protocol FormatterInterface: AnyObject {
22
}
33

44
extension FormatterInterface {

Base VIPER Interfaces/InteractorInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
protocol InteractorInterface: class {
1+
protocol InteractorInterface: AnyObject {
22
}
33

44
extension InteractorInterface {

Base VIPER Interfaces/PresenterInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
protocol PresenterInterface: class {
1+
protocol PresenterInterface: AnyObject {
22
}
33

44
extension PresenterInterface {

Base VIPER Interfaces/ViewInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
protocol ViewInterface: class {
1+
protocol ViewInterface: AnyObject {
22
}
33

44
extension ViewInterface {

Demo/Viper-v2-Demo/Application/Initializers/Initializer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88

99
import Foundation
1010

11-
protocol Initializable: class {
11+
protocol Initializable: AnyObject {
1212
func performInitialization()
1313
}

Demo/Viper-v2-Demo/Common/VIPER/BaseWireframe.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import SafariServices
33

4-
protocol WireframeInterface: class {
4+
protocol WireframeInterface: AnyObject {
55
func popFromNavigationController(animated: Bool)
66
func dismiss(animated: Bool)
77

Demo/Viper-v2-Demo/Common/VIPER/InteractorInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
protocol InteractorInterface: class {
1+
protocol InteractorInterface: AnyObject {
22
}
33

44
extension InteractorInterface {

Demo/Viper-v2-Demo/Common/VIPER/PresenterInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
protocol PresenterInterface: class {
1+
protocol PresenterInterface: AnyObject {
22
func viewDidLoad()
33
func viewWillAppear(animated: Bool)
44
func viewDidAppear(animated: Bool)

Demo/Viper-v2-Demo/Common/VIPER/ViewInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import UIKit
22
import SVProgressHUD
33

4-
protocol ViewInterface: class {
4+
protocol ViewInterface: AnyObject {
55
func showProgressHUD()
66
func hideProgressHUD()
77
}

0 commit comments

Comments
 (0)