<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariViewControllerDelegate/safariViewController(_:didCompleteInitialLoad:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(pl)SFSafariViewControllerDelegate(im)safariViewController:didCompleteInitialLoad:"
  },
  "title" : "safariViewController(_:didCompleteInitialLoad:)"
}
-->

# safariViewController(_:didCompleteInitialLoad:)

Tells the delegate that the initial URL load completed.

```
optional func safariViewController(_ controller: SFSafariViewController, didCompleteInitialLoad didLoadSuccessfully: Bool)
```

## Parameters

`controller`

The view controller.

`didLoadSuccessfully`

<doc://com.apple.documentation/documentation/Swift/true> if loading completed successfully; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method is invoked when [`SFSafariViewController`](/documentation/SafariServices/SFSafariViewController) completes the loading of the URL that you pass to its initializer. The method is not invoked for any subsequent page loads in the same [`SFSafariViewController`](/documentation/SafariServices/SFSafariViewController) instance.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)