PostHog iOS SDK

SDK Version:

PostHogSDK

The PostHogSDK class

Initialization methods

setuppublic

setup method

Parameters

NameType
configPostHogConfig

The config parameter

Examples

Swift
PostHogSDK.shared.setup(config: "config_value")

Returns

Type
Void

withpublic

with method

Parameters

NameType
configPostHogConfig

The config parameter

param1PostHogSDK

The param1 parameter

Examples

Swift
PostHogSDK.shared.with(config: "config_value", param1: "param1_value")

Returns

Type
PostHogSDK

Capture methods

capturepublic

Captures a custom event without additional properties.

Notes:

Use this method to track user behavior or other occurrences in your application.

Parameters

NameType
eventAny

The name of the event to capture. We recommend using an format (e.g., , ).

Examples

Swift
PostHogSDK.shared.capture(event: "event_value")

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

distinctIdString

The distinctId parameter

properties?[String : Any]? = nil,

The properties parameter

Examples

Swift
PostHogSDK.shared.capture(event: "event_value", distinctId: "distinctId_value", properties: ["key": "value"])

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

distinctIdString

The distinctId parameter

properties?[String : Any]? = nil,

The properties parameter

Examples

Swift
PostHogSDK.shared.capture(event: "event_value", distinctId: "distinctId_value", properties: ["key": "value"])

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

properties?[String : Any]? = nil

The properties parameter

Examples

Swift
PostHogSDK.shared.capture(event: "event_value", properties: ["key": "value"])

Returns

Type
Void

capturepublic

Captures a custom event with optional event properties and user properties.

Notes:

Use this method to track user behavior or other occurrences, including additional context about the event and the user.

Parameters

NameType
eventAny

The name of the event to capture. We recommend using an format (e.g., , ).

propertiesString

Optional. A dictionary with key-value pairs to include as event properties.

userPropertiesString

Optional. A dictionary with key-value pairs to set or update on the person profile associated with the event. These are set using .

Examples

Swift
PostHogSDK.shared.capture(event: "event_value", properties: "properties_value", userProperties: "userProperties_value")

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

properties?[String : Any]? = nil,

The properties parameter

Examples

Swift
PostHogSDK.shared.capture(event: "event_value", properties: ["key": "value"])

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

properties?[String : Any]? = nil,

The properties parameter

Examples

Swift
PostHogSDK.shared.capture(event: "event_value", properties: ["key": "value"])

Returns

Type
Void

flushpublic

Manually flushes the event queue, sending all stored events to PostHog immediately.

Notes:

The SDK normally flushes events automatically based on and configuration. Call this method to force an immediate dispatch of events.

Examples

Swift
PostHogSDK.shared.flush()

Returns

Type
Void

registerpublic

register method

Parameters

NameType
properties[String : Any]

The properties parameter

Examples

Swift
PostHogSDK.shared.register(properties: ["key": "value"])

Returns

Type
Void

screenpublic

Captures a screen view event with a given title.

Notes:

This is a convenience method for without additional properties.

Parameters

NameType
screenTitleAny

The title or name of the screen being viewed.

Examples

Swift
PostHogSDK.shared.screen(screenTitle: "screenTitle_value")

Returns

Type
Void

screenpublic

Captures a screen view event with an optional title and properties.

Notes:

Use this method to manually track screen changes in your application, especially for SwiftUI apps where automatic screen view tracking might not provide meaningful names.

Parameters

NameType
screenTitleAny

The title or name of the screen being viewed.

propertiesString

Optional. A dictionary with key-value pairs to include as event properties.

Examples

Swift
PostHogSDK.shared.screen(screenTitle: "screenTitle_value", properties: "properties_value")

Returns

Type
Void

unregisterpublic

unregister method

Parameters

NameType
keyString

The key parameter

Examples

Swift
PostHogSDK.shared.unregister(key: "key_value")

Returns

Type
Void

Configuration methods

closepublic

close method

Examples

Swift
PostHogSDK.shared.close()

Returns

Type
Void

