Skip to content

Commit 12ca1f7

Browse files
committed
Viewable conformance
1 parent 3339f2b commit 12ca1f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/RIBs/ViewControllable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Lifecycle
2121
#endif
2222

2323
/// Basic interface between a `Router` and the UIKit `UIViewController`.
24-
public protocol ViewControllable {
24+
public protocol ViewControllable: AnyObject {
2525

2626
#if !os(macOS)
2727
var uiviewController: UIViewController { get }

Sources/RIBs/ViewableRouter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public protocol ViewableRouting: Routing {
2828
}
2929

3030
/// Base class of an `Interactor` that has a separate associated `Presenter` and `View`.
31-
open class ViewableRouter<InteractorType, ViewControllerType>: Router<InteractorType> {
31+
open class ViewableRouter<InteractorType, ViewControllerType>: Router<InteractorType>, ViewableRouting {
3232

3333
/// The corresponding `ViewController` owned by this `Router`.
3434
public let viewController: ViewControllerType

0 commit comments

Comments
 (0)