appgram / docs
Dashboard

SWIFT SDK

Swift SDK

Native SwiftUI components and view models for iOS and macOS apps.

Install
.package(url: "https://github.com/AppGram/apple-sdk.git", from: "1.0.1")
Quickstart
import SwiftUI
import AppGramSDK

@main
@MainActor
struct FeedbackApp: App {
    init() {
        AppGramSDK.shared.configure(projectId: "YOUR_PROJECT_ID")
    }

    var body: some Scene {
        WindowGroup {
            NavigationStack {
                if let feedback = try? AppGramSDK.shared.feedbackView() {
                    feedback
                } else {
                    Text("Configure AppGram before opening feedback.")
                }
            }
        }
    }
}
199 symbols15 categoriesswift

Core

Represents the current user’s context within the AppGram SDK.

Properties

emailString?

An optional email address for the user.

isAnonymousBool

Whether this context represents an anonymous user.

nameString?

An optional display name for the user.

userIdString?

An optional unique identifier for the user.

anonymousUserContext

A pre-configured anonymous user context.

Methods

init(userId:email:name:isAnonymous:)
  • userId: String
  • email: String
  • name: String
  • isAnonymous: Bool

Configuration options for customizing the status page view appearance and behavior.

Properties

accentColorColor?

An optional accent color to apply to the status page.

autoRefreshIntervalTimeInterval

The interval in seconds for automatic status updates.

cardCornerRadiusCGFloat

The corner radius for status cards.

cardShadowRadiusCGFloat

The shadow radius for status cards.

enableAutoRefreshBool

Whether to automatically refresh the status page.

titleString

The title displayed at the top of the status page.

defaultStatusConfiguration

Methods

init(title:autoRefreshInterval:enableAutoRefresh:cardCornerRadius:cardShadowRadius:accentColor:)
  • title: Stringoptional
  • autoRefreshInterval: TimeIntervaloptional
  • enableAutoRefresh: Booloptional
  • cardCornerRadius: CGFloatoptional
  • cardShadowRadius: CGFloatoptional

Configuration options for customizing the releases view appearance and behavior.

Properties

accentColorColor?

An optional accent color to apply to the releases view.

cardCornerRadiusCGFloat

The corner radius for release cards.

imageCornerRadiusCGFloat

The corner radius for release images.

showVersionBadgeBool

Whether to show version badges on release cards.

titleString

The title displayed at the top of the releases view.

defaultReleasesConfiguration

Methods

init(title:showVersionBadge:cardCornerRadius:imageCornerRadius:accentColor:)
  • title: Stringoptional
  • showVersionBadge: Booloptional
  • cardCornerRadius: CGFloatoptional
  • imageCornerRadius: CGFloatoptional

Errors that can occur when using the AppGram SDK.

Values

AppGramError.decodingError(_:)AppGramError.forbiddenAppGramError.invalidResponseAppGramError.networkError(_:)AppGramError.notConfiguredAppGramError.notFoundAppGramError.serverError(_:)AppGramError.unauthorizedAppGramError.uploadFailedAppGramError.validationError(_:)

Properties

errorDescriptionString

Feedback

A request to create a new comment on a feedback item.

Properties

authorEmailString?

The email address of the comment author.

authorNameString?

The display name of the comment author.

contentString

The text content of the comment.

projectIdString

The project ID.

userIdString?

The optional user ID of the comment author.

wishIdString

The ID of the wish to comment on.

Methods

init(content:wishId:projectId:userId:authorName:authorEmail:)
  • content: String
  • wishId: String
  • projectId: String
  • userId: String
  • authorName: String
struct

Vote

Represents a vote on a feedback item (wish).

Properties

createdAtDate

The date when the vote was created.

fingerprintString?

The device fingerprint for anonymous voters.

idString

The unique identifier for the vote.

userIdString?

The user ID of the voter, if authenticated.

wishIdString

The ID of the wish this vote is for.

Methods

init(from:)
init(id:wishId:userId:fingerprint:createdAt:)
  • id: String
  • wishId: String
  • userId: String
  • fingerprint: String
  • createdAt: Date

Filters and sorting options for querying wishes.

Properties

categoryIdString?

Filter by category ID.

limitInt

The maximum number of wishes to return per page.

pageInt

The page number for pagination (1-based).

searchQueryString?

Search query to filter wishes by title or description.

sortByWishSortOption

The sorting option to apply.

statusWishStatus?

Filter by wish status.

Methods

init(status:categoryId:searchQuery:sortBy:page:limit:)
  • status: WishStatusoptional
  • categoryId: Stringoptional
  • searchQuery: Stringoptional
  • sortBy: WishSortOptionoptional
  • page: Intoptional
struct

Wish

Represents a feedback item (wish) submitted by users.

Properties

authorEmailString?

The email address of the wish author.

authorNameString?

The display name of the wish author.

categoryCategory?

The category this wish belongs to, if any.

categoryIdString?

The ID of the category this wish belongs to.

commentCountInt

The number of comments on this wish.

completedAtDate?

The date when the wish was completed, if applicable.

createdAtDate

The date when the wish was created.

descriptionString?

An optional detailed description of the wish.

hasVotedBool

Whether the current user has voted on this wish.

idString

The unique identifier for the wish.

projectIdString

The project ID this wish belongs to.

statusWishStatus

The current status of the wish.

titleString

The title of the wish.

updatedAtDate?

The date when the wish was last updated.

userIdString?

The user ID of the wish author.

voteCountInt

The number of votes this wish has received.

Methods

init(from:)
init(id:title:description:status:voteCount:hasVoted:commentCount:category:categoryId:authorName:authorEmail:userId:projectId:createdAt:updatedAt:completedAt:)
  • id: String
  • title: String
  • description: String
  • status: WishStatus
  • voteCount: Int
  • hasVoted: Booloptional
  • commentCount: Int
  • category: Category
  • categoryId: String
  • authorName: String
  • authorEmail: String
  • userId: String
  • projectId: String
  • createdAt: Date
  • updatedAt: Date
encode(to:)
hash(into:)
  • hasher: Hasher
struct

Comment

Represents a comment on a feedback item (wish).

Properties

authorEmailString?

The email address of the comment author.

authorNameString?

The display name of the comment author.

contentString

The text content of the comment.

createdAtDate

The date when the comment was created.

idString

The unique identifier for the comment.

isOfficialBool

Whether this comment is from official support staff.

updatedAtDate?

The date when the comment was last updated.

userIdString?

The optional user ID of the comment author.

wishIdString

The ID of the wish this comment belongs to.

Methods

init(from:)
init(id:content:wishId:userId:authorName:authorEmail:isOfficial:createdAt:updatedAt:)
  • id: String
  • content: String
  • wishId: String
  • userId: String
  • authorName: String
  • authorEmail: String
  • isOfficial: Bool
  • createdAt: Date

A request to add a vote to a wish.

Properties

fingerprintString?

The device fingerprint for anonymous voters.

projectIdString

The project ID.

userIdString?

The optional user ID of the voter.

wishIdString

The ID of the wish to vote for.

Methods

init(wishId:projectId:userId:fingerprint:)
  • wishId: String
  • projectId: String
  • userId: String
struct

Category

Represents a category for organizing feedback items.

Properties

colorString?

An optional color code (hex format) for the category.

createdAtDate?

The date when the category was created.

descriptionString?

An optional description of the category.

idString

The unique identifier for the category.

nameString

The display name of the category.

projectIdString?

The project ID this category belongs to.

slugString

The URL-friendly identifier for the category.

updatedAtDate?

The date when the category was last updated.

Methods

init(from:)
init(id:name:slug:description:color:projectId:createdAt:updatedAt:)
  • id: String
  • name: String
  • slug: String
  • description: Stringoptional
  • color: Stringoptional
  • projectId: Stringoptional
  • createdAt: Dateoptional

Options for sorting wishes.

Values

WishSortOption.leastVotesWishSortOption.mostVotesWishSortOption.newestWishSortOption.oldest

Properties

displayNameString

Represents the status of a feedback item (wish).

Values

WishStatus.completedWishStatus.declinedWishStatus.inProgressWishStatus.pendingWishStatus.plannedWishStatus.underReview

Properties

displayNameString
systemImageNameString

Survey

Represents a condition for branching in a survey.

Properties

typeConditionType

The type of comparison to perform.

valueAnyCodableValue

The value to compare against.

Methods

init(from:)
init(type:value:)
  • type: ConditionType
  • value: AnyCodableValue

A complete survey response containing all answers.

Properties

answers[SurveyAnswerPayload]

The list of answers for each question node.

externalUserIdString?

The external user ID, if available.

fingerprintString

The device fingerprint for anonymous users.

metadata[String:AnyCodableValue]?

Optional metadata to include with the response.

Methods

init(answers:fingerprint:externalUserId:metadata:)
  • answers: SurveyAnswerPayload
  • fingerprint: String
  • externalUserId: String
struct

Survey

Represents a survey that can be presented to users.

Properties

createdAtDate?

The date when the survey was created.

descriptionString?

An optional description of the survey.

idString

The unique identifier for the survey.

isActiveBool

Whether the survey is currently active.

nameString

The display name of the survey.

nodes[SurveyNode]?

The list of question nodes in the survey.

projectIdString

The project ID this survey belongs to.

slugString

The URL-friendly slug identifier.

Methods

init(from:)
init(id:name:slug:description:projectId:nodes:isActive:createdAt:)
  • id: String
  • name: String
  • slug: String
  • description: String
  • projectId: String
  • nodes: SurveyNode
  • isActive: Bool

Represents an option for multiple choice or checkbox questions.

Properties

idString

The unique identifier for the option.

labelString

The display label for the option.

valueString?

The value associated with this option.

Methods

init(from:)
init(id:label:value:)
  • id: String
  • label: String
struct

Branch

Represents a conditional branch in a survey flow.

Properties

conditionBranchCondition

The condition that must be met for this branch to be taken.

nextNodeIdString

The ID of the next node to navigate to if the condition is met.

Methods

init(condition:nextNodeId:)
  • condition: BranchCondition
  • nextNodeId: String
init(from:)

Represents a single question node in a survey.

Properties

answerNoNodeIdString?

The next node ID if the answer is “no” (for yes/no questions).

answerYesNodeIdString?

The next node ID if the answer is “yes” (for yes/no questions).

branches[Branch]?

Conditional branches that determine the next node based on the answer.

idString

The unique identifier for the node.

isRequiredBool

Whether this question must be answered.

maxRatingInt?

The maximum rating value for rating questions.

minRatingInt?

The minimum rating value for rating questions.

nextNodeIdString?

The default next node ID to navigate to.

options[NodeOption]?

The available options for multiple choice or checkbox questions.

orderInt?

The display order of this node in the survey.

questionString

The question text to display.

questionTypeQuestionType

