PostHog iOS SDK

SDK Version:

PostHogSDK

The PostHogSDK class

Initialization methods

setuppublic

setup method

Parameters

NameType
param0PostHogConfig

The param0 parameter

Examples

Swift
PostHogSDK.shared.setup(param0: "param0_value")

Returns

Type
Void

withpublic

with method

Parameters

NameType
param0PostHogConfig

The param0 parameter

param1PostHogSDK

The param1 parameter

Examples

Swift
PostHogSDK.shared.with(param0: "param0_value", param1: "param1_value")

Returns

Type
Void

Capture methods

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

Examples

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

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

distinctIdString

The distinctId parameter

propertiesString

The properties parameter

userPropertiesString

The userProperties parameter

userPropertiesSetOnceString

The userPropertiesSetOnce parameter

groupsString

The groups parameter

propertiesString

The properties parameter

Examples

Swift
PostHogSDK.shared.capture(event: "event_value", distinctId: "distinctId_value", properties: "properties_value", userProperties: "userProperties_value", userPropertiesSetOnce: "userPropertiesSetOnce_value", groups: "groups_value", properties: "properties_value")

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

distinctIdString

The distinctId parameter

propertiesString

The properties parameter

userPropertiesString

The userProperties parameter

userPropertiesSetOnceString

The userPropertiesSetOnce parameter

groupsString

The groups parameter

propertiesString

The properties parameter

timestampDate

The timestamp parameter

Examples

Swift
PostHogSDK.shared.capture(event: "event_value", distinctId: "distinctId_value", properties: "properties_value", userProperties: "userProperties_value", userPropertiesSetOnce: "userPropertiesSetOnce_value", groups: "groups_value", properties: "properties_value", timestamp: "timestamp_value")

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

propertiesString

The properties parameter

Examples

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

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

propertiesString

The properties parameter

userPropertiesString

The userProperties parameter

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

propertiesString

The properties parameter

userPropertiesString

The userProperties parameter

userPropertiesSetOnceString

The userPropertiesSetOnce parameter

Examples

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

Returns

Type
Void

capturepublic

capture method

Parameters

NameType
eventString

The event parameter

propertiesString

The properties parameter

userPropertiesString

The userProperties parameter

userPropertiesSetOnceString

The userPropertiesSetOnce parameter

groupsString

The groups parameter

propertiesString

The properties parameter

Examples

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

Returns

Type
Void

flushpublic

flush method

Examples

Swift
PostHogSDK.shared.flush()

Returns

Type
Void

registerpublic

register method

Examples

Swift
PostHogSDK.shared.register()

Returns

Type
Void

screenpublic

screen method

Parameters

NameType
nameString

The name parameter

Examples

Swift
PostHogSDK.shared.screen(name: "name_value")

Returns

Type
Void

screenpublic

screen method

Parameters

NameType
nameString

The name parameter

propertiesString

The properties parameter

Examples

Swift
PostHogSDK.shared.screen(name: "name_value", properties: "properties_value")

Returns

Type
Void

unregisterpublic

unregister method

Parameters

NameType
param0String

The param0 parameter

Examples

Swift
PostHogSDK.shared.unregister(param0: "param0_value")

Returns

Type
Void

Configuration methods

closepublic

close method

Examples

Swift
PostHogSDK.shared.close()

Returns

Type
Void

debugpublic

debug method

Parameters

NameType
param0Bool

The param0 parameter

Examples

Swift
PostHogSDK.shared.debug(param0: true)

Returns

Type
Void

grouppublic

group method

Parameters

NameType
typeString

The type parameter

keyString

The key parameter

Examples

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

Returns

Type
Void

grouppublic

group method

Parameters

NameType
typeString

The type parameter

keyString

The key parameter

groupPropertiesString

The groupProperties parameter

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

getFeatureFlag method

Parameters

NameType
param0String

The param0 parameter

Examples

Swift
PostHogSDK.shared.getFeatureFlag(param0: "param0_value")

Returns

Type
Void

getFeatureFlagPayloadpublic

getFeatureFlagPayload method

Parameters

NameType
param0String

The param0 parameter

Examples

Swift
PostHogSDK.shared.getFeatureFlagPayload(param0: "param0_value")

Returns

Type
Void

isFeatureEnabledpublic

isFeatureEnabled method

Parameters

NameType
param0String

The param0 parameter

param1Bool

