Skip to main content
Coming SoonThe Whop iOS SDK is currently in development. These docs are a preview of what’s coming.
Use the Whop iOS SDK to embed chat, collect payments and/or payout users directly inside your app.

Basic Usage

Configure the SDK with your token provider, then use the chat:
import Whop

Whop.configure(
    appID: "app_xxxxxxxxxxxxxx",
    tokenProvider: {
        try await fetchWhopToken()
    }
)

struct ChatView: View {
    var body: some View {
        WhopChatView(channelID: "channel_xxxxxxxxxxxxxx")
    }
}

Get started

Requirements

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