We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f44a575 commit 6aa567fCopy full SHA for 6aa567f
docs/_integration-with-existing-apps-ios.md
@@ -467,10 +467,11 @@ class ViewController: UIViewController {
467
+ button.setTitleColor(.systemBlue, for: .normal)
468
+ button.setTitleColor(.blue, for: .highlighted)
469
+ button.addAction(UIAction { [weak self] _ in
470
++ guard let self else { return }
471
+ if reactViewController == nil {
472
+ reactViewController = ReactViewController()
473
+ }
-+ self?.present(reactViewController, animated: true)
474
++ present(reactViewController!, animated: true)
475
+ }, for: .touchUpInside)
476
+ self.view.addSubview(button)
477
+
0 commit comments