Skip to content

Commit cd2f277

Browse files
committed
13515 Reinstate starting a new store webview
We mistakenly removed the handler for the starting a new store button on the start screen in WCiOS 19.6. This commit restores the webview presentation code.
1 parent 66f2418 commit cd2f277

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

WooCommerce/Classes/Authentication/AuthenticationManager.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,16 @@ extension AuthenticationManager: WordPressAuthenticatorDelegate {
552552
}
553553
analytics.track(wooEvent, withError: error)
554554
}
555+
556+
func showSiteCreationGuide(in navigationController: UINavigationController) {
557+
analytics.track(event: .StoreCreation.loginPrologueStartingANewStoreTapped())
558+
559+
guard let url = try? AuthenticationConstants.hostingURL.asURL() else {
560+
return
561+
}
562+
let webView = SFSafariViewController(url: url)
563+
navigationController.present(webView, animated: true)
564+
}
555565
}
556566

557567
// MARK: - Private helpers

0 commit comments

Comments
 (0)