Skip to content

AppGram/apple-sdk-example-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AppGram iOS SDK Example App

A complete example app demonstrating how to integrate the AppGram iOS SDK into your iOS application.

Getting Started

1. Clone the Repository

git clone https://github.com/AppGram/apple-sdk-example-app.git
cd apple-sdk-example-app

2. Open in Xcode

open AGSandbox.xcodeproj

3. Configure Your Project

Update AGSandboxApp.swift with your AppGram credentials:

AppGramSDK.shared.configure(
    projectId: "your-project-id",
    apiKey: "your-api-key"
)

4. Run

Select a simulator or device and run the app.

Examples Included

Example File Description
Complete App CompleteExampleApp.swift Full-featured example with all SDK features
Feedback FeedbackExample.swift Feature requests and voting
Support SupportExample.swift Support ticket management
Help Center HelpCenterExample.swift Help articles and flows
Roadmap RoadmapExample.swift Product roadmap display
Survey SurveyExample.swift User surveys
Contact Form ContactFormExample.swift Contact forms
Blog BlogExample.swift Blog posts
UIKit UIKitExamples.swift UIKit integration

Project Structure

AGSandbox/
├── AGSandboxApp.swift      # App entry point with SDK configuration
├── ContentView.swift       # Main view
├── Examples/               # Feature examples
│   ├── FeedbackExample.swift
│   ├── SupportExample.swift
│   ├── HelpCenterExample.swift
│   └── ...
└── Style/
    └── AppGramStudioTheme.swift  # Custom theme example

Custom Theme Example

See Style/AppGramStudioTheme.swift for how to create a custom theme:

import AppGramSDK

struct AppGramStudioTheme {
    static let theme = AppGramTheme(
        colors: ColorPalette(
            primary: .blue,
            secondary: .purple,
            // ... customize colors
        )
    )
}

Using Pre-built Views

import AppGramSDK

struct MyView: View {
    var body: some View {
        NavigationStack {
            List {
                NavigationLink("Feedback") {
                    try? AppGramSDK.shared.feedbackView()
                }
                NavigationLink("Support") {
                    try? AppGramSDK.shared.supportView()
                }
            }
        }
    }
}

Building Custom UI with Services

import AppGramSDK

struct CustomFeedbackView: View {
    @State private var wishes: [Wish] = []

    var body: some View {
        List(wishes) { wish in
            Text(wish.title)
        }
        .task {
            let service = try? AppGramSDK.shared.getFeedbackService()
            wishes = (try? await service?.getWishes()) ?? []
        }
    }
}

Requirements

  • iOS 17.0+
  • Xcode 15.0+
  • Swift 5.9+

Resources

License

Copyright 2026 AppGram. All rights reserved.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages