@@ -33,7 +33,7 @@ public enum StepAction {
3333
3434 // Links
3535 case safari( URL , UIModalPresentationStyle = . automatic, tintColor: UIColor ? = nil )
36- case universalLink( url: URL , onlyUniversal : Bool , completion: ( @MainActor ( Bool ) -> ( ) ) ? = nil )
36+ case universalLink( url: URL , onlyOpenWhenTargetAppIsAvailable : Bool = false , completion: ( @MainActor ( Bool ) -> ( ) ) ? = nil )
3737
3838 // Actions
3939 case call( String )
@@ -89,21 +89,20 @@ open class GoodCoordinator<Step>: NSObject, Coordinator {
8989 /// - Parameters:
9090 /// - rootViewController: The root view controller managed by this coordinator. Default value is nil.
9191 /// - parentCoordinator: The parent coordinator of this coordinator. Default value is nil.
92- public required init ( rootViewController: UIViewController ? = nil , parentCoordinator : Coordinator ? = nil ) {
92+ public required init ( rootViewController: UIViewController ? = nil ) {
9393 super. init ( )
9494
9595 self . rootViewController = rootViewController
96- self . parentCoordinator = parentCoordinator
97- self . parentCoordinator? . children. addObject ( self )
9896 }
9997
10098 /// A convenience initializer that initializes a GoodCoordinator with a root view controller derived from the provided parent coordinator.
10199 /// - Parameter parentCoordinator: The parent coordinator to which this coordinator will belong.
102- public required convenience init ( parentCoordinator: Coordinator ) {
103- self . init (
104- rootViewController: parentCoordinator. rootViewController,
105- parentCoordinator: parentCoordinator
106- )
100+ public required init ( parentCoordinator: Coordinator ? ) {
101+ super. init ( )
102+
103+ self . parentCoordinator = parentCoordinator
104+ self . rootViewController = parentCoordinator? . rootViewController
105+ self . parentCoordinator? . children. addObject ( self )
107106 }
108107
109108 // MARK: - Overridable
0 commit comments