The type of question (yes/no, multiple choice, rating, etc.).

resultMessageString?

A message to display when this node is reached (typically for end nodes).

Methods

init(from:)
init(id:question:questionType:options:minRating:maxRating:isRequired:answerYesNodeId:answerNoNodeId:nextNodeId:branches:resultMessage:order:)
  • id: String
  • question: String
  • questionType: QuestionType
  • options: NodeOption
  • minRating: Int
  • maxRating: Int
  • isRequired: Bool
  • answerYesNodeId: String
  • answerNoNodeId: String
  • nextNodeId: String
  • branches: Branch
  • resultMessage: String

Represents a single answer to a survey question node.

Properties

answerString?

The answer value (for rating or yes/no questions).

answerOptions[String]?

The selected options (for multiple choice or checkbox questions).

answerTextString?

The text answer (for text or paragraph questions).

nodeIdString

The ID of the question node this answer is for.

Methods

init(nodeId:answer:answerText:answerOptions:)
  • nodeId: String
  • answer: Stringoptional
  • answerText: Stringoptional

A type-erased codable value that can represent various types.

Values

AnyCodableValue.array(_:)AnyCodableValue.bool(_:)AnyCodableValue.double(_:)AnyCodableValue.int(_:)AnyCodableValue.string(_:)

Properties

boolValueBool
intValueInt
stringValueString

Methods

encode(to:)

Types of conditions that can be used in survey branches.

Values

ConditionType.containsConditionType.equalsConditionType.greaterThanConditionType.greaterThanOrEqualConditionType.lessThanConditionType.lessThanOrEqual

Represents a user’s answer to a survey question.

Values

SurveyAnswer.boolean(_:)SurveyAnswer.options(_:)SurveyAnswer.rating(_:)SurveyAnswer.text(_:)

Properties

isEmptyBool

Types of questions that can be used in a survey.

Values

QuestionType.checkboxesQuestionType.multipleChoiceQuestionType.paragraphQuestionType.ratingQuestionType.shortAnswerQuestionType.yesNo

Properties

displayNameString

Support

Represents a file attachment in a support ticket or message.

Properties

fileNameString

The name of the file.

fileSizeInt?

The size of the file in bytes.

fileUrlString

The URL where the file can be accessed.

idString

The unique identifier for the attachment.

mimeTypeString

The MIME type of the file.

Methods

init(from:)
init(id:fileName:fileUrl:mimeType:fileSize:)
  • id: String
  • fileName: String
  • fileUrl: String
  • mimeType: String

A request to add a message to an existing support ticket.

Properties

attachmentUrls[String]?

URLs of files to attach to the message.

authorEmailString?

The email address of the message author.

authorNameString?

The display name of the message author.

contentString

The text content of the message.

ticketIdString

The ID of the ticket to add the message to.

Methods

init(ticketId:content:authorName:authorEmail:attachmentUrls:)
  • ticketId: String
  • content: String
  • authorName: String
  • authorEmail: String

Represents a support ticket submitted by a user.

Properties

attachments[Attachment]?

The list of file attachments.

createdAtDate

The date when the ticket was created.

descriptionString

The detailed description of the issue.

idString

The unique identifier for the ticket.

messages[SupportMessage]?

The list of messages in this ticket’s conversation.

priorityTicketPriority

The priority level of the ticket.

projectIdString

The project ID this ticket belongs to.

statusTicketStatus

The current status of the ticket.

subjectString

The subject line of the ticket.

updatedAtDate?

The date when the ticket was last updated.

userEmailString

The email address of the user who created the ticket.

userIdString?

The user ID of the ticket creator.

userNameString?

The display name of the user who created the ticket.

Methods

init(from:)
init(id:subject:description:status:priority:userEmail:userName:userId:projectId:messages:attachments:createdAt:updatedAt:)
  • id: String
  • subject: String
  • description: String
  • status: TicketStatus
  • priority: TicketPriority
  • userEmail: String
  • userName: String
  • userId: String
  • projectId: String
  • messages: SupportMessage
  • attachments: Attachment
  • createdAt: Date
hash(into:)
  • hasher: Hasher

Represents a message in a support ticket conversation.

Properties

attachments[Attachment]?

The list of file attachments in this message.

authorEmailString?

The email address of the message author.

authorNameString?

The display name of the message author.

contentString

The text content of the message.

createdAtDate

The date when the message was created.

idString

The unique identifier for the message.

isFromSupportBool

Whether this message is from support staff.

ticketIdString

The ID of the ticket this message belongs to.

Methods

init(from:)
init(id:ticketId:content:authorName:authorEmail:isFromSupport:attachments:createdAt:)
  • id: String
  • ticketId: String
  • content: String
  • authorName: String
  • authorEmail: String
  • isFromSupport: Bool
  • attachments: Attachment
  • createdAt: Date

A request to create a new support ticket.

Properties

attachmentUrls[String]?

URLs of files to attach to the ticket.

descriptionString

The detailed description of the issue.

priorityTicketPriority

The priority level of the ticket.

projectIdString

The project ID.

subjectString

The subject line of the ticket.

userEmailString

The email address of the user creating the ticket.

userIdString?

The user ID of the ticket creator.

userNameString?

The display name of the user creating the ticket.

Methods

init(subject:description:priority:userEmail:userName:userId:projectId:attachmentUrls:)
  • subject: String
  • description: String
  • priority: TicketPriority
  • userEmail: String
  • userName: String
  • userId: String
  • projectId: String

Filters for querying support tickets.

Properties

emailString?

Filter by user email address.

externalUserIdString?

Filter by external user ID.

pageInt

The page number for pagination (1-based).

perPageInt

The number of tickets to return per page.

Methods

init(email:externalUserId:page:perPage:)
  • email: Stringoptional
  • externalUserId: Stringoptional
  • page: Intoptional

Represents the priority level of a support ticket.

Values

TicketPriority.highTicketPriority.lowTicketPriority.mediumTicketPriority.urgent

Properties

displayNameString

Represents the status of a support ticket.

Values

TicketStatus.closedTicketStatus.inProgressTicketStatus.newTicketStatus.openTicketStatus.resolvedTicketStatus.waitingOnCustomer

Properties

displayNameString
systemImageNameString

Help

Represents a collection of help articles.

Properties

articles[HelpArticle]?

The list of articles in this collection.

createdAtDate?

The date when the collection was created.

descriptionString?

An optional description of the collection.

iconString?

An optional icon identifier for the collection.

idString

The unique identifier for the collection.

nameString

The display name of the collection.

orderInt?

The display order of this collection.

projectIdString

The project ID this collection belongs to.

slugString

The URL-friendly slug identifier.

Methods

init(from:)
init(id:name:slug:description:icon:projectId:articles:order:createdAt:)
  • id: String
  • name: String
  • slug: String
  • description: String
  • icon: String
  • projectId: String
  • articles: HelpArticle
  • order: Int
hash(into:)
  • hasher: Hasher

Represents a decision node in a help flow.

Properties

answerNoNodeIdString?

The next node ID if the user answers “No”.

answerYesNodeIdString?

The next node ID if the user answers “Yes”.

articleIdString?

The article ID to show at leaf nodes (when there are no more questions).

flowIdString

The ID of the flow this node belongs to.

idString

The unique identifier for the decision node.

parentIdString?

The ID of the parent node. `` indicates this is the root node.

questionString

The question text to display to the user.

Methods

init(from:)
init(id:flowId:parentId:question:answerYesNodeId:answerNoNodeId:articleId:)
  • id: String
  • flowId: String
  • parentId: String
  • question: String
  • answerYesNodeId: String
  • answerNoNodeId: String
struct

HelpFlow

Represents a help flow that guides users through a series of steps or decisions.

Properties

articles[HelpArticle]?

The articles in this flow.

collectionIdString?

The ID of the collection this flow belongs to.

colorString?

An optional color code.

createdAtDate?

The date when the flow was created.

decisionNodes[HelpDecisionNode]?

The decision nodes in this flow.

descriptionString?

An optional description of the flow.

displayTypeString?

The display type for the flow.

iconString?

An optional icon identifier.

idString

The unique identifier for the flow.

nameString

The display name of the flow.

slugString

The URL-friendly slug identifier.

sortOrderInt?

The sort order of this flow.

updatedAtDate?

The date when the flow was last updated.

wizardSteps[HelpWizardStep]?

The wizard steps in this flow.

Methods

init(from:)
hash(into:)
  • hasher: Hasher

Represents a help article or documentation page.

Properties

collectionIdString?

The ID of the collection this article belongs to.

contentString

The full content of the article (may contain markdown or HTML).

createdAtDate?

The date when the article was created.

excerptString?

An optional excerpt or summary of the article.

idString

The unique identifier for the article.

isPublishedBool

Whether the article is published and visible to users.

orderInt?

The display order of this article.

projectIdString?

The project ID this article belongs to.

slugString

The URL-friendly slug identifier.

titleString

The title of the article.

updatedAtDate?

The date when the article was last updated.

Methods

init(from:)
init(id:title:slug:content:excerpt:collectionId:projectId:order:isPublished:createdAt:updatedAt:)
  • id: String
  • title: String
  • slug: String
  • content: String
  • excerpt: String
  • collectionId: String
  • projectId: String
  • order: Int
  • isPublished: Bool
  • createdAt: Date
hash(into:)
  • hasher: Hasher

Represents a step in a help wizard flow.

Properties

articleIdString?

Optional ID of a linked help article.

contentString

The HTML or markdown content for the step.

createdAtDate?

The date when the step was created.

flowIdString?

The ID of the flow this step belongs to.

idString

The unique identifier for the wizard step.

stepNumberInt

The step number used for ordering (ascending).

titleString

The title of the wizard step.

updatedAtDate?

The date when the step was last updated.

Methods

init(from:)
init(id:stepNumber:title:content:articleId:flowId:createdAt:updatedAt:)
  • id: String
  • stepNumber: Int
  • title: String
  • content: String
  • articleId: Stringoptional
  • flowId: Stringoptional
  • createdAt: Dateoptional
hash(into:)
  • hasher: Hasher

A public help collection as returned by the API.

Properties

createdAtDate?

The date when the collection was created.

descriptionString?

An optional description of the collection.

flows[HelpFlow]

The help flows in this collection.

idString

The unique identifier for the collection.

isLiveBool

Whether the collection is live and visible.

nameString

The display name of the collection.

projectIdString

The project ID this collection belongs to.

updatedAtDate?

The date when the collection was last updated.

versionString?

An optional version identifier.

Methods

init(from:)

Form

struct

FormField

Represents a single field in a contact form.

Properties

defaultValueString?

The default value for the field.

idString

The unique identifier for the field.

labelString

The label text to display for the field.

options[String]?

The available options for select, radio, or checkbox fields.

orderInt?

The display order of the field.

placeholderString?

The placeholder text to show when the field is empty.