debugpublic

Toggles verbose logging for the PostHog SDK.

Notes:

Enable debug mode to see detailed logs about event capture, feature flag evaluation, surveys, and other internal workings of the SDK. This is useful for troubleshooting during development.

Parameters

NameType
enabledAny

to enable debug mode, to disable. Defaults to .

Examples

Swift
PostHogSDK.shared.debug(enabled: "enabled_value")

Returns

Type
Void

grouppublic

Associates the current session’s events with a specific group.

Notes:

Use this method to track user activity within a particular group (e.g., a company or team).

Parameters

NameType
typeString

The group type (e.g., “company”, “team”).

keyString

A unique identifier for the group in your database.

Examples

Swift
PostHogSDK.shared.group(type: "type_value", key: "key_value")

Returns

Type
Void

grouppublic

Associates the current session’s events with a group and updates that group’s properties.

Notes:

This method allows you to track user activity within a group while simultaneously setting or updating properties associated with that group.

Parameters

NameType
typeString

The group type (e.g., “company”, “team”).

keyString

A unique identifier for the group in your database.

groupPropertiesString

Optional. A dictionary with key-value pairs to set or update on the group profile.

Examples

Swift
PostHogSDK.shared.group(type: "type_value", key: "key_value", groupProperties: "groupProperties_value")

Returns

Type
Void

didStartNotificationpublic

didStartNotification method

Examples

Swift
PostHogSDK.shared.didStartNotification()

Returns

Type
Void

sharedpublic

shared method

Examples

Swift
PostHogSDK.shared.shared()

Returns

Type
Void

Feature flags methods

getFeatureFlagpublic

Retrieves the value of a feature flag.

Notes:

The value of the feature flag (e.g., , ), or if the flag is not found.

Parameters

NameType
keyAny

The key of the feature flag.

Examples

Swift
PostHogSDK.shared.getFeatureFlag(key: "key_value")

Returns

Type
Any?

getFeatureFlagPayloadpublic

Retrieves the payload associated with a feature flag.

Notes:

The payload of the feature flag, or if no payload is associated or the flag is not found.

Parameters

NameType
keyAny

The key of the feature flag.

Examples

Swift
PostHogSDK.shared.getFeatureFlagPayload(key: "key_value")

Returns

Type
Any?

isFeatureEnabledpublic

Checks if a boolean feature flag is enabled for the current user.

Notes:

if the feature flag is enabled, otherwise.

Parameters

NameType
keyAny

The key of the feature flag.

Examples

Swift
PostHogSDK.shared.isFeatureEnabled(key: "key_value")

Returns

Type
Bool

reloadFeatureFlagspublic

Reloads all feature flags for the current user.

Notes:

Feature flag values are cached. Call this method to refetch the latest flag values from the server if something has changed with your user (e.g., properties updated).

Examples

Swift
PostHogSDK.shared.reloadFeatureFlags()

Returns

Type
Void

reloadFeatureFlagspublic

Reloads all feature flags for the current user and executes a completion callback.

Notes:

Use this method to refetch the latest flag values and perform actions immediately after the flags have been successfully reloaded.

Parameters

NameType
callbackAny

A closure to be executed after feature flags are reloaded.

Examples

Swift
PostHogSDK.shared.reloadFeatureFlags(callback: "callback_value")

Returns

Type
Void

resetGroupPropertiesForFlagspublic

Clears all group properties for feature flag evaluation.

Notes:

Clears all group properties for feature flag evaluation.

Examples

Swift
PostHogSDK.shared.resetGroupPropertiesForFlags()

Returns

Type
Void

resetGroupPropertiesForFlagspublic

Clears group properties for feature flag evaluation for a specific group type.

Notes:

Clears group properties for feature flag evaluation for a specific group type.

Parameters

NameType
groupTypeAny

The group type to clear properties for

Examples

Swift
PostHogSDK.shared.resetGroupPropertiesForFlags(groupType: "groupType_value")

Returns

Type
Void

resetPersonPropertiesForFlagspublic

