---
title: "init(url:dateOfLastVisit:title:loadedSuccessfully:httpGet:redirectSourceURL:redirectSourceDateOfVisit:redirectDestinationURL:redirectDestinationDateOfVisit:visitCount:)"
framework: BrowserKit
role: symbol
role_heading: Initializer
platforms: [iOS 26.4+, iPadOS 26.4+]
path: "browserkit/bebrowserdatahistoryvisit/init(url:dateoflastvisit:title:loadedsuccessfully:httpget:redirectsourceurl:redirectsourcedateofvisit:redirectdestinationurl:redirectdestinationdateofvisit:visitcount:)-j2oc"
---

# init(url:dateOfLastVisit:title:loadedSuccessfully:httpGet:redirectSourceURL:redirectSourceDateOfVisit:redirectDestinationURL:redirectDestinationDateOfVisit:visitCount:)

Creates a record of a page visit that includes metadata and redirect information.

## Declaration

```swift
init(url: URL, dateOfLastVisit: Date, title: String?, loadedSuccessfully: Bool, httpGet: Bool, redirectSourceURL: URL?, redirectSourceDateOfVisit: Date?, redirectDestinationURL: URL?, redirectDestinationDateOfVisit: Date?, visitCount: Int)
```

## Parameters

- `url`: The URL of the visited page.
- `dateOfLastVisit`: The date someone last visited the page.
- `title`: The title of the visited page, or nil if unavailable.
- `loadedSuccessfully`: A Boolean value that indicates whether the page loaded without errors.
- `httpGet`: A Boolean value that indicates whether the visit used an HTTP GET request.
- `redirectSourceURL`: A URL that redirects to the visited page, or nil if the visit isn’t the destination of a redirect.
- `redirectSourceDateOfVisit`: The date someone navigates to the source URL, or nil if the visit isn’t the destination of a redirect.
- `redirectDestinationURL`: The URL to which this page redirects, or nil if the visit doesn’t redirect.
- `redirectDestinationDateOfVisit`: The date someone navigates to the redirected destination, or nil if the visit doesn’t redirect.
- `visitCount`: The number of times someone visited this page.
