Guide

How to add an in-app survey to a SwiftUI app

You can build a rating view in SwiftUI in an afternoon. Deciding who sees it, when, how often, and collecting the answers is the real work. Here's how to add surveys that handle all of that.

By the MicroSurveys team · Updated 12 November 2026

The short answer

Add the MicroSurveys package with Swift Package Manager, create one SDK instance when your SwiftUI App starts, and forward events to it, either through the Amplitude plugin or with track() calls from your views. When an event matches a published survey, the SDK presents it natively over whatever's on screen, so you don't add a sheet or an overlay to your view hierarchy. Questions, triggers and styling live in the console and change without an App Store release.

Questions

Ask your first question this week.

Free for 1,000 responses a month per project. No card, no demo call.