<!--
{
  "availability" : [
    "macOS: 10.12.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafariServices",
  "identifier" : "/documentation/SafariServices/SFSafariTab",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Safari Services"
    ],
    "preciseIdentifier" : "c:objc(cs)SFSafariTab"
  },
  "title" : "SFSafariTab"
}
-->

# SFSafariTab

A proxy for a tab in a Safari window.

```
class SFSafariTab
```

## Topics

### Accessing Pages

[`-  getActivePageWithCompletionHandler:`](/documentation/SafariServices/SFSafariTab/getActivePage(completionHandler:))

Calls the completion handler passing the active page in the tab.

[`-  getPagesWithCompletionHandler:`](/documentation/SafariServices/SFSafariTab/getPagesWithCompletionHandler(_:))

Calls the completion handler with all of the tab’s active and preloading pages.

### Activating Tabs

[`-  activateWithCompletionHandler:`](/documentation/SafariServices/SFSafariTab/activate(completionHandler:))

Activates the tab.

### Instance Methods

[`-  close`](/documentation/SafariServices/SFSafariTab/close())

[`-  getContainingWindowWithCompletionHandler:`](/documentation/SafariServices/SFSafariTab/getContainingWindow(completionHandler:))

[`-  navigateToURL:`](/documentation/SafariServices/SFSafariTab/navigate(to:))

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)