requiredBool

Whether this field is required.

typeFieldType

The type of input field.

validationFieldValidation?

Validation rules for the field.

Methods

init(from:)
init(id:type:label:placeholder:required:options:defaultValue:validation:order:)
  • id: String
  • type: FieldType
  • label: String
  • placeholder: String
  • required: Bool
  • options: String
  • defaultValue: String
  • validation: FieldValidation

Validation rules for a form field.

Properties

maxLengthInt?

The maximum allowed length of the input.

minLengthInt?

The minimum required length of the input.

patternString?

A regular expression pattern to validate against.

patternMessageString?

The error message to display if the pattern doesn’t match.

Methods

init(from:)
init(minLength:maxLength:pattern:patternMessage:)
  • minLength: Int
  • maxLength: Int
  • pattern: String
struct

Branding

Properties

logoString?
nameString?
primaryColorString?

Methods

init(from:)

A submission of a contact form.

Properties

data[String:String]

A dictionary mapping field IDs to their submitted values.

formIdString

The ID of the form being submitted.

Methods

init(formId:data:)
  • formId: String

Represents a contact form that can be displayed to users.

Properties

createdAtDate?

The date when the form was created.

descriptionString?

An optional description of the form.

emailRecipientString?

The email address to send form submissions to.

emailSubjectString?

The subject line for email notifications.

enabledBool?

Whether the form is enabled.

fields[FormField]

The list of fields in the form.

idString

The unique identifier for the form.

isActiveBool?

Whether the form is active.

isFormActiveBool

Computed property to check if form is active (uses enabled if isActive is not set)

nameString

The display name of the form.

projectIdString?

The project ID this form belongs to.

slugString?

The URL-friendly slug identifier.

submitButtonTextString

The text to display on the submit button.

successMessageString?

The message to display after successful submission.

Methods

init(from:)
init(id:name:slug:description:projectId:fields:submitButtonText:successMessage:emailRecipient:emailSubject:isActive:enabled:createdAt:)
  • id: String
  • name: String
  • slug: String
  • description: String
  • projectId: String
  • fields: FormField
  • submitButtonText: String
  • successMessage: String
  • emailRecipient: String
  • emailSubject: String
  • isActive: Bool
  • enabled: Bool

Properties

dataContactFormsResponse
successBool?

Methods

init(from:)

Properties

brandingBranding?
formContactForm
projectIdString

Methods

init(from:)

Properties

contactForms[String:ContactForm]

Methods

init(from:)

Types of input fields available in contact forms.

Values

FieldType.checkboxFieldType.emailFieldType.radioFieldType.selectFieldType.textFieldType.textarea

Properties

displayNameString

Roadmap

Represents a column in a kanban-style roadmap view.

Properties

idString

The unique identifier for the column (same as status raw value).

items[RoadmapItem]

The roadmap items in this column.

statusWishStatus

The status that this column represents.

Methods

init(status:items:)
  • status: WishStatus

Represents an item on the product roadmap.

Properties

categoryCategory?

The category this item belongs to, if any.

commentCountInt

The number of comments on this item.

completedAtDate?

The date when the item was completed, if applicable.

createdAtDate

The date when the item was created.

descriptionString?

An optional detailed description.

idString

The unique identifier for the roadmap item.

statusWishStatus

The current status of the roadmap item.

targetDateDate?

The target date for completion, if set.

titleString

The title of the roadmap item.

voteCountInt

The number of votes this item has received.

Methods

init(from:)
init(id:title:description:status:voteCount:commentCount:category:targetDate:completedAt:createdAt:)
  • id: String
  • title: String
  • description: String
  • status: WishStatus
  • voteCount: Int
  • commentCount: Int
  • category: Category
  • targetDate: Date
  • completedAt: Date
  • createdAt: Date
hash(into:)
  • hasher: Hasher

Layout options for displaying the roadmap.

Values

RoadmapLayout.kanbanRoadmapLayout.listRoadmapLayout.timeline

Properties

displayNameString
systemImageNameString

Blog

Filters for querying blog posts.

Properties

categorySlugString?

Filter by category slug.

isFeaturedBool?

Filter to featured posts only.

pageInt

Current page number.

perPageInt

Number of items per page.

searchString?

Search query.

tagString?

Filter by tag.

Methods

init(categorySlug:tag:search:isFeatured:page:perPage:)
  • categorySlug: Stringoptional
  • tag: Stringoptional
  • search: Stringoptional
  • isFeatured: Booloptional
  • page: Intoptional

Paginated result for blog posts.

Properties

pageInt

Current page number.

perPageInt

Number of items per page.

posts[BlogPost]

The list of blog posts.

totalInt

Total number of posts matching the query.

totalPagesInt

Total number of pages.

Methods

init(posts:total:page:perPage:totalPages:)
  • posts: BlogPost
  • total: Int
  • page: Int
  • perPage: Int
  • totalPages: Int
struct

BlogPost

Represents a blog post.

Properties

authorNameString?

The name of the author.

categoryBlogCategoryRef?

The category this post belongs to (nested object).

categoryIdString?

The category ID this post belongs to.

contentString

The full content of the post (markdown or HTML).

createdAtDate?

The date when the post was created.

excerptString?

A short excerpt of the post.

idString

The unique identifier for the post.

isFeaturedBool

Whether this post is featured.

metaDescriptionString?

The meta description for SEO.

ogImageUrlString?

The Open Graph image URL.

projectIdString

The project ID this post belongs to.

publishedAtDate?

The date when the post was published.

slugString

The URL-friendly slug identifier.

tags[String]

Tags associated with this post.

titleString

The title of the post.

updatedAtDate?

The date when the post was last updated.

viewCountInt

The number of times this post has been viewed.

Methods

init(from:)
init(id:projectId:categoryId:title:slug:content:excerpt:metaDescription:ogImageUrl:authorName:publishedAt:isFeatured:tags:viewCount:createdAt:updatedAt:category:)
  • id: String
  • projectId: String
  • categoryId: String
  • title: String
  • slug: String
  • content: String
  • excerpt: String
  • metaDescription: String
  • ogImageUrl: String
  • authorName: String
  • publishedAt: Date
  • isFeatured: Bool
  • tags: String
  • viewCount: Int
  • createdAt: Date
  • updatedAt: Date

A lightweight reference to a blog category (used in nested objects).

Properties

colorString?

The color associated with this category (hex string).

idString

The unique identifier for the category.

nameString

The display name of the category.

slugString

The URL-friendly slug identifier.

Methods

init(from:)
init(id:name:slug:color:)
  • id: String
  • name: String
  • slug: String

Represents a blog category.

Properties

colorString?

The color associated with this category (hex string).

descriptionString?

An optional description of the category.

idString

The unique identifier for the category.

nameString

The display name of the category.

postCountInt?

The number of posts in this category.

slugString

The URL-friendly slug identifier.

Methods

init(from:)
init(id:name:slug:description:color:postCount:)
  • id: String
  • name: String
  • slug: String
  • description: String
  • color: String

Releases

Represents a feature included in a release.

Properties

createdAtDate

The date when the feature was created.

descriptionString?

An optional description of the feature.

idString

The unique identifier for the feature.

imageUrlString?

The URL of an image showcasing the feature.

sortOrderInt?

The display order of this feature.

titleString

The title of the feature.

updatedAtDate

The date when the feature was last updated.

Methods

init(from:)
hash(into:)
  • hasher: Hasher
struct

Release

Represents a product release or version update.

Properties

contentString?

The full content of the release notes (may contain markdown or HTML).

coverImageUrlString?

The URL of the cover image for the release.

createdAtDate

The date when the release was created.

excerptString?

An optional excerpt or summary of the release.

features[ReleaseFeature]?

The list of features included in this release.

idString

The unique identifier for the release.

labels[ReleaseLabel]

The labels categorizing this release.

publishedAtDate?

The date when the release was published.

slugString

The URL-friendly slug identifier.

titleString

The title of the release.

updatedAtDate

The date when the release was last updated.

versionString?

The version number of the release.

Methods

init(from:)
hash(into:)
  • hasher: Hasher

Labels that categorize releases by their type.

Values

ReleaseLabel.announcementReleaseLabel.bugfixReleaseLabel.featureReleaseLabel.improvementReleaseLabel.maintenanceReleaseLabel.performance

Properties

colorColor
displayNameString
iconNameString

Status

Represents a service being monitored on a status page.

Properties

colorString?

An optional color code for displaying the service.

createdAtDate

The date when the service was created.

descriptionString?

An optional description of the service.

groupNameString?

The name of the group this service belongs to.

idString

The unique identifier for the service.

isActiveBool?

Whether the service is currently being monitored.

nameString

The display name of the service.

sortOrderInt?

The display order of this service.

statusStatusType?

The current operational status of the service.

updatedAtDate

The date when the service was last updated.

Methods

init(from:)

Represents a status page configuration.

Properties

createdAtDate?

The date when the status page was created.

descriptionString?

An optional description of the status page.

idString

The unique identifier for the status page.

isActiveBool?

Whether the status page is active.

nameString

The display name of the status page.

organizationIdString?

The organization ID this status page belongs to.

projectIdString?

The project ID this status page belongs to.

publicUrlString?

The public URL for the status page.

slugString

The URL-friendly slug identifier.

updatedAtDate?

The date when the status page was last updated.

Methods

init(from:)

Represents the complete status overview for a status page.

Properties

activeUpdates[StatusUpdate]

The list of active status updates or incidents.

currentStatusStatusType

The overall current status of all services.

services[StatusPageService]?

The list of services being monitored.

servicesStatus[String:StatusType]?

A dictionary mapping service IDs to their current status.

statusPageStatusPage

The status page information.

Methods

init(from:)

Represents a status update or incident notification.

Properties

affectedServices[String]?

The list of service IDs affected by this update.

createdAtDate

The date when the status update was created.

descriptionString?

A detailed description of the update or incident.

idString

The unique identifier for the status update.

resolvedAtDate?

The date when the incident or maintenance was resolved.

startedAtDate?

The date when the incident or maintenance started.

stateState

Whether the update is currently active or has been resolved.

statusTypeStatusType

The type of status (operational, maintenance, outage, etc.).

titleString

The title of the status update.

updatedAtDate

The date when the status update was last updated.

Methods

init(from:)

Represents the operational status of a service.

Values

StatusType.degradedStatusType.incidentStatusType.maintenanceStatusType.majorOutageStatusType.operationalStatusType.partialOutage

Properties

colorColor
displayNameString
iconNameString

Theme

Properties

defaultValueAppGramTheme

Represents a color palette for AppGram SDK views.

Properties

accentColor

The accent color for highlights.

backgroundColor

The main background color.

borderColor

The border color.

cardBackgroundColor

The background color for cards.

cardTextColor

The text color for cards.

errorColor

The color for error states.