The param1 parameter

Examples

Swift
PostHogSDK.shared.isFeatureEnabled(param0: "param0_value", param1: true)

Returns

Type
Void

reloadFeatureFlagspublic

reloadFeatureFlags method

Examples

Swift
PostHogSDK.shared.reloadFeatureFlags()

Returns

Type
Void

reloadFeatureFlagspublic

reloadFeatureFlags method

Examples

Swift
PostHogSDK.shared.reloadFeatureFlags()

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

alias method

Parameters

NameType
aliasString

The alias parameter

Examples

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

Returns

Type
Void

getAnonymousIdpublic

getAnonymousId method

Examples

Swift
PostHogSDK.shared.getAnonymousId()

Returns

Type
Void

getDistinctIdpublic

getDistinctId method

Examples

Swift
PostHogSDK.shared.getDistinctId()

Returns

Type
Void

identifypublic

identify method

Parameters

NameType
distinctIdString

The distinctId parameter

Examples

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

Returns

Type
Void

identifypublic

identify method

Parameters

NameType
distinctIdString

The distinctId parameter

userPropertiesString

The userProperties parameter

Examples

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

Returns

Type
Void

identifypublic

identify method

Parameters

NameType
distinctIdString

The distinctId parameter

userPropertiesString

The userProperties parameter

userPropertiesSetOnceString

The userPropertiesSetOnce parameter

Examples

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

Returns

Type
Void

Privacy methods

isOptOutpublic

isOptOut method

Examples

Swift
PostHogSDK.shared.isOptOut()

Returns

Type
Void

optInpublic

optIn method

Examples

Swift
PostHogSDK.shared.optIn()

Returns

Type
Void

optOutpublic

optOut method

Examples

Swift
PostHogSDK.shared.optOut()

Returns

Type
Void

resetpublic

reset method

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
Void

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
PostHogSDK.shared.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
PostHogSDK.shared.endDate()

Returns

Type
Void

idpublic

Unique identifier for the survey

Notes:

Unique identifier for the survey

Examples

Swift
PostHogSDK.shared.id()

Returns

Type
Void

namepublic

Name of the survey

Notes:

Name of the survey

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.hasOpenChoice()

Returns

Type
Void

isMultipleChoicepublic

Whether the user can select multiple options

Notes:

Whether the user can select multiple options

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.questionIndex()

Returns

Type
Void

PostHogStorageManager

The PostHogStorageManager class

Configuration methods

isIdentifiedpublic

isIdentified method

Examples

Swift
PostHogSDK.shared.isIdentified()

Returns

Type
Void

isPersonProcessingpublic

isPersonProcessing method

Examples

Swift
PostHogSDK.shared.isPersonProcessing()

Returns

Type
Void

setAnonymousIdpublic

setAnonymousId method

Parameters

NameType
param0String

The param0 parameter

Examples

Swift
PostHogSDK.shared.setAnonymousId(param0: "param0_value")

Returns

Type
Void

setDistinctIdpublic

setDistinctId method

Parameters

NameType
param0String

The param0 parameter

Examples

Swift
PostHogSDK.shared.setDistinctId(param0: "param0_value")

Returns

Type
Void

setIdentifiedpublic

setIdentified method

Parameters

NameType
param0Bool

The param0 parameter

Examples

Swift
PostHogSDK.shared.setIdentified(param0: true)

Returns

Type
Void

setPersonProcessingpublic

setPersonProcessing method

Parameters

NameType
param0Bool

The param0 parameter

Examples

Swift
PostHogSDK.shared.setPersonProcessing(param0: true)

Returns

Type
Void

Identification methods

getAnonymousIdpublic

getAnonymousId method

Examples

Swift
PostHogSDK.shared.getAnonymousId()

Returns

Type
Void

getDistinctIdpublic

getDistinctId method

Examples

Swift
PostHogSDK.shared.getDistinctId()

Returns

Type
Void

Privacy methods

resetpublic

reset method

Parameters

NameType
keepAnonymousIdBool

The keepAnonymousId parameter

param1Bool

The param1 parameter

Examples

Swift
PostHogSDK.shared.reset(keepAnonymousId: true, param1: true)

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
PostHogSDK.shared.distinctId()

Returns

Type
Void

eventpublic

event method

Examples

Swift
PostHogSDK.shared.event()

Returns

Type
Void

propertiespublic

properties method

