---
title: SFSafariExtensionState
framework: safariservices
role: symbol
role_heading: Class
path: safariservices/sfsafariextensionstate
---

# SFSafariExtensionState

The state of a Safari extension.

## Declaration

```swift
class SFSafariExtensionState
```

## Overview

Overview In macOS, this reflects the state of either a Safari app extension or Safari web extension. In iOS and visionOS, this reflects the state of a Safari web extension.

## Topics

### Instance Properties

- [isEnabled](safariservices/sfsafariextensionstate/isenabled.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Injected style sheets and scripts

- [Using injected style sheets and scripts](safariservices/using-injected-style-sheets-and-scripts.md)
- [Injecting a script into a webpage](safariservices/injecting-a-script-into-a-webpage.md)
- [Injecting CSS style sheets into a webpage](safariservices/injecting-css-style-sheets-into-a-webpage.md)
- [Passing messages between Safari app extensions and injected scripts](safariservices/passing-messages-between-safari-app-extensions-and-injected-scripts.md)
- [SFSafariExtensionHandler](safariservices/sfsafariextensionhandler.md)
- [SFSafariExtensionManager](safariservices/sfsafariextensionmanager.md)
- [SFSafariPageProperties](safariservices/sfsafaripageproperties.md)
- [SFSafariExtensionHandling](safariservices/sfsafariextensionhandling.md)
- [SFExtensionProfileKey](safariservices/sfextensionprofilekey.md)