neutral100Color

Light neutral background (100)

neutral200Color

Subtle border color (200) - Most commonly used for borders

neutral300Color

Medium border color (300)

neutral400Color

Muted text color (400)

neutral50Color

Lightest neutral background (50)

neutral500Color

Secondary text color (500)

neutral600Color

Primary text color (600)

neutral700Color

Emphasized text color (700)

neutral800Color

Dark background (800)

neutral900Color

Darkest background (900)

primaryColor

The primary brand color.

secondaryColor

The secondary brand color.

successColor

The color for success states.

textColor

The primary text color.

warningColor

The color for warning states.

classicColorPalette
forestColorPalette
minimalColorPalette
modernColorPalette
modernDarkColorPalette
neutralColorPalette

Neutral preset - pure minimal design with neutral gray scale

oceanColorPalette
slateColorPalette

Slate preset - shadcn minimal aesthetic with slate gray tones

sunsetColorPalette

Methods

init(primary:secondary:accent:background:text:cardBackground:cardText:border:success:warning:error:neutral50:neutral100:neutral200:neutral300:neutral400:neutral500:neutral600:neutral700:neutral800:neutral900:)
  • primary: Color
  • secondary: Color
  • accent: Color
  • background: Color
  • text: Color
  • cardBackground: Color
  • cardText: Color
  • border: Color
  • success: Coloroptional
  • warning: Coloroptional
  • error: Coloroptional
  • neutral50: Coloroptional
  • neutral100: Coloroptional
  • neutral200: Coloroptional
  • neutral300: Coloroptional
  • neutral400: Coloroptional
  • neutral500: Coloroptional
  • neutral600: Coloroptional
  • neutral700: Coloroptional
  • neutral800: Coloroptional

Represents a theme configuration for AppGram SDK views.

Properties

colorsColorPalette

The color palette for light mode.

darkColorsColorPalette?

The optional color palette for dark mode.

classicAppGramTheme
defaultAppGramTheme
forestAppGramTheme
minimalAppGramTheme
neutralAppGramTheme
oceanAppGramTheme
slateAppGramTheme
sunsetAppGramTheme

Methods

init(colors:darkColors:)
  • colors: ColorPalette
resolvedColors(for:)→ ColorPalette

UI

Properties

bodysome View

Methods

init(options:selectedOptions:style:)
  • options: NodeOption
  • selectedOptions: String

Properties

bodysome View

Methods

init(options:selectedOption:style:)
  • options: NodeOption
  • selectedOption: String

Properties

bodysome View

Methods

init(wish:feedbackService:strings:)
  • wish: Wish
  • feedbackService: FeedbackServiceProtocol

A view that displays a wizard flow with step-by-step navigation.

Properties

bodysome View

Methods

init(viewModel:)
  • viewModel: WizardViewModel

Ticket status badge with shadcn-inspired minimal styling.

Properties

bodysome View

Methods

init(status:)
  • status: TicketStatus

Properties

bodysome View

Methods

init(icon:title:message:actionTitle:action:)
  • icon: Stringoptional
  • title: String
  • message: String
  • actionTitle: Stringoptional

Properties

bodysome View

Methods

init(voteCount:hasVoted:onVote:onRemoveVote:)async
  • voteCount: Int
  • hasVoted: Booloptional
  • onVote: Void
  • onRemoveVote: Void

Properties

bodysome View

Methods

init(article:)
  • article: HelpArticle

Properties

bodysome View

Methods

init(field:value:error:onValidate:)
  • field: FormField
  • value: String
  • error: String
  • onValidate: Void

The main container view for displaying popups.

Properties

bodysome View

A modal view displaying announcements with paging support.

Properties

bodysome View

Methods

init(announcements:cardConfiguration:onDismiss:onAction:)
  • announcements: Announcement
  • cardConfiguration: AnnouncementCardConfigurationoptional
  • onDismiss: Void

Properties

bodysome View

Methods

init(columns:)

A view that displays a decision tree flow with Yes/No navigation.

Properties

bodysome View

Methods

init(viewModel:configuration:onArticleSelected:)
  • viewModel: DecisionTreeViewModel
  • configuration: HelpCenterConfigurationoptional

Properties

bodysome View

Methods

init(supportService:userContextProvider:)
  • supportService: SupportServiceProtocol

Properties

bodysome View

Methods

init(message:)
  • message: SupportMessage

Properties

bodysome View

Methods

init(slug:surveyService:projectId:userContextProvider:style:)
  • slug: String
  • surveyService: SurveyServiceProtocol
  • projectId: String
  • userContextProvider: UserContext

Category badge with shadcn-inspired minimal styling.

Properties

bodysome View

Methods

init(category:)
  • category: Category

Properties

bodysome View

Methods

init(roadmapService:)
  • roadmapService: RoadmapServiceProtocol

Properties

bodysome View

Methods

init(article:)
  • article: HelpArticle

Properties

bodysome View

Methods

init(comment:)
  • comment: Comment

Properties

bodysome View

Methods

init(ticket:)
  • ticket: SupportTicket

Properties

bodysome View

Methods

init()

Properties

bodysome View

Methods

init(field:value:error:onValidate:)
  • field: FormField
  • value: String
  • error: String
  • onValidate: Void

Properties

bodysome View

Methods

init(field:value:error:onValidate:)
  • field: FormField
  • value: String
  • error: String
  • onValidate: Void
struct

ErrorView

Properties

bodysome View

Methods

init(error:retryAction:presentation:)async
  • error: AppGramError
  • retryAction: Void

Properties

bodysome View

Methods

init(text:style:)
  • text: String

Properties

bodysome View

Methods

init(items:)

A view displaying the full content of a blog post.

Properties

bodysome View

Methods

init(post:relatedPosts:onRelatedPostTap:onBack:)
  • post: BlogPost
  • relatedPosts: BlogPost
  • onRelatedPostTap: Void
struct

HTMLView

A SwiftUI view that renders HTML content using WKWebView with proper styling

Methods

init(htmlContent:textColor:backgroundColor:contentHeight:)
  • htmlContent: String
  • textColor: UIColoroptional
  • backgroundColor: UIColoroptional
makeCoordinator()→ Coordinator
makeUIView(context:)→ WKWebView
updateUIView(_:context:)
  • webView: WKWebView
  • context: Context

Properties

bodysome View

Methods

init(form:supportService:userContextProvider:embedded:onDismiss:)
  • form: SupportForm
  • supportService: SupportServiceProtocol
  • userContextProvider: UserContext
  • embedded: Booloptional
  • onDismiss: Void
struct

BlogView

The main blog view that combines list and detail views.

Properties

bodysome View

Methods

init(blogService:)
  • blogService: BlogServiceProtocol
create()static→ BlogView

Creates a BlogView using the shared SDK instance.

Status badge with shadcn-inspired minimal styling.

Properties

bodysome View

Methods

init(status:)
  • status: WishStatus

Properties

bodysome View

Methods

init(projectId:slug:apiBaseURL:apiKey:configuration:notificationManager:onSubscribe:onDismiss:)async
  • projectId: String
  • slug: Stringoptional
  • apiBaseURL: String
  • apiKey: Stringoptional
  • configuration: StatusConfigurationoptional
  • notificationManager: NotificationManageroptional
  • onSubscribe: Void

Properties

bodysome View

Methods

init(text:style:)
  • text: String

A customizable widget view that can be embedded in any screen.

Properties

bodysome View

Methods

init(configuration:widgetService:)
  • configuration: AGWidgetConfiguration
  • widgetService: WidgetServiceProtocol

Properties

bodysome View

Methods

init(supportService:userContextProvider:formId:embedded:onDismiss:)
  • supportService: SupportServiceProtocol
  • userContextProvider: UserContext
  • formId: Stringoptional
  • embedded: Booloptional
  • onDismiss: Void

Properties

bodysome View

Methods

init(items:)

Properties

bodysome View

Methods

init(field:value:error:onValidate:)
  • field: FormField
  • value: String
  • error: String
  • onValidate: Void

Properties

bodysome View

Methods

init(field:value:error:onValidate:)
  • field: FormField
  • value: String
  • error: String
  • onValidate: Void

Primary action button with design system styling and animations.

Properties

bodysome View

Methods

init(_:isLoading:action:)
  • title: String
  • isLoading: Booloptional
  • action: Void

Properties

bodysome View

Methods

init(collection:)
  • collection: HelpCollection

Feedback card view with unified design system styling.

Properties

bodysome View

Methods

init(wish:onVote:onRemoveVote:)async
  • wish: Wish
  • onVote: Void
  • onRemoveVote: Void

Properties

bodysome View

Methods

init(orgSlug:projectSlug:apiBaseURL:apiKey:configuration:notificationManager:onDismiss:)
  • orgSlug: String
  • projectSlug: String
  • apiBaseURL: String
  • apiKey: Stringoptional
  • configuration: ReleasesConfigurationoptional
  • notificationManager: NotificationManageroptional

Properties

bodysome View

Methods

init(item:compact:)
  • item: RoadmapItem

A view displaying a list of blog posts with pagination and filtering.

Properties

bodysome View

Methods

init(blogService:onPostTap:)
  • blogService: BlogServiceProtocol

Properties

bodysome View

Methods

init(helpService:configuration:)
  • helpService: HelpServiceProtocol

Properties

bodysome View

Methods

init(formId:contactFormService:projectId:userContextProvider:useStandaloneEndpoint:)
  • formId: String
  • contactFormService: ContactFormServiceProtocol
  • projectId: String
  • userContextProvider: UserContext

Properties

bodysome View

Methods

init(minRating:maxRating:rating:style:)
  • minRating: Int
  • maxRating: Int
  • rating: Int

Properties

bodysome View

Methods

init(ticket:supportService:)
  • ticket: SupportTicket
  • supportService: SupportServiceProtocol

A SwiftUI view that renders HTML content with proper theming

Properties

bodysome View

Methods

init(htmlContent:textColor:backgroundColor:)
  • htmlContent: String
  • textColor: Coloroptional

A card view displaying a blog post preview.

Properties

bodysome View

Methods

init(post:onTap:)
  • post: BlogPost

Properties

bodysome View

Methods

init(style:onAnswer:)
  • style: SurveyStyleoptional
  • onAnswer: Void

Properties

bodysome View

Methods

init(field:value:error:onValidate:)
  • field: FormField
  • value: String
  • error: String
  • onValidate: Void

Properties

bodysome View

Methods

init(_:)
  • content: String

Properties

bodysome View

Methods

init(feedbackService:strings:)
  • feedbackService: FeedbackServiceProtocol

Values

SurveyStyle.normalSurveyStyle.typeform

Utilities

Methods

parse(url:)static→ DeepLink?
class

Cache

Methods

init(defaultTTL:)
cleanup()
clear()
get(key:)→ Value?
remove(key:)
  • key: Key
