A minimal SwiftUI app showing Zigpoll surveys presented natively with the Zigpoll iOS SDK.
- In the Zigpoll dashboard, create a survey and set its delivery type to API (Delivery Settings → API).
- Open
ZigpollExample.xcodeprojin Xcode (15+). The SDK resolves automatically via Swift Package Manager. - In
ExampleApp.swift, replace:YOUR_ACCOUNT_ID— your account id (Dashboard → Installation)YOUR_SURVEY_ID— the survey's id
- Run on a simulator or device and tap Trigger survey.
The example uses preview: true, so test responses are not billed or counted in analytics.
Zigpoll.configure/identify/setMetadata/logoutZigpoll.trigger(pollId:)presenting a survey in a native bottom sheet- Lifecycle callbacks:
onLoad,onComplete,onClose,onError
Full guide: https://docs.zigpoll.com/installation/ios-sdk