One Logo Pool Ball
ManagedSettings · IOS API REFERENCE

SafariSettings

struct · iOS 15.0+ · SDK 27.1

struct SafariSettings

Constraints on Safari's AutoFill and cookie behaviors. Use `SafariSettings` to manage Safari settings for cookies and AutoFill. You can prevent AutoFill and specify the websites from which Safari accepts cookies.

Members (6)

get · iOS 15.0+

cookiePolicy

TypeScript
static get cookiePolicy(): SettingMetadata<SafariSettings_CookiePolicy>
Swift declaration
static let cookiePolicy: SettingMetadata<SafariSettings.CookiePolicy>

The metadata for the setting that configures Safari's policy for cookies. Use `cookiePolicy` to access the metadata for ``SafariSettings/cookiePolicy-swift.property``. The default value is ``SafariSettings/CookiePolicy-swift.enum/always``.

get · iOS 15.0+

cookiePolicy

TypeScript
get cookiePolicy41587(): (SafariSettings_CookiePolicy) | null
Swift declaration
var cookiePolicy: SafariSettings.CookiePolicy? { get set }

Defines the conditions under which Safari accepts cookies. The value is `nil` if this setting has not been applied.

set · iOS 15.0+

cookiePolicy

TypeScript
set cookiePolicy41587(value: (SafariSettings_CookiePolicy) | null)
Swift declaration
var cookiePolicy: SafariSettings.CookiePolicy? { get set }

Defines the conditions under which Safari accepts cookies. The value is `nil` if this setting has not been applied.

get · iOS 15.0+

denyAutoFill

TypeScript
static get denyAutoFill(): SettingMetadata<boolean>
Swift declaration
static let denyAutoFill: SettingMetadata<Bool>

The metadata associated with the setting that deactivates Safari's AutoFill feature. Use `denyAutoFill` to access the metadata for ``SafariSettings/denyAutoFill-swift.property``. The default value is `false`.

get · iOS 15.0+

denyAutoFill

TypeScript
get denyAutoFill87254(): (boolean) | null
Swift declaration
var denyAutoFill: Bool? { get set }

A Boolean value that indicates whether Safari's AutoFill feature is active. Set this value to `true` to prevent Safari from automatically entering passwords, contact information, and credit cards in form fields. This value also denies Safari permission to use the keychain to AutoFill stored credentials. If your app doesn't configure this setting, the value is `nil`.

set · iOS 15.0+

denyAutoFill

TypeScript
set denyAutoFill87254(value: (boolean) | null)
Swift declaration
var denyAutoFill: Bool? { get set }

A Boolean value that indicates whether Safari's AutoFill feature is active. Set this value to `true` to prevent Safari from automatically entering passwords, contact information, and credit cards in form fields. This value also denies Safari permission to use the keychain to AutoFill stored credentials. If your app doesn't configure this setting, the value is `nil`.

Skipped declarations

No declarations were skipped in this snapshot.

All ManagedSettings types →