<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserKit",
  "identifier" : "/documentation/BrowserKit/BEBrowserDataHistoryVisit",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "BrowserKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BEBrowserDataHistoryVisit"
  },
  "title" : "BEBrowserDataHistoryVisit"
}
-->

# BEBrowserDataHistoryVisit

A class that transfers page visit history between browsers.

```
class BEBrowserDataHistoryVisit
```

## Overview

This class captures comprehensive information about a page visit, including metadata, the URL, redirect information, and success status. The redirect properties enable a browser to preserve full navigation context when transferring history.

## Topics

### Gathering data that creates the history of a visit

[`init(url: URL, dateOfLastVisit: Date, title: String?, loadedSuccessfully: Bool, httpGet: Bool, redirectSourceURL: URL?, redirectSourceDateOfVisit: Date?, redirectDestinationURL: URL?, redirectDestinationDateOfVisit: Date?, visitCount: Int)`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/init(url:dateOfLastVisit:title:loadedSuccessfully:httpGet:redirectSourceURL:redirectSourceDateOfVisit:redirectDestinationURL:redirectDestinationDateOfVisit:visitCount:)-j2oc)

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

### Accessing visit properties

[`var dateOfLastVisit: Date`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/dateOfLastVisit)

The date of the person’s last page visit.

[`var httpGet: Bool`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/httpGet)

A Boolean value that indicates whether the visit is an HTTP GET request.

[`var loadedSuccessfully: Bool`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/loadedSuccessfully)

A Boolean value that indicates whether the page loads without errors.

[`var title: String?`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/title)

A localized title for a visited page.

[`var url: URL`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/url)

A URL for the visited page.

[`var visitCount: Int`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/visitCount)

A count of how many visits the page received.

### Managing redirect information

[`var redirectDestinationDateOfVisit: Date?`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/redirectDestinationDateOfVisit)

The date of the redirect destination visit.

[`var redirectDestinationURL: URL?`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/redirectDestinationURL)

A URL to which the visit redirects.

[`var redirectSourceDateOfVisit: Date?`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/redirectSourceDateOfVisit)

The date of the redirect source visit.

[`var redirectSourceURL: URL?`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/redirectSourceURL)

A URL that redirects to the visited page.

### Initializers

[`init(URL: URL, dateOfLastVisit: Date, title: String?, loadedSuccessfully: Bool, httpGet: Bool, redirectSourceURL: URL?, redirectSourceDateOfVisit: Date?, redirectDestinationURL: URL?, redirectDestinationDateOfVisit: Date?, visitCount: Int)`](/documentation/BrowserKit/BEBrowserDataHistoryVisit/init(URL:dateOfLastVisit:title:loadedSuccessfully:httpGet:redirectSourceURL:redirectSourceDateOfVisit:redirectDestinationURL:redirectDestinationDateOfVisit:visitCount:)-hvhk)

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Inherits From

[`BEBrowserData`](/documentation/BrowserKit/BEBrowserData)

---

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)