set(key:value:ttl:)
  • key: Key
  • value: Value
class

Logger

Logger for AppGramSDK using OSLog with automatic production mode detection

Properties

isEnabledBool

Global flag to enable/disable logging

minimumLogLevelLogLevel

Minimum log level to display. Set to .info or .error in production to hide debug logs

sharedLogger

Shared logger instance for AppGramSDK

Methods

init(subsystem:category:)

Initialize a logger with a specific subsystem and category

  • subsystem: String
  • category: String
debug(_:file:function:line:)→ String

Log a debug message

  • message: String
  • file: Stringoptional
  • function: Stringoptional
  • line: Intoptional
error(_:file:function:line:)→ String

Log an error message

  • message: String
  • file: Stringoptional
  • function: Stringoptional
  • line: Intoptional
info(_:file:function:line:)→ String

Log an info message

  • message: String
  • file: Stringoptional
  • function: Stringoptional
  • line: Intoptional
warning(_:file:function:line:)→ String

Log a warning message

  • message: String
  • file: Stringoptional
  • function: Stringoptional
  • line: Intoptional
category(_:)static→ Logger

Create a logger for a specific category

Methods

init(delay:)
cancel()
debounce(action:)async
  • action: Void

Methods

init()
checkForNewReleases(_:)
checkForNewStatusUpdates(_:)
checkForResolvedStatusUpdates(_:)
subscribe(handler:)→ UUID
unsubscribe(token:)
  • token: UUID

Rate limiter for contact form submissions Limits submissions to max 10 per hour per form

Methods

init(maxSubmissions:timeWindow:storageKey:)
  • maxSubmissions: Intoptional
  • timeWindow: TimeIntervaloptional
canSubmit(formId:)→ Bool

Check if a submission is allowed for the given form ID

clearRecords(formId:)

Clear all submission records for a form (useful for testing)

  • formId: String
recordSubmission(formId:)

Record a submission for the given form ID

  • formId: String
remainingSubmissions(formId:)→ Int

Get the number of remaining submissions allowed for the given form ID

Utility for sanitizing form input data

Methods

init()
sanitize(_:)→ String

Sanitize a dictionary of form data

sanitize(_:)→ String

Sanitize a string value by trimming whitespace and removing potentially dangerous characters

Properties

sharedDeviceFingerprint

Methods

generate()async→ String
reset()

Other

Configuration options for customizing the automatic popup system behavior and appearance.

Properties

contentPopupContent

The content to display in the popup.

displaySettingsDisplaySettings

Display settings for customizing the popup appearance.

presentationStylePresentationStyle

The presentation style for the popup.

snoozeSettingsSnoozeSettings

Settings for the snooze functionality.

triggerConditionsTriggerConditions

The trigger conditions that determine when the popup should appear.

defaultPopupConfiguration

Default popup configuration with sensible defaults.

Methods

init(triggerConditions:content:presentationStyle:displaySettings:snoozeSettings:)
  • triggerConditions: TriggerConditionsoptional
  • content: PopupContentoptional
  • presentationStyle: PresentationStyleoptional
  • displaySettings: DisplaySettingsoptional

View model for managing decision tree flow state and navigation.

Properties

canGoBackBool

Whether the user can navigate back.

currentNodeHelpDecisionNode

The current node being displayed.

currentNodeIdString

The current node ID being displayed.

currentQuestionNumberInt

Current question number (1-based).

flowHelpFlow

The current help flow being displayed.

hasNodesBool

Whether the decision tree has nodes to display.

isLeafNodeBool

Whether the current node is a leaf node (no Yes/No children).

linkedArticleHelpArticle

The linked article for the current leaf node, if any.

