In-app surveys for iOS, native in SwiftUI

WhiskrKit is a Swift package that shows short surveys inside your iOS app. The surveys are real SwiftUI views, so they look like part of your app: your fonts, your colors, Dynamic Type, VoiceOver and dark mode included. You write the questions and decide who sees them in the dashboard, and change them without shipping an app update.

An iPhone showing a WhiskrKit star-rating survey asking "How do you like the new trip planner?", styled in the app's teal and cream colors
A WhiskrKit survey, rendered as native SwiftUI inside an iPhone app.

One modifier, one survey

Add .whiskrKitSurvey(identifier:) to the screen where the survey belongs. That's the integration.

Swift
struct HomeView: View {
    var body: some View {
        TripList()
            .whiskrKitSurvey(identifier: "trip-planner-nps")
    }
}
An iPhone showing an NPS survey from 0 to 10 asking "How likely are you to recommend this app to a friend?", presented over a trip list
The survey this modifier produces.

WhiskrKit checks the targeting rules you set in the dashboard, like "after 5 sessions" or "for 20% of users", and only presents the survey when the user qualifies. Apart from initializing once at launch, there's nothing else to wire up.

Five question types, and when to use each

The right question type depends on what you want to learn. A rough guide:

Question typeBest forExample
Thumbs up/downA quick check right after an action"Was this route suggestion useful?"
Star ratingSatisfaction with one specific feature"How do you like the new trip planner?"
NPS (0 to 10)Loyalty over time, after real usage"How likely are you to recommend this app to a friend?"
Multiple choiceSorting users or picking priorities"What should we build next?"
Free textThe why behind a score"What's the one thing we should improve?"

A score tells you that something is off; a free-text follow-up tells you what. Pairing an NPS or star question with one optional text field is often all you need.

Three presentation styles

How a survey appears matters as much as what it asks. You set the style per survey in the dashboard.

StyleWhat it doesUse it for
ToastA small card at the bottom; the app stays usableOne quick question after an action
SheetA bottom sheet the user can swipe awayTwo or three questions at a natural pause
Full screenTakes over the screenLonger surveys the user chose to open, like from a "Give feedback" button
An iPhone showing the question "Was this route suggestion useful?" as a small toast card at the bottom of the screenAn iPhone showing the question "Was this route suggestion useful?" as a bottom sheetAn iPhone showing the same question as a full-screen form, with a free-text follow-up asking what to improve
The same question as a toast, a sheet and a full-screen form, which has room for a follow-up.

Three ways to trigger a survey

You decide how much control you want over the timing, and how much over who gets asked.

MethodYou decide whenDashboard decides whoGood for
.whiskrKitSurvey(identifier:)NoYesSurveys tied to a screen
checkAndPresent(surveyId:)YesYesRight after a flow finishes
present(surveyId:)YesNoFeedback buttons, push notifications

The middle option is the one most apps end up using most. The moment is yours, but the targeting and repeat rules still apply:

Swift
.sheet(isPresented: $showingCheckout, onDismiss: {
    WhiskrKit.shared.checkAndPresent(surveyId: "checkout-feedback")
}) {
    CheckoutView()
}

For a "Give feedback" button, present(surveyId:) shows the survey straight away. It also works from a push notification handler, so you can invite users to a survey with a notification.

Works in UIKit and hybrid apps too

Not every app is SwiftUI end to end. In a UIKit app, register your window once and the whole API works the same:

Swift
WhiskrKit.shared.initialize(apiKey: "your-api-key")
WhiskrKit.shared.attach(to: window)

Surveys appear in a transparent overlay above your window. While no survey is showing, every touch passes straight through to your app. This is also how WhiskrKit runs inside React Native and Flutter apps; see the React Native and Flutter docs.

Make it look like your app

A survey that looks like a third-party popup gets dismissed. WhiskrKit takes your design instead:

  • Text styles: your fonts and colors for title, subtitle, headline, subheadline and body.
  • Buttons: a primary and a secondary style.
  • Containers: separate styling for toasts, sheets and full-screen surveys.
Swift
WhiskrKit.shared.setTheme(myTheme)

No time to set up a theme? The built-in systemStyle preset follows Apple's system look and works in light and dark mode.

Theming is part of the native iOS API. The React Native and Flutter wrappers don't expose it.

One thing you can't change: the answer controls themselves. That's on purpose. It keeps contrast and tap targets accessible, whatever brand colors you choose.

Accessible by default

Every survey supports VoiceOver and Dynamic Type, all the way up to the largest text sizes. Give WhiskrKit adaptive colors and fonts, and dark mode and text scaling just work. The built-in labels, like the buttons to submit or skip, come translated into Dutch, German, French, Spanish, Italian, Portuguese (Brazil), Japanese, Korean and Simplified Chinese, and subtle haptics confirm each answer.