Resets all person properties that were set for feature flag evaluation.

Notes:

After calling this method, feature flag evaluation will only use server-side person properties and will not include any locally overridden properties.

Examples

Swift
PostHogSDK.shared.resetPersonPropertiesForFlags()

Returns

Type
Void

setGroupPropertiesForFlagspublic

Sets properties for a specific group type to include when evaluating feature flags. These properties supplement the standard group information sent to PostHog for flag evaluation, providing additional context that can be used in flag targeting conditions.

Notes:

Sets properties for a specific group type to include when evaluating feature flags. These properties supplement the standard group information sent to PostHog for flag evaluation, providing additional context that can be used in flag targeting conditions.

Parameters

NameType
groupTypeAny

The group type identifier (e.g., “organization”, “team”)

propertiesString

Dictionary of properties to set for this group type

Examples

Swift
PostHogSDK.shared.setGroupPropertiesForFlags(groupType: "groupType_value", properties: "properties_value")

Returns

Type
Void

setGroupPropertiesForFlagspublic

Sets properties for a specific group type to include when evaluating feature flags. These properties supplement the standard group information sent to PostHog for flag evaluation, providing additional context that can be used in flag targeting conditions.

Notes:

Sets properties for a specific group type to include when evaluating feature flags. These properties supplement the standard group information sent to PostHog for flag evaluation, providing additional context that can be used in flag targeting conditions.

Parameters

NameType
groupTypeAny

The group type identifier (e.g., “organization”, “team”)

propertiesString

Dictionary of properties to set for this group type

reloadFeatureFlagsBool

Whether to automatically reload feature flags after setting properties

Examples

Swift
PostHogSDK.shared.setGroupPropertiesForFlags(groupType: "groupType_value", properties: "properties_value", reloadFeatureFlags: true)

Returns

Type
Void

setPersonPropertiesForFlagspublic

Sets person properties that will be included in feature flag evaluation requests.

Notes:

This method allows you to override server-side person properties for immediate feature flag evaluation, solving the race condition where person properties from calls may not have been processed by the server yet. Properties are merged additively with existing properties. Feature flags are automatically reloaded after setting properties.

Parameters

NameType
propertiesAny

Dictionary of person properties to include in flag evaluation

Examples

Swift
PostHogSDK.shared.setPersonPropertiesForFlags(properties: "properties_value")

Returns

Type
Void

setPersonPropertiesForFlagspublic

Sets person properties that will be included in feature flag evaluation requests.

Notes:

This method allows you to override server-side person properties for immediate feature flag evaluation, solving the race condition where person properties from calls may not have been processed by the server yet. Properties are merged additively with existing properties.

Parameters

NameType
propertiesAny

Dictionary of person properties to include in flag evaluation

reloadFeatureFlagsBool

Whether to automatically reload feature flags after setting properties

Examples

Swift
PostHogSDK.shared.setPersonPropertiesForFlags(properties: "properties_value", reloadFeatureFlags: true)

Returns

Type
Void

didReceiveFeatureFlagspublic

didReceiveFeatureFlags method

Examples

Swift
PostHogSDK.shared.didReceiveFeatureFlags()

Returns

Type
Void

Identification methods

aliaspublic

Assigns an additional distinct ID to the current user.

Notes:

Use this method when you want to associate multiple distinct IDs with a single user, for example, if a distinct ID used on the frontend is not available in your backend.

Parameters

NameType
aliasAny

The new distinct ID to associate with the current user.

Examples

Swift
PostHogSDK.shared.alias(alias: "alias_value")

Returns

Type
Void

getAnonymousIdpublic

getAnonymousId method

Examples

Swift
PostHogSDK.shared.getAnonymousId()

Returns

Type
String

getDistinctIdpublic

Returns the current user’s distinct ID.

Notes:

The current user’s distinct ID.

Examples

Swift
PostHogSDK.shared.getDistinctId()

Returns

Type
String

identifypublic

Associates events with a specific user by their distinct ID.

Notes:

