diff --git a/Sources/QRoute/Driving/QRouteDriving.swift b/Sources/QRoute/Driving/QRouteDriving.swift index 3a927e1..0d4e09c 100644 --- a/Sources/QRoute/Driving/QRouteDriving.swift +++ b/Sources/QRoute/Driving/QRouteDriving.swift @@ -1,4 +1,4 @@ -public protocol QRouteDriving: class { +public protocol QRouteDriving: AnyObject { func driveParent(from source: QRoutable, input: QRouteResolving.Input?, diff --git a/Sources/QRoute/QRoutable.swift b/Sources/QRoute/QRoutable.swift index 28ba714..8e0a3ae 100644 --- a/Sources/QRoute/QRoutable.swift +++ b/Sources/QRoute/QRoutable.swift @@ -1,3 +1,3 @@ -public protocol QRoutable: class { +public protocol QRoutable: AnyObject { var routeResolver: QRouteResolving! { get } } diff --git a/Sources/QRoute/Resolving/QRouteResolving.swift b/Sources/QRoute/Resolving/QRouteResolving.swift index 213f1ad..6af3212 100644 --- a/Sources/QRoute/Resolving/QRouteResolving.swift +++ b/Sources/QRoute/Resolving/QRouteResolving.swift @@ -1,4 +1,4 @@ -public protocol QRouteResolving: class { +public protocol QRouteResolving: AnyObject { typealias Input = [String:Any] typealias Completion = (QRoutable?)->() typealias OnInput = (Input)->()