Examples

Swift
PostHogSDK.shared.properties()

Returns

Type
Void

timestamppublic

timestamp method

Examples

Swift
PostHogSDK.shared.timestamp()

Returns

Type
Void

uuidpublic

uuid method

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.linkClicked()

Returns

Type
Void

ratingValuepublic

The numeric rating value (for rating questions)

Notes:

The numeric rating value (for rating questions)

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.selectedOptions()

Returns

Type
Void

textValuepublic

The text response (for open questions)

Notes:

The text response (for open questions)

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.link(clicked: "clicked_value")

Returns

Type
Void

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
PostHogSDK.shared.multipleChoice(multipleChoice: "multipleChoice_value")

Returns

Type
Void

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
PostHogSDK.shared.openEnded(openEnded: "openEnded_value")

Returns

Type
Void

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
PostHogSDK.shared.rating(rating: "rating_value")

Returns

Type
Void

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
PostHogSDK.shared.singleChoice(singleChoice: "singleChoice_value")

Returns

Type
Void

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
PostHogSDK.shared.buttonText()

Returns

Type
Void

idpublic

The question ID, empty if none

Notes:

The question ID, empty if none

Examples

Swift
PostHogSDK.shared.id()

Returns

Type
Void

isOptionalpublic

Whether the question can be skipped

Notes:

Whether the question can be skipped

Examples

Swift
PostHogSDK.shared.isOptional()

Returns

Type
Void

questionpublic

The main question text to display

Notes:

The main question text to display

Examples

Swift
PostHogSDK.shared.question()

Returns

Type
Void

questionDescriptionpublic

Optional additional description or context for the question

Notes:

Optional additional description or context for the question

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.questionDescriptionContentType()

Returns

Type
Void

PostHogSessionManager

The PostHogSessionManager class

Configuration methods

sharedpublic

shared method

Examples

Swift
PostHogSDK.shared.shared()

Returns

Type
Void

Session replay methods

setSessionIdpublic

setSessionId method

Parameters

NameType
param0String

The param0 parameter

Examples

Swift
PostHogSDK.shared.setSessionId(param0: "param0_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
PostHogSDK.shared.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
PostHogSDK.shared.lowerBoundLabel()

Returns

Type
Void

ratingTypepublic

The type of rating scale (numbers, emoji)

Notes:

The type of rating scale (numbers, emoji)

Examples

Swift
PostHogSDK.shared.ratingType()

Returns

Type
Void

scaleLowerBoundpublic

The lower bound of the rating scale

Notes:

The lower bound of the rating scale

Examples

Swift
PostHogSDK.shared.scaleLowerBound()

Returns

Type
Void

scaleUpperBoundpublic

The upper bound of the rating scale

Notes:

The upper bound of the rating scale

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.backgroundColor()

Returns

Type
Void

borderColorpublic

Optional border color as web color

Notes:

Optional border color as web color

Examples

Swift
PostHogSDK.shared.borderColor()

Returns

Type
Void

descriptionTextColorpublic

Optional color for description text as web color

Notes:

Optional color for description text as web color

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.displayThankYouMessage()

Returns

Type
Void

fontFamilypublic

Optional font family to use throughout the survey

Notes:

Optional font family to use throughout the survey

Examples

Swift
PostHogSDK.shared.fontFamily()

Returns

Type
Void

placeholderpublic

Optional placeholder text for input fields

Notes:

Optional placeholder text for input fields

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.ratingButtonActiveColor()

Returns

Type
Void

ratingButtonColorpublic

Optional color for rating buttons as web color

Notes:

Optional color for rating buttons as web color

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.submitButtonColor()

Returns

Type
Void

submitButtonTextpublic

Optional custom text for the submit button

Notes:

Optional custom text for the submit button

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.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
PostHogSDK.shared.thankYouMessageCloseButtonText()

Returns

Type
Void

thankYouMessageDescriptionpublic

Optional description text for the thank you message

Notes:

Optional description text for the thank you message

Examples

Swift
PostHogSDK.shared.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
PostHogSDK.shared.thankYouMessageDescriptionContentType()

Returns

Type
Void

thankYouMessageHeaderpublic

Optional header text for the thank you message

Notes:

Optional header text for the thank you message

Examples

Swift
PostHogSDK.shared.thankYouMessageHeader()

Returns

Type
Void

Community questions

Questions about this page? or post a community question.