This is a convenience method for without additional properties. You should call this method as soon as you are able to identify your user, typically after they log in.

Parameters

NameType
distinctIdAny

A unique identifier for your user in your database.

Examples

Swift
PostHogSDK.shared.identify(distinctId: "distinctId_value")

Returns

Type
Void

identifypublic

identify method

Parameters

NameType
distinctIdString

The distinctId parameter

userProperties?[String : Any]? = nil

The userProperties parameter

Examples

Swift
PostHogSDK.shared.identify(distinctId: "distinctId_value", userProperties: ["key": "value"])

Returns

Type
Void

identifypublic

Associates events with a specific user by their distinct ID and sets/updates user properties.

Notes:

Use this method to gain insights into how your users interact with your product across sessions, devices, and platforms. All previously tracked anonymous events will be linked to this user.

Parameters

NameType
distinctIdAny

A unique identifier for your user in your database.

userPropertiesString

Optional. A dictionary with key-value pairs to set on the person profile. These are set using .

userPropertiesSetOnceString

Optional. A dictionary with key-value pairs to set on the person profile only if they don’t already exist. These are set using .

Examples

Swift
PostHogSDK.shared.identify(distinctId: "distinctId_value", userProperties: "userProperties_value", userPropertiesSetOnce: "userPropertiesSetOnce_value")

Returns

Type
Void

Privacy methods

isOptOutpublic

Checks if the user is currently opted out of data capture.

Notes:

if the user is opted out, otherwise.

Examples

Swift
PostHogSDK.shared.isOptOut()

Returns

Type
Bool

optInpublic

Opts the user back into data capture.

Notes:

This method allows a previously opted-out user to resume data capture.

Examples

Swift
PostHogSDK.shared.optIn()

Returns

Type
Void

optOutpublic

Opts the user out of all data capture.

Notes:

When a user is opted out, no events, session replays, or other data will be captured.

Examples

Swift
PostHogSDK.shared.optOut()

Returns

Type
Void

resetpublic

Resets the user’s distinct ID, anonymous ID, and clears all super properties.

Notes:

This method is typically called after a user logs out to disassociate their activity from previous sessions and prepare for a new, potentially anonymous, user journey.

Examples

Swift
PostHogSDK.shared.reset()

Returns

Type
Void

Session replay methods

endSessionpublic

endSession method

Examples

Swift
PostHogSDK.shared.endSession()

Returns

Type
Void

getSessionIdpublic

getSessionId method

Examples

Swift
PostHogSDK.shared.getSessionId()

Returns

Type
String?

startSessionpublic

startSession method

Examples

Swift
PostHogSDK.shared.startSession()

Returns

Type
Void

PostHogDisplaySurvey

A model representing a PostHog survey to be displayed to users

Configuration methods

appearancepublic

Optional appearance configuration for customizing the survey’s look and feel

Notes:

Optional appearance configuration for customizing the survey’s look and feel

Examples

Swift
postHogDisplaySurvey.appearance()

Returns

Type
Void

endDatepublic

Optional date indicating when the survey should stop being shown

Notes:

Optional date indicating when the survey should stop being shown

Examples

Swift
postHogDisplaySurvey.endDate()

Returns

Type
Void

idpublic

Unique identifier for the survey

Notes:

Unique identifier for the survey

Examples

Swift
postHogDisplaySurvey.id()

Returns

Type
Void

namepublic

Name of the survey

Notes:

Name of the survey

Examples

Swift
postHogDisplaySurvey.name()

Returns

Type
Void

questionspublic

Array of questions to be presented in the survey

Notes:

Array of questions to be presented in the survey

Examples

Swift
postHogDisplaySurvey.questions()

Returns

Type
Void

startDatepublic

Optional date indicating when the survey should start being shown

Notes:

Optional date indicating when the survey should start being shown

Examples

Swift
postHogDisplaySurvey.startDate()

Returns

Type
Void

PostHogDisplayLinkQuestion

Represents a question with a clickable link

Configuration methods

The URL that will be opened when the link is clicked

Notes:

