close
Closes the currently presented SFSafariViewController.
This method programmatically dismisses the Safari view controller if one is currently being presented. This is useful for scenarios where you need to close the browser from your app's code.
Behavior
Dismisses the Safari view controller with animation
Clears the internal reference to prevent memory leaks
Logs a message if no Safari view controller is currently presented
Safe to call multiple times or when no Safari view is open