An iPhone in dark mode showing the trip planner star-rating survey at the default text sizeThe same survey in dark mode at a very large accessibility text size, with the text wrapped over more lines
The same survey at the default text size and at a very large accessibility text size, in dark mode.

Built for iPad, not stretched to it

On iPad, a full-width bottom sheet looks out of place. On regular-width screens, WhiskrKit shows sheet surveys as a floating panel and can anchor toasts to a corner. Your app stays usable behind them. On iPhone, Slide Over and narrow Split View, surveys fall back to the familiar bottom presentation, and the layout updates live as windows resize.

You choose where surveys sit, because only you know which edges of your layout are free:

Swift
WhiskrKit.configure {
    $0.defaultSheetPlacement = .trailing
}
An iPad in landscape with a WhiskrKit survey shown as a floating panel in the bottom-trailing corner
On iPad, sheet surveys float in a corner while the app stays usable.

How to ask for feedback without annoying your users

Most in-app surveys fail because of timing, not because of the questions. Whatever tool you use, these habits make the difference:

  1. Don't ask on launch. Someone who just opened your app wants to do something. Wait until they've used it, say a few sessions in, before asking how they like it.
  2. Never interrupt a task. Ask right after something is done: a booking confirmed, a workout saved, a sheet closed. That's what checkAndPresent is for.
  3. Ask one question. One question with an optional text field gets far more answers than five questions. Save longer surveys for users who opt in.
  4. Ask a sample, not everyone. Showing a survey to 10 to 20% of users is usually enough for a clear picture, and leaves the rest alone.
  5. Don't ask the same person again soon. Set a repeat policy so someone who answered, or dismissed, isn't asked again next week.
  6. Keep ratings and surveys apart. For App Store ratings, use Apple's own review prompt. Use surveys to learn what to improve, not to steer happy users to the App Store.
  7. Close the loop. When feedback leads to a change, mention it in your release notes. Users who see their answers matter answer again.

WhiskrKit's targeting rules (session counts, time intervals, audience percentage and repeat policy) are built around these habits, so the polite way is also the default.

Try it before you integrate it

The SDK repository includes the WhiskrKit Playground, a small app that runs without an account, API key or backend. Nothing is sent anywhere. On one screen you can:

  • present every question type and presentation style,
  • try theme presets or change single colors,
  • copy the matching setTheme code into your own app.

Open Examples/WhiskrKitPlayground in the repository and press Run.

The WhiskrKit Playground app on an iPhone, listing question types, presentation styles and theme presets
The WhiskrKit Playground: present any question type or style, and try theme presets.

Your users' answers stay in the EU

WhiskrKit is built and hosted in Europe. Survey responses are stored on servers in the EU, on encrypted storage. A data processing agreement (DPA) is available for every customer, and WhiskrKit never uses responses to train AI models. Read more on the privacy page.

Requirements

  • iOS 17 and iPadOS 17 or later
  • SwiftUI or UIKit
  • Swift Package Manager

Installation

In Xcode, choose File › Add Package Dependencies and enter:

Package URL
https://github.com/WhiskrKit/WhiskrKit-Swift

Or add it to Package.swift:

Package.swift
.package(url: "https://github.com/WhiskrKit/WhiskrKit-Swift", from: "0.2.0")

Then initialize once at launch with the API key from your dashboard:

Swift
@main
struct MyApp: App {
    init() {
        WhiskrKit.shared.initialize(apiKey: "your-api-key")
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
                .whiskrKit()
        }
    }
}

The SDK is open source under the MIT license.

FAQ

Common questions about the WhiskrKit iOS SDK.

Yes. Call attach(to:) with your window once, and the rest of the API works exactly as in SwiftUI.

iOS 17 and iPadOS 17 or later.

Yes. The Playground app in the repository uses mocked surveys, so you need no API key and nothing is sent anywhere.

No. Questions, presentation style and targeting live in the dashboard. You only touch code to add a new place where a survey can appear.

Yes. Pass the survey ID in the notification's payload and call present(surveyId:) when the user taps it.

Nothing visible. With no network, an unknown survey ID or a wrong API key, the survey simply doesn't appear, and your app carries on. Details show up in Console.app under the eu.WhiskrKit.iosFramework subsystem.

Yes, with layouts made for large screens: floating panels and corner-anchored toasts, which adapt as windows resize.

On servers in the EU, on encrypted storage. See the privacy page.

Yes. Both wrappers use this same native SDK on iOS, so your surveys stay native SwiftUI. The wrappers don't expose the theming API. See the React Native and Flutter docs.

Yes. The Android SDK talks to the same backend and uses the same survey templates. See the Android page.

There's a free plan with 100 responses a month, and paid plans start at €29 a month, excluding VAT. During the beta every account gets the Growth limits for free until 2 April 2027. See pricing.

Hear from your users, inside your app

Add WhiskrKit with one Swift package and your first survey can be live today.