nodeHistory[HistoryEntry

The history of visited nodes and answers.

nodes[HelpDecisionNode

All decision nodes from the flow.

publishedArticles[HelpArticle

Published articles from the flow (sorted by sort_order).

rootNodeHelpDecisionNode

The root node (node with parent_id === null).

Methods

init()
handleAnswer(_:)

Handles a Yes/No answer and navigates to the next node.

  • answer: DecisionAnswer
handleBack()

Navigates back one step in the history.

handleRestart()

Restarts the decision tree flow.

loadFlow(_:)

Loads a help flow and resets to the root node.

  • flow: HelpFlow
reset()

Resets the decision tree state.

Trigger conditions that determine when the popup should appear.

Properties

afterDaysOfUsageInt?

Show popup after this many days of usage. Set to `` to disable.

afterLaunchesInt?

Show popup after this many app launches. Set to `` to disable.

minimumIntervalTimeInterval

Minimum interval (in seconds) between popup displays.

repeatIntervalTimeInterval?

Show popup repeatedly at this interval (in seconds). Set to `` to disable.

defaultTriggerConditions

Default trigger conditions.

Methods

init(afterLaunches:afterDaysOfUsage:repeatInterval:minimumInterval:)
  • afterLaunches: Intoptional
  • afterDaysOfUsage: Intoptional
  • repeatInterval: TimeIntervaloptional

Configuration options for customizing the help center view appearance and behavior.

Properties

articleDisplayBehaviorArticleDisplayBehavior

The behavior when an article is found in a decision tree.

decisionTreeBackLabelString?
decisionTreeButtonColorColor

The color for Yes/No buttons in decision tree flows (legacy support).

decisionTreeNoLabelString?
decisionTreePromptString?
decisionTreeRestartLabelString?
decisionTreeSolutionTitleString?
decisionTreeSubtitleString?
decisionTreeTitleString?

Optional labels for decision tree UI copy.

decisionTreeViewArticleLabelString?
decisionTreeYesLabelString?
noButtonColorColor?

The color for No buttons in decision tree flows.

yesButtonColorColor?

The color for Yes buttons in decision tree flows.

defaultHelpCenterConfiguration

Methods

init(yesButtonColor:noButtonColor:decisionTreeButtonColor:articleDisplayBehavior:decisionTreeTitle:decisionTreeSubtitle:decisionTreePrompt:decisionTreeYesLabel:decisionTreeNoLabel:decisionTreeSolutionTitle:decisionTreeViewArticleLabel:decisionTreeBackLabel:decisionTreeRestartLabel:)
  • yesButtonColor: Coloroptional
  • noButtonColor: Coloroptional
  • decisionTreeButtonColor: Coloroptional
  • articleDisplayBehavior: ArticleDisplayBehavioroptional
  • decisionTreeTitle: Stringoptional
  • decisionTreeSubtitle: Stringoptional
  • decisionTreePrompt: Stringoptional
  • decisionTreeYesLabel: Stringoptional
  • decisionTreeNoLabel: Stringoptional
  • decisionTreeSolutionTitle: Stringoptional
  • decisionTreeViewArticleLabel: Stringoptional
  • decisionTreeBackLabel: Stringoptional

Represents a history entry in the decision tree navigation.

Properties

answerDecisionAnswer

The answer that was given.

idString
nodeIdString

The node ID that was visited.

questionString

The question that was asked.

Methods

init(nodeId:question:answer:)
  • nodeId: String
  • question: String
  • answer: DecisionAnswer

Represents a support form that can be displayed to users.

Properties

createdAtDate?

The date when the form was created.

descriptionString?

An optional description of the form.

enabledBool?

Whether the form is enabled.

fields[FormField]

The list of fields in the form.

idString

The unique identifier for the form.

isFormActiveBool

Computed property to check if form is active

nameString

The display name of the form.

submitButtonTextString

The text to display on the submit button.

successMessageString?

The message to display after successful submission.

updatedAtDate?

The date when the form was last updated.

Methods

init(from:)
init(id:name:description:fields:submitButtonText:successMessage:enabled:createdAt:updatedAt:)
  • id: String
  • name: String
  • description: String
  • fields: FormField
  • submitButtonText: String
  • successMessage: String
  • enabled: Bool
  • createdAt: Date
hash(into:)
  • hasher: Hasher

Configuration for announcement display behavior.

Properties

cardConfigurationAnnouncementCardConfiguration

Configuration for the announcement card appearance and buttons.

maxAnnouncementsToShowInt

Maximum number of announcements to show at once.

minimumHoursBetweenShowsInt

Minimum hours between automatic announcement displays.

orgSlugString

The organization slug to fetch releases from.

projectSlugString

The project slug to fetch releases from.

showOnLaunchBool

Whether to automatically show announcements on app launch.

Methods

init(orgSlug:projectSlug:showOnLaunch:minimumHoursBetweenShows:maxAnnouncementsToShow:cardConfiguration:)

Creates an announcement configuration.

  • orgSlug: String
  • projectSlug: String
  • showOnLaunch: Booloptional
  • minimumHoursBetweenShows: Intoptional
  • maxAnnouncementsToShow: Intoptional

Methods

webView(_:didFinish:)
  • webView: WKWebView

Manager for controlling the automatic popup system.

Properties

configurationPopupConfiguration

The popup configuration.

currentContentPopupContent

The current content to display in the popup.

isPresentedBool

Whether the popup is currently being presented.

Methods

init(configuration:tracker:projectId:surveyService:feedbackService:)

Creates a new popup manager.

  • configuration: PopupConfiguration
  • tracker: PopupTracker
  • projectId: String
  • surveyService: SurveyServiceProtocol
checkAndPresentIfNeeded()async

Checks if the popup should be presented and shows it if conditions are met.

dismiss()

Dismisses the currently shown popup.

recordInteraction(_:)

Records a user interaction with the popup.

  • type: InteractionType
showPopupManually()

Manually triggers the popup to appear immediately.

snooze()

Snoozes the popup for the configured duration.

start()

Starts the popup system.

stop()

Stops the popup system.

A submission of a support form.

Properties

data[String:String]

A dictionary mapping field IDs to their submitted values.

descriptionString

The description of the support request.

formIdString

The ID of the form being submitted.

subjectString

The subject of the support request.

userEmailString?

The user’s email address.

userNameString?

The user’s name.

Methods

init(formId:subject:description:data:userEmail:userName:)
  • formId: String
  • subject: String
  • description: String
  • data: String
  • userEmail: String

View model for managing wizard flow state and navigation.

Properties

canGoBackBool

Whether the user can go to the previous step.

canGoForwardBool

Whether the user can go to the next step.

currentStepInt

The current step index (0-based).

currentStepDataHelpWizardStep

The current step data.

flowHelpFlow

The current help flow being displayed.

hasStepsBool

Whether the wizard has steps to display.

isFirstStepBool

Whether the current step is the first step.

isLastStepBool

Whether the current step is the last step.

linkedArticleHelpArticle

The linked article for the current step, if any.

progressDouble

Progress value between 0.0 and 1.0.

progressPercentageInt

Progress percentage (0-100).

publishedArticles[HelpArticle

Published articles from the flow (sorted by sort_order).

totalStepsInt

Total number of steps.

Methods

init()
goToStep(_:)

Navigates to a specific step by index.

  • index: Int
loadFlow(_:)

Loads a help flow and resets to the first step.

  • flow: HelpFlow
nextStep()

Navigates to the next step.

previousStep()

Navigates to the previous step.

reset()

Resets the wizard state.

stepState(at:)→ StepState

Returns the state of a step (completed, current, or upcoming).

Display settings for customizing the popup appearance.

Properties

animationDurationTimeInterval

The duration of the animation when showing/hiding the popup.

cornerRadiusCGFloat

The corner radius for the popup card.

maxWidthCGFloat?

Optional maximum width for the popup. Set to `` for no constraint.

shadowRadiusCGFloat

The shadow radius for the popup card.

defaultDisplaySettings

Default display settings.

Methods

init(animationDuration:cornerRadius:shadowRadius:maxWidth:)
  • animationDuration: TimeIntervaloptional
  • cornerRadius: CGFloatoptional
  • shadowRadius: CGFloatoptional

Configuration options for customizing a widget’s appearance and behavior.

Properties

backgroundColorColor?

Custom background color for the widget.

borderColorColor?

Custom border color for the widget.

borderWidthCGFloat

Border width for the widget.

cornerRadiusCGFloat

Corner radius for the widget.

ctaAction(() ->Void)?

Action to perform when CTA button is tapped.

ctaButtonCTAStyle?

Configuration for the CTA button.

customContent(() ->AnyView)?

Custom content view builder (for custom widget type).

paddingEdgeInsets

Padding inside the widget.

parameters[String:String]

Additional parameters for widget-specific behavior.

sizeWidgetSize

The size of the widget.

styleWidgetStyle

The visual style of the widget.

subtitleString?

Custom subtitle/description text for the widget.

titleString?

Custom title text for the widget.

typeWidgetType

The type of widget content.

Methods

init(type:style:size:ctaButton:title:subtitle:backgroundColor:borderColor:borderWidth:cornerRadius:padding:customContent:ctaAction:parameters:)
  • type: WidgetType
  • style: WidgetStyleoptional
  • size: WidgetSizeoptional
  • ctaButton: CTAStyleoptional
  • title: Stringoptional
  • subtitle: Stringoptional
  • backgroundColor: Coloroptional
  • borderColor: Coloroptional
  • borderWidth: CGFloatoptional
  • cornerRadius: CGFloatoptional
  • padding: EdgeInsetsoptional
  • customContent: AnyView
  • ctaAction: Void
custom(style:size:title:subtitle:ctaButton:customContent:ctaAction:)static→ AnyView

Default widget configuration for custom content.

  • style: WidgetStyleoptional
  • size: WidgetSizeoptional
  • title: Stringoptional
  • subtitle: Stringoptional
  • ctaButton: CTAStyleoptional
  • customContent: AnyView
feedback(style:size:ctaButton:ctaAction:)static

Default widget configuration for feedback.

  • style: WidgetStyleoptional
  • size: WidgetSizeoptional
  • ctaButton: CTAStyleoptional
roadmap(style:size:ctaButton:ctaAction:)static

Default widget configuration for roadmap.

  • style: WidgetStyleoptional
  • size: WidgetSizeoptional
  • ctaButton: CTAStyleoptional
status(style:size:ctaButton:ctaAction:slug:)static

Default widget configuration for status.

  • style: WidgetStyleoptional
  • size: WidgetSizeoptional
  • ctaButton: CTAStyleoptional
  • ctaAction: Void

Customizable strings for the feedback UI.

Properties

addCommentLabelString

Label for add comment section

allCategoriesLabelString

Label for showing all categories

allStatusesLabelString

Label for showing all statuses

byAuthorPrefixString

Prefix for author attribution

cancelButtonLabelString

Text for cancel button

categoryFilterLabelString

Label for category filter when no category is selected

closeButtonLabelString

Text for close button

commentsLabelString

Label for comments section

descriptionHintString

Placeholder hint for description input

descriptionLabelString

Label for description input field

detailTitleString

Title for the feedback detail view

emptyActionLabelString

Button text for empty state action

emptyMessageString

Message for empty feedback list

emptyTitleString

Title for empty feedback list

feedbackTitleString

Title for the feedback list view

noCommentsMessageString

Message when no comments exist

postCommentLabelString

Button text for posting a comment

searchPlaceholderString

Placeholder for search field

sortPrefixString

Prefix for sort filter

statusFilterLabelString

Label for status filter when no status is selected

submitButtonLabelString

Text for submit button

submitTitleString

Title for the submit feedback view

submittedMessageString

Message shown when feedback is submitted successfully

titleHintString

Placeholder hint for title input

titleLabelString

Label for title input field

titlePlaceholderString

Placeholder for title input field

defaultFeedbackStrings

Default strings configuration

Methods

init(feedbackTitle:submitTitle:detailTitle:statusFilterLabel:allStatusesLabel:categoryFilterLabel:allCategoriesLabel:sortPrefix:titleLabel:titleHint:titlePlaceholder:descriptionLabel:descriptionHint:submitButtonLabel:cancelButtonLabel:closeButtonLabel:commentsLabel:addCommentLabel:postCommentLabel:noCommentsMessage:emptyTitle:emptyMessage:emptyActionLabel:submittedMessage:searchPlaceholder:byAuthorPrefix:)
  • feedbackTitle: Stringoptional
  • submitTitle: Stringoptional
  • detailTitle: Stringoptional
  • statusFilterLabel: Stringoptional
  • allStatusesLabel: Stringoptional
  • categoryFilterLabel: Stringoptional
  • allCategoriesLabel: Stringoptional
  • sortPrefix: Stringoptional
  • titleLabel: Stringoptional
  • titleHint: Stringoptional
  • titlePlaceholder: Stringoptional
  • descriptionLabel: Stringoptional
  • descriptionHint: Stringoptional
  • submitButtonLabel: Stringoptional
  • cancelButtonLabel: Stringoptional
  • closeButtonLabel: Stringoptional
  • commentsLabel: Stringoptional
  • addCommentLabel: Stringoptional
  • postCommentLabel: Stringoptional
  • noCommentsMessage: Stringoptional
  • emptyTitle: Stringoptional
  • emptyMessage: Stringoptional
  • emptyActionLabel: Stringoptional
  • submittedMessage: Stringoptional
  • searchPlaceholder: Stringoptional

Opacity constants for consistent transparency levels.

Properties

disabledDouble

Disabled state opacity (0.4)

fullDouble

Full opacity (1.0)

mutedDouble

Muted content opacity (0.6)

subtleDouble

Subtle content opacity (0.8)

Properties

bodysome View

Methods

init(configuration:)

Response from verifying a magic link token.

Properties

tickets[SupportTicket]

The user’s support tickets.

userEmailString

The verified user’s email address.

Methods

init(from:)

Corner radius constants for consistent rounded corners.

Properties

lgCGFloat

Large corner radius (12pt) - Cards, buttons (most common)

mdCGFloat

Medium corner radius (8pt) - Form fields

pillCGFloat

Pill corner radius (999pt) - Capsule shapes

smCGFloat

Small corner radius (6pt) - Small buttons

xlCGFloat

Extra large corner radius (16pt) - Large cards

xsCGFloat

Extra small corner radius (4pt) - Badges

xxlCGFloat

Extra extra large corner radius (20pt) - Sheets, modals

Typography constants for font sizes, line heights, and weights.

Properties

baseCGFloat

Base font size (16pt) - Body text, default

boldFont Weight

Bold font weight

lgCGFloat

Large font size (18pt) - Subheadings

lineHeightNormalCGFloat

Normal line height (1.5x) - Standard body text

lineHeightRelaxedCGFloat

Relaxed line height (1.75x) - Comfortable reading

lineHeightTightCGFloat

Tight line height (1.25x) - Compact text

mediumFont Weight

Medium font weight

regularFont Weight

Regular font weight

semiboldFont Weight

Semibold font weight

smCGFloat

Small font size (14pt) - Secondary text

xlCGFloat

Extra large font size (20pt) - Headings

xsCGFloat

Extra small font size (12pt) - Captions, fine print

xxlCGFloat

Extra extra large font size (24pt) - Large headings

xxxlCGFloat

Extra extra extra large font size (32pt) - Hero text

Properties

contactFormIdString
releasesOrgSlugString
releasesProjectSlugString
statusSlugString
supportFormIdString
surveySlugString
widgetSizeAGWidgetConfiguration WidgetSize
widgetStyleAGWidgetConfiguration WidgetStyle

Methods

init(surveySlug:supportFormId:contactFormId:statusSlug:releasesOrgSlug:releasesProjectSlug:widgetStyle:widgetSize:)
  • surveySlug: Stringoptional
  • supportFormId: Stringoptional
  • contactFormId: Stringoptional
  • statusSlug: Stringoptional
  • releasesOrgSlug: Stringoptional
  • releasesProjectSlug: Stringoptional
  • widgetStyle: WidgetStyle

Observes app lifecycle events and provides callbacks for key events.

Properties

onBackground(() ->Void)?

Called when the app enters the background.

onForeground(() ->Void)?

Called when the app enters the foreground.

onLaunch(() ->Void)?

Called when the app finishes launching.

Methods

init()

Represents an announcement to be displayed to users.

Properties

createdAtDate

The date when the announcement was created.

features[AnnouncementFeature]

The list of features or highlights to display.

idString

The unique identifier for the announcement.

imageUrlString?

An optional preview image URL.

learnMoreUrlString?

An optional URL for “Learn more” link.

privacyNoteString?

An optional privacy notice to display.

subtitleString?

An optional subtitle providing additional context.

titleString

The title of the announcement (e.g., “Introducing agent mode”).

versionString?

The version associated with this announcement.

Methods

init(from:)
hash(into:)
  • hasher: Hasher
from(release:)static→ Announcement

Creates an announcement from a release.

Actor for tracking popup display state and evaluating trigger conditions.

Methods

init()
canShowNow(configuration:)→ Bool

Checks if the popup can be shown now, considering snooze and minimum interval.

getDaysOfUsage()→ Int

Calculates the number of days since first app launch.

getDismissCount()→ Int

Returns the number of times the popup was dismissed without interaction.

getInteractionCount()→ Int

Returns the number of times the user interacted with the popup.

getLastShownDate()→ Date?

Returns the date when the popup was last shown, if any.

getLastSnoozeDate()→ Date?

Returns the date when the popup was last snoozed, if any.

getLaunchCount()→ Int

Returns the current launch count.

getTotalShownCount()→ Int

Returns the total number of times the popup has been shown.

isSnoozed(snoozeDuration:)→ Bool

Checks if the popup is currently in a snoozed state.

recordDismissed()

Records that the user dismissed the popup.

recordInteraction()

Records that the user interacted with the popup (e.g., tapped a button).

recordLaunch()

Records an app launch.

recordShown()

Records that a popup was shown to the user.

recordSnoozed()

Records that the user snoozed the popup.

reset()

Resets all tracking data.

shouldShow(configuration:)→ Bool

Determines whether the popup should be shown based on the configuration.

A reusable button configuration for SDK components.

Properties

action(() ->Void)?

Action to perform when button is tapped.

backgroundColorColor?

Background color of the button.

cornerRadiusCGFloat

Corner radius for the button.

fontSizeCGFloat

Font size for the button text.

fontWeightFont Weight

Font weight for the button text.

foregroundColorColor?

Foreground (text) color of the button.

heightCGFloat?

Height of the button.

paddingEdgeInsets

Padding for the button content.

styleButtonStyle

The button style.

titleString

The button title text.

Methods

init(title:style:backgroundColor:foregroundColor:fontWeight:fontSize:cornerRadius:height:padding:action:)
  • title: String
  • style: ButtonStyleoptional
  • backgroundColor: Coloroptional
  • foregroundColor: Coloroptional
  • fontWeight: Weight
  • fontSize: CGFloatoptional
  • cornerRadius: CGFloatoptional
  • height: CGFloatoptional
  • padding: EdgeInsetsoptional
primary(title:backgroundColor:foregroundColor:action:)static

Default primary button configuration.

  • title: String
  • backgroundColor: Coloroptional
  • foregroundColor: Coloroptional
secondary(title:foregroundColor:action:)static

Default secondary button configuration.

  • title: String
  • foregroundColor: Coloroptional
text(title:foregroundColor:action:)static

Default text button configuration.

  • title: String
  • foregroundColor: Coloroptional

Represents a feature highlight within an announcement.

Properties

descriptionString?

An optional description of the feature.

idString

The unique identifier for the feature.

imageUrlString?

An optional image URL showcasing the feature.

titleString

The title of the feature.

Methods

init(from:)
hash(into:)
  • hasher: Hasher

Settings for the popup snooze functionality.

Properties

buttonTitleString

The title text for the snooze button.

enabledBool

Whether the snooze button is enabled.

snoozeDurationTimeInterval

The duration (in seconds) to snooze the popup when the snooze button is tapped.

defaultSnoozeSettings

Default snooze settings.

Methods

init(enabled:snoozeDuration:buttonTitle:)
  • enabled: Booloptional
  • snoozeDuration: TimeIntervaloptional

Manages the display and lifecycle of announcements.

Properties

isShowingAnnouncementsBool
onAnnouncementAction((Announcement) ->Void)?

Callback invoked when user takes action on an announcement.

Methods

init(configuration:releasesService:)

Initializes the announcement manager.

  • configuration: AnnouncementConfiguration
  • releasesService: ReleasesServiceProtocol
checkAndFetchAnnouncements()async

Checks for new announcements and fetches them if needed.

checkAndPresentIfNeeded()async

Checks if announcements should be shown and displays them if appropriate.

clearSeenHistory()

Clears the seen announcement history.

presentAnnouncements()async

Manually presents announcements.

start()

Starts the announcement manager.

Design system constants based on shadcn principles.

Configuration for the call-to-action button.

Properties

backgroundColorColor

Background color of the CTA button.

cornerRadiusCGFloat

Corner radius for the CTA button.

fontWeightFont Weight

Font weight for the CTA button text.

foregroundColorColor

Foreground (text) color of the CTA button.

paddingEdgeInsets

Padding for the CTA button.

titleString

The title text for the CTA button.

defaultAGWidgetConfiguration CTAStyle

Default CTA style.

Methods

init(title:backgroundColor:foregroundColor:fontWeight:cornerRadius:padding:)
  • title: String
  • backgroundColor: Coloroptional
  • foregroundColor: Coloroptional
  • fontWeight: Weight
  • cornerRadius: CGFloatoptional

Border width constants for subtle borders.

Properties

hairlineCGFloat

Hairline border (0.5pt) - Ultra-subtle separation

mediumCGFloat

Medium border (1.5pt) - Emphasized border

thickCGFloat

Thick border (2pt) - Strong border

thinCGFloat

Thin border (1pt) - Standard border (most common)

Animation constants for smooth, natural transitions.

Properties

easeInAnimation

Ease in animation - Starts slow, ends fast

easeInOutAnimation

Ease in-out animation - Starts slow, fast in middle, ends slow

easeOutAnimation

Ease out animation - Starts fast, ends slow

fastDouble

Fast animation (0.15s) - Quick state changes

instantDouble

Instant animation (0.1s) - Very quick state changes

normalDouble

Normal animation (0.2s) - Standard transitions (most common)

slowDouble

Slow animation (0.3s) - Deliberate animations

slowerDouble

Slower animation (0.4s) - Complex animations

springAnimation

Standard spring animation - Balanced and versatile

springBouncyAnimation

Bouncy spring animation - Playful and energetic

springSmoothAnimation

Smooth spring animation - Elegant and refined

Response from sending a magic link email.

Properties

messageString

A message describing the result.

successBool

Whether the magic link was sent successfully.

Methods

init(from:)

Properties

dataSupportFormsResponse
successBool?

Methods

init(from:)

Shadow style definition with color, radius, and offset.

Properties

colorColor
radiusCGFloat
xCGFloat
yCGFloat

Methods

init(color:radius:x:y:)
  • color: Color
  • radius: CGFloat
  • x: CGFloat
  • y: CGFloat

Configuration for announcement card appearance and behavior.

Properties

backgroundColorColor?

Background color for the announcement card.

cornerRadiusCGFloat

Corner radius for the announcement card.

descriptionColorColor?

Description text color.

descriptionFontSizeCGFloat

Description font size.

modalPaddingCGFloat

Padding around the card within the modal.

pageIndicatorConfigurationPageIndicatorConfiguration

Configuration for page indicators when multiple announcements are shown.

presentationStylePresentationStyle

Presentation style for the announcement content.

primaryButtonButtonConfiguration?

Primary button configuration (optional).

secondaryButtonButtonConfiguration?

Secondary button configuration (optional).

titleColorColor?

Title text color.

titleFontSizeCGFloat

Title font size.

defaultAnnouncementCardConfiguration

Default configuration matching ChatGPT agent mode style.

noButtonsAnnouncementCardConfiguration

Configuration with no buttons.

sheetAnnouncementCardConfiguration

Configuration for bottom-sheet style presentation (no card chrome).

Methods

init(backgroundColor:primaryButton:secondaryButton:titleColor:descriptionColor:titleFontSize:descriptionFontSize:cornerRadius:modalPadding:pageIndicatorConfiguration:presentationStyle:)

Creates an announcement card configuration.

  • backgroundColor: Coloroptional
  • primaryButton: ButtonConfigurationoptional
  • secondaryButton: ButtonConfigurationoptional
  • titleColor: Coloroptional
  • descriptionColor: Coloroptional
  • titleFontSize: CGFloatoptional
  • descriptionFontSize: CGFloatoptional
  • cornerRadius: CGFloatoptional
  • modalPadding: CGFloatoptional
  • pageIndicatorConfiguration: PageIndicatorConfigurationoptional

Shadow constants for subtle elevation effects.

Properties

lgDesignSystem ShadowStyle

Large shadow - Prominent elements (radius: 12, y: 6, opacity: 0.10)

mdDesignSystem ShadowStyle

Medium shadow - Standard cards (radius: 8, y: 4, opacity: 0.08)

noneDesignSystem ShadowStyle

No shadow

smDesignSystem ShadowStyle

Small shadow - Subtle elevation (radius: 4, y: 2, opacity: 0.06)

xlDesignSystem ShadowStyle

Extra large shadow - Floating elements (radius: 16, y: 8, opacity: 0.12)

xsDesignSystem ShadowStyle

Extra small shadow - Minimal elevation (radius: 2, y: 1, opacity: 0.04)

Spacing constants following a consistent scale (4px base).

Properties

lgCGFloat

Large spacing (16pt) - Default padding, most common

mdCGFloat

Medium spacing (12pt) - Medium spacing, text gaps

smCGFloat

Small spacing (8pt) - Small spacing, icon gaps

xlCGFloat

Extra large spacing (24pt) - Section spacing

xsCGFloat

Extra small spacing (4pt) - Tiny gaps, badge padding

xxlCGFloat

Extra extra large spacing (32pt) - Large sections

xxxlCGFloat

Extra extra extra large spacing (48pt) - Major sections

View model for managing announcements display and tracking.

Properties

announcements[Announcement
errorAppGramError
isLoadingBool
shouldShowAnnouncementsBool

Methods

init(releasesService:orgSlug:projectSlug:maxAnnouncementsToShow:userDefaults:)

Initializes the announcement view model.

  • releasesService: ReleasesServiceProtocol
  • orgSlug: String
  • projectSlug: String
  • maxAnnouncementsToShow: Intoptional
clearSeenHistory()

Clears all seen announcement history.

fetchAnnouncements(includeSeen:)async

Fetches new announcements from releases.

markAnnouncementsSeen(_:)

Marks feature announcements as seen.

markCurrentAnnouncementsSeen()

Marks all current feature announcements as seen.

shouldShowAnnouncementsAutomatically(minimumHoursSinceLastCheck:)→ Bool

Checks if announcements should be shown automatically.

Properties

supportForms[String:SupportForm]

Methods

init(from:)

Configuration for page indicator appearance and behavior.

Properties

activeColorColor?

Active indicator color (for current page).

bottomPaddingCGFloat?

Padding at the bottom of indicators.

customView((Int,Int) ->AnyView)?

Custom indicator view builder. Parameters: (currentPage: Int, totalPages: Int) -> AnyView

inactiveColorColor?

Inactive indicator color (for other pages).

isVisibleBool

Whether to show indicators at all.

sizeCGFloat?

Size of each indicator dot.

spacingCGFloat?

Spacing between indicator dots.

defaultPageIndicatorConfiguration

Default configuration with white indicators.

hiddenPageIndicatorConfiguration

Configuration that hides indicators.

Methods

init(activeColor:inactiveColor:size:spacing:bottomPadding:customView:isVisible:)

Creates a page indicator configuration.

  • activeColor: Coloroptional
  • inactiveColor: Coloroptional
  • size: CGFloatoptional
  • spacing: CGFloatoptional
  • bottomPadding: CGFloatoptional
  • customView: AnyView
custom(_:)static→ AnyView

Creates a configuration with a custom view.

styled(activeColor:inactiveColor:size:spacing:)static→ PageIndicatorConfiguration

Creates a configuration with custom colors.

  • activeColor: Coloroptional
  • inactiveColor: Coloroptional
  • size: CGFloatoptional

The type of content to display in the popup.

Values

PopupContent.customView(_:)PopupContent.feedbackPopupContent.survey(slug:style:)

Button style options.

Values

ButtonConfiguration.ButtonStyle.customButtonConfiguration.ButtonStyle.primaryButtonConfiguration.ButtonStyle.secondaryButtonConfiguration.ButtonStyle.text

The state of a status update.

Values

StatusUpdate.State.activeStatusUpdate.State.resolved

Types of user interactions with the popup.

Values

InteractionType.actionInteractionType.dismissInteractionType.snooze

Values

NotificationManager.NotificationEvent.newRelease(_:)NotificationManager.NotificationEvent.newStatusUpdate(_:)NotificationManager.NotificationEvent.statusResolved(_:)

Represents the state of a wizard step.

Values

StepState.completedStepState.currentStepState.upcoming

Visual presentation style for the announcement content.

Values

AnnouncementCardConfiguration.PresentationStyle.cardAnnouncementCardConfiguration.PresentationStyle.sheet

Represents a Yes/No answer in the decision tree.

Values

DecisionAnswer.noDecisionAnswer.yes

Size preset for the widget.

Values

AGWidgetConfiguration.WidgetSize.custom(_:)AGWidgetConfiguration.WidgetSize.largeAGWidgetConfiguration.WidgetSize.mediumAGWidgetConfiguration.WidgetSize.small

Methods

hash(into:)
  • hasher: Hasher

Log levels supported by the logger

Values

Logger.LogLevel.debugLogger.LogLevel.errorLogger.LogLevel.infoLogger.LogLevel.warning

Defines how articles are displayed when found in a decision tree.

Values

ArticleDisplayBehavior.inlineArticleDisplayBehavior.pushToStackArticleDisplayBehavior.replaceArticleDisplayBehavior.sheet

Visual style of the widget.

Values

AGWidgetConfiguration.WidgetStyle.bannerAGWidgetConfiguration.WidgetStyle.cardAGWidgetConfiguration.WidgetStyle.compactAGWidgetConfiguration.WidgetStyle.minimal

The presentation style for the popup.

Values

PresentationStyle.bottomBannerPresentationStyle.sheet

The type of widget content to display.

Values

AGWidgetConfiguration.WidgetType.customAGWidgetConfiguration.WidgetType.feedbackAGWidgetConfiguration.WidgetType.roadmapAGWidgetConfiguration.WidgetType.status

Client and services

The main entry point for the AppGram SDK.

Properties

configurationConfiguration

The current configuration of the SDK.

userContextUserContext

The current user context.

sharedAppGramSDK

The shared singleton instance of the AppGram SDK.

versionString

The current version of the AppGram SDK.

Methods

blogView()→ View

Returns a SwiftUI view for displaying blog posts and content.

clearUser()

Clears the current user context and sets it back to anonymous.

configure(projectId:baseURL:theme:apiKey:popupConfiguration:announcementConfiguration:)

Configures the AppGram SDK with the provided project credentials and settings.

  • projectId: String
  • baseURL: Stringoptional
  • theme: AppGramThemeoptional
  • apiKey: Stringoptional
  • popupConfiguration: PopupConfigurationoptional
contactFormView(formId:)→ View

Returns a SwiftUI view for displaying and submitting a contact form.

feedbackView()→ View

Returns a SwiftUI view for displaying and managing feedback.

feedbackWidget(style:size:ctaTitle:ctaAction:)

Creates a widget view with a feedback configuration.

  • style: WidgetStyle
  • size: WidgetSize
  • ctaTitle: Stringoptional
getAnnouncementManager()→ AnnouncementManager

Returns the announcement manager instance.

getBlogService()→ BlogServiceProtocol

Returns the blog service instance.

getContactFormService()→ ContactFormServiceProtocol

Returns the contact form service instance.

getFeedbackService()→ FeedbackServiceProtocol

Returns the feedback service instance.

getHelpService()→ HelpServiceProtocol

Returns the help service instance.

getNotificationManager()→ NotificationManager

Returns the notification manager instance.

getPopupManager()→ PopupManager

Returns the popup manager instance.

getReleasesService()→ ReleasesServiceProtocol

Returns the releases service instance.

getRoadmapService()→ RoadmapServiceProtocol

Returns the roadmap service instance.

getStatusService()→ StatusServiceProtocol

Returns the status service instance.

getSupportService()→ SupportServiceProtocol

Returns the support service instance.

getSurveyService()→ SurveyServiceProtocol

Returns the survey service instance.

getWidgetService()→ WidgetServiceProtocol

Returns the widget service instance.

helpCenterView(configuration:)→ View

Returns a SwiftUI view for displaying the help center.

releasesView(orgSlug:projectSlug:configuration:)→ View

Returns a SwiftUI view for displaying release notes.

  • orgSlug: String
  • projectSlug: String
roadmapView()→ View

Returns a SwiftUI view for displaying the product roadmap.

roadmapWidget(style:size:ctaTitle:ctaAction:)

Creates a widget view with a roadmap configuration.

  • style: WidgetStyle
  • size: WidgetSize
  • ctaTitle: Stringoptional
setUser(userId:email:name:)

Sets the current user context for the SDK.

  • userId: String
  • email: String
showAnnouncements()async

Manually presents announcements to the user.

statusPageView(slug:configuration:onSubscribeCallback:)

Returns a SwiftUI view for displaying a status page.

  • slug: Stringoptional
  • configuration: StatusConfigurationoptional
statusWidget(style:size:slug:ctaTitle:ctaAction:)

Creates a widget view with a status configuration.

  • style: WidgetStyle
  • size: WidgetSize
  • slug: Stringoptional
  • ctaTitle: Stringoptional
supportFormView(formId:)→ View

Returns a SwiftUI view for displaying and submitting a specific support form.

supportView()→ View

Returns a SwiftUI view for displaying and managing support tickets.

surveyView(slug:style:)→ View

Returns a SwiftUI view for displaying and submitting a survey.

  • slug: String
widgetView(configuration:)→ View

Returns a SwiftUI view for displaying a customizable widget.

contactFormViewController(formId:)static→ UIViewController

Returns a UIKit view controller for displaying and submitting a contact form.

feedbackViewController()static→ UIViewController

Returns a UIKit view controller for displaying and managing feedback.

helpCenterViewController()static→ UIViewController

Returns a UIKit view controller for displaying the help center.

releasesViewController(orgSlug:projectSlug:configuration:)static→ UIViewController

Returns a UIKit view controller for displaying release notes.

  • orgSlug: String
  • projectSlug: String
roadmapViewController()static→ UIViewController

Returns a UIKit view controller for displaying the product roadmap.

statusPageViewController(slug:configuration:)static→ UIViewController

Returns a UIKit view controller for displaying a status page.

  • slug: Stringoptional
supportViewController()static→ UIViewController

Returns a UIKit view controller for displaying and managing support tickets.

surveyViewController(slug:)static→ UIViewController

Returns a UIKit view controller for displaying and submitting a survey.

widgetViewController(configuration:)static→ UIViewController

Returns a UIKit view controller for displaying a customizable widget.

Protocol for interacting with survey functionality.

Methods

getSurvey(slug:)async→ Survey
submitResponse(surveyId:_:)async
  • surveyId: String

Protocol for interacting with roadmap functionality.

Methods

getRoadmapColumns()async→ RoadmapColumn
getRoadmapItems()async→ RoadmapItem

Protocol for interacting with help center functionality.

Methods

getArticle(slug:)async→ HelpArticle
getArticles(searchQuery:)async→ HelpArticle
getCollections()async→ HelpCollection
getFlows()async→ HelpFlow

Protocol for interacting with widget-related functionality.

Methods

getWidgetData(type:parameters:)async→ String
  • type: WidgetType

Protocol for interacting with feedback-related functionality.

Methods

addComment(wishId:content:)async→ Comment
  • wishId: String
addVote(wishId:)async→ Vote
createWish(title:description:categoryId:)async→ Wish
  • title: String
  • description: String
getCategories()async→ Category
getComments(wishId:)async→ Comment
getWish(id:)async→ Wish
getWishes(filters:)async→ Wish
removeVote(wishId:)async

Protocol for interacting with blog/resources functionality.

Methods

getBlogCategories()async→ BlogCategory
getBlogPost(slug:)async→ BlogPost
getBlogPosts(filters:)async→ PaginatedBlogPosts
getBlogPostsByCategory(categorySlug:page:perPage:)async→ PaginatedBlogPosts
  • categorySlug: String
  • page: Int
getBlogPostsByTag(tag:page:perPage:)async→ PaginatedBlogPosts
  • tag: String
  • page: Int
getFeaturedBlogPosts()async→ BlogPost
getRelatedBlogPosts(slug:)async→ BlogPost
searchBlogPosts(query:page:perPage:)async→ PaginatedBlogPosts
  • query: String
  • page: Int

Protocol for interacting with releases functionality.

Methods

getRelease(orgSlug:projectSlug:releaseSlug:)async→ Release
  • orgSlug: String
  • projectSlug: String
getReleaseFeatures(releaseId:)async→ ReleaseFeature
getReleases(orgSlug:projectSlug:limit:)async→ Release
  • orgSlug: String
  • projectSlug: String

Protocol for interacting with contact form functionality.

Methods

getForm(formId:)async→ ContactForm
getFormDirect(projectId:formId:)async→ ContactForm
  • projectId: String
getStandaloneForm(formId:)async→ StandaloneFormResponse
submitForm(_:projectId:)async
  • submission: ContactFormSubmission
trackFormView(formId:)async

Protocol for interacting with status page functionality.

Methods

getServices(statusPageId:)async→ StatusPageService
getStatusOverview(projectId:slug:)async→ StatusOverview
  • projectId: String

Protocol for interacting with support ticket functionality.

Methods

addMessage(ticketId:content:attachmentUrls:)async→ SupportMessage
  • ticketId: String
  • content: String
addMessageWithToken(ticketId:token:content:)async→ SupportMessage
  • ticketId: String
  • token: String
createTicket(subject:description:priority:email:attachmentUrls:)async→ SupportTicket
  • subject: String
  • description: String
  • priority: TicketPriority
  • email: String
getMessages(ticketId:)async→ SupportMessage
getMyTickets(email:externalUserId:page:perPage:)async→ SupportTicket
  • email: String
  • externalUserId: String
  • page: Int
getSupportForm(formId:)async→ SupportForm
getSupportForms()async→ SupportForm
getTicket(id:)async→ SupportTicket
getTicketWithToken(ticketId:token:)async→ SupportTicket
  • ticketId: String
getTickets()async→ SupportTicket
sendMagicLink(userEmail:)async→ MagicLinkResponse
submitSupportForm(formId:subject:description:data:userEmail:userName:)async
  • formId: String
  • subject: String
  • description: String
  • data: String
  • userEmail: String
uploadFile(_:fileName:mimeType:)async→ String
  • data: Data
  • fileName: String
verifyMagicLinkToken(_:)async→ MagicLinkVerifyResponse
—