The URL that will be opened when the link is clicked

Examples

Swift
postHogDisplayLinkQuestion.link()

Returns

Type
Void

PostHogDisplayChoiceQuestion

Represents a multiple or single choice question where users can select one or more options

Configuration methods

choicespublic

The list of options for the user to choose from

Notes:

The list of options for the user to choose from

Examples

Swift
postHogDisplayChoiceQuestion.choices()

Returns

Type
Void

hasOpenChoicepublic

Whether the question includes an “other” option for users to input free-form text

Notes:

Whether the question includes an “other” option for users to input free-form text

Examples

Swift
postHogDisplayChoiceQuestion.hasOpenChoice()

Returns

Type
Void

isMultipleChoicepublic

Whether the user can select multiple options

Notes:

Whether the user can select multiple options

Examples

Swift
postHogDisplayChoiceQuestion.isMultipleChoice()

Returns

Type
Void

shuffleOptionspublic

Whether the options should be shuffled to randomize the order

Notes:

Whether the options should be shuffled to randomize the order

Examples

Swift
postHogDisplayChoiceQuestion.shuffleOptions()

Returns

Type
Void

PostHogNextSurveyQuestion

A model representing the next state of the survey progression.

Configuration methods

isSurveyCompletedpublic

Whether all questions have been answered and the survey is complete Depending on the survey appearance configuration, you may want to show the “Thank you” message or dismiss the survey at this point

Notes:

Whether all questions have been answered and the survey is complete Depending on the survey appearance configuration, you may want to show the “Thank you” message or dismiss the survey at this point

Examples

Swift
postHogNextSurveyQuestion.isSurveyCompleted()

Returns

Type
Void

questionIndexpublic

The index of the next question to be displayed (0-based)

Notes:

The index of the next question to be displayed (0-based)

Examples

Swift
postHogNextSurveyQuestion.questionIndex()

Returns

Type
Void

PostHogDisplayOpenQuestion

Represents an open-ended question where users can input free-form text

PostHogEvent

The PostHogEvent class

Configuration methods

distinctIdpublic

distinctId method

Examples

Swift
postHogEvent.distinctId()

Returns

Type
Void

eventpublic

event method

Examples

Swift
postHogEvent.event()

Returns

Type
Void

propertiespublic

properties method

Examples

Swift
postHogEvent.properties()

Returns

Type
Void

timestamppublic

timestamp method

Examples

Swift
postHogEvent.timestamp()

Returns

Type
Void

uuidpublic

uuid method

Examples

Swift
postHogEvent.uuid()

Returns

Type
Void

PostHogSurveyResponse

A model representing a user’s response to a survey question

Configuration methods

linkClickedpublic

Whether a link was clicked (for link questions)

Notes:

Whether a link was clicked (for link questions)

Examples

Swift
postHogSurveyResponse.linkClicked()

Returns

Type
Void

ratingValuepublic

The numeric rating value (for rating questions)

Notes:

The numeric rating value (for rating questions)

Examples

Swift
postHogSurveyResponse.ratingValue()

Returns

Type
Void

selectedOptionspublic

The selected options (for multiple or single choice questions)

Notes:

The selected options (for multiple or single choice questions)

Examples

Swift
postHogSurveyResponse.selectedOptions()

Returns

Type
Void

textValuepublic

The text response (for open questions)

Notes:

The text response (for open questions)

Examples

Swift
postHogSurveyResponse.textValue()

Returns

Type
Void

typepublic

The type of response (link, rating, text, or multiple choice)

Notes:

The type of response (link, rating, text, or multiple choice)

Examples

Swift
postHogSurveyResponse.type()

Returns

Type
Void

Creates a response for a link question

Notes:

Creates a response for a link question

Parameters

NameType
clickedAny

Whether the link was clicked

Examples

Swift
postHogSurveyResponse.link(clicked: "clicked_value")

Returns

Type
PostHogSurveyResponse

multipleChoicepublic

Creates a response for a multiple-choice question

Notes:

Creates a response for a multiple-choice question

Parameters

NameType
multipleChoiceAny

The selected options

Examples

Swift
postHogSurveyResponse.multipleChoice(multipleChoice: "multipleChoice_value")

Returns

Type
PostHogSurveyResponse

openEndedpublic

Creates a response for an open-ended question

Notes:

Creates a response for an open-ended question

Parameters

NameType
openEndedAny

The text response

Examples

Swift
postHogSurveyResponse.openEnded(openEnded: "openEnded_value")

Returns

Type
PostHogSurveyResponse

ratingpublic

Creates a response for a rating question

Notes:

Creates a response for a rating question

Parameters

NameType
ratingAny

The selected rating value

Examples

Swift
postHogSurveyResponse.rating(rating: "rating_value")

Returns

Type
PostHogSurveyResponse

singleChoicepublic

Creates a response for a single-choice question

Notes:

Creates a response for a single-choice question

Parameters

NameType
singleChoiceAny

The selected option

Examples

Swift
postHogSurveyResponse.singleChoice(singleChoice: "singleChoice_value")

Returns

Type
PostHogSurveyResponse

PostHogDisplaySurveyQuestion

Base class for all survey question types

Configuration methods

buttonTextpublic

Optional custom text for the question’s action button

Notes:

Optional custom text for the question’s action button

Examples

Swift
postHogDisplaySurveyQuestion.buttonText()

Returns

Type
Void

idpublic

The question ID, empty if none

Notes:

The question ID, empty if none

Examples

Swift
postHogDisplaySurveyQuestion.id()

Returns

Type
Void

isOptionalpublic

Whether the question can be skipped

Notes:

Whether the question can be skipped

Examples

Swift
postHogDisplaySurveyQuestion.isOptional()

Returns

Type
Void

questionpublic

The main question text to display

Notes:

The main question text to display

Examples

Swift
postHogDisplaySurveyQuestion.question()

Returns

Type
Void

questionDescriptionpublic

Optional additional description or context for the question

Notes:

Optional additional description or context for the question

Examples

Swift
postHogDisplaySurveyQuestion.questionDescription()

Returns

Type
Void

questionDescriptionContentTypepublic

Content type for the question description (HTML or plain text)

Notes:

Content type for the question description (HTML or plain text)

Examples

Swift
postHogDisplaySurveyQuestion.questionDescriptionContentType()

Returns

Type
Void

PostHogSessionManager

The PostHogSessionManager class

Configuration methods

sharedpublic

shared method

Examples

Swift
postHogSessionManager.shared()

Returns

Type
Void

Session replay methods

setSessionIdpublic

setSessionId method

Parameters

NameType
sessionIdString

The sessionId parameter

Examples

Swift
postHogSessionManager.setSessionId(sessionId: "sessionId_value")

Returns

Type
Void

PostHogSurveysConfig

The PostHogSurveysConfig class

Configuration methods

surveysDelegatepublic

Delegate responsible for managing survey presentation in your app. Handles survey rendering, response collection, and lifecycle events. You can provide your own delegate for a custom survey presentation.

Notes:

Defaults to which provides a standard survey UI.

Examples

Swift
postHogSurveysConfig.surveysDelegate()

Returns

Type
Void

PostHogDisplayRatingQuestion

Represents a rating question where users can select a rating from a scale

Configuration methods

lowerBoundLabelpublic

The label for the lower bound of the rating scale

Notes:

The label for the lower bound of the rating scale

Examples

Swift
postHogDisplayRatingQuestion.lowerBoundLabel()

Returns

Type
Void

ratingTypepublic

The type of rating scale (numbers, emoji)

Notes:

The type of rating scale (numbers, emoji)

Examples

Swift
postHogDisplayRatingQuestion.ratingType()

Returns

Type
Void

scaleLowerBoundpublic

The lower bound of the rating scale

Notes:

The lower bound of the rating scale

Examples

Swift
postHogDisplayRatingQuestion.scaleLowerBound()

Returns

Type
Void

scaleUpperBoundpublic

The upper bound of the rating scale

Notes:

The upper bound of the rating scale

Examples

Swift
postHogDisplayRatingQuestion.scaleUpperBound()

Returns

Type
Void

upperBoundLabelpublic

The label for the upper bound of the rating scale

Notes:

The label for the upper bound of the rating scale

Examples

Swift
postHogDisplayRatingQuestion.upperBoundLabel()

Returns

Type
Void

PostHogDisplaySurveyAppearance

Model that describes the appearance customization of a PostHog survey

Configuration methods

backgroundColorpublic

Optional background color as web color (e.g. “#FFFFFF” or “white”)

Notes:

Optional background color as web color (e.g. “#FFFFFF” or “white”)

Examples

Swift
postHogDisplaySurveyAppearance.backgroundColor()

Returns

Type
Void

borderColorpublic

Optional border color as web color

Notes:

Optional border color as web color

Examples

Swift
postHogDisplaySurveyAppearance.borderColor()

Returns

Type
Void

descriptionTextColorpublic

Optional color for description text as web color

Notes:

Optional color for description text as web color

Examples

Swift
postHogDisplaySurveyAppearance.descriptionTextColor()

Returns

Type
Void

displayThankYouMessagepublic

Whether to show a thank you message after survey completion

Notes:

Whether to show a thank you message after survey completion

Examples

Swift
postHogDisplaySurveyAppearance.displayThankYouMessage()

Returns

Type
Void

fontFamilypublic

Optional font family to use throughout the survey

Notes:

Optional font family to use throughout the survey

Examples

Swift
postHogDisplaySurveyAppearance.fontFamily()

Returns

Type
Void

placeholderpublic

Optional placeholder text for input fields

Notes:

Optional placeholder text for input fields

Examples

Swift
postHogDisplaySurveyAppearance.placeholder()

Returns

Type
Void

ratingButtonActiveColorpublic

Optional color for active/selected rating buttons as web color

Notes:

Optional color for active/selected rating buttons as web color

Examples

Swift
postHogDisplaySurveyAppearance.ratingButtonActiveColor()

Returns

Type
Void

ratingButtonColorpublic

Optional color for rating buttons as web color

Notes:

Optional color for rating buttons as web color

Examples

Swift
postHogDisplaySurveyAppearance.ratingButtonColor()

Returns

Type
Void

submitButtonColorpublic

Optional background color for the submit button as web color

Notes:

Optional background color for the submit button as web color

Examples

Swift
postHogDisplaySurveyAppearance.submitButtonColor()

Returns

Type
Void

submitButtonTextpublic

Optional custom text for the submit button

Notes:

Optional custom text for the submit button

Examples

Swift
postHogDisplaySurveyAppearance.submitButtonText()

Returns

Type
Void

submitButtonTextColorpublic

Optional text color for the submit button as web color

Notes:

Optional text color for the submit button as web color

Examples

Swift
postHogDisplaySurveyAppearance.submitButtonTextColor()

Returns

Type
Void

thankYouMessageCloseButtonTextpublic

Optional text for the close button in the thank you message

Notes:

Optional text for the close button in the thank you message

Examples

Swift
postHogDisplaySurveyAppearance.thankYouMessageCloseButtonText()

Returns

Type
Void

thankYouMessageDescriptionpublic

Optional description text for the thank you message

Notes:

Optional description text for the thank you message

Examples

Swift
postHogDisplaySurveyAppearance.thankYouMessageDescription()

Returns

Type
Void

thankYouMessageDescriptionContentTypepublic

Optional content type for the thank you message description

Notes:

Optional content type for the thank you message description

Examples

Swift
postHogDisplaySurveyAppearance.thankYouMessageDescriptionContentType()

Returns

Type
Void

thankYouMessageHeaderpublic

Optional header text for the thank you message

Notes:

Optional header text for the thank you message

Examples

Swift
postHogDisplaySurveyAppearance.thankYouMessageHeader()

Returns

Type
Void

Community questions

Questions about this page? or post a community question.