Visitor iOS

May 6, 2026 ยท View on GitHub

Visitor iOS is the native SwiftUI implementation of the Bytedesk visitor demo. It follows the same Home, Messages, and Profile flow as Visitor UniApp.

Features

  • Native SwiftUI three-tab visitor demo.
  • Home tab opens plain chat, goods chat, and order chat scenes directly.
  • Messages tab requests visitor threads from the online API and opens the selected conversation.
  • Profile tab switches between preset demo users.
  • Chat content is displayed with WKWebView.

Default Online Endpoints

Main Files

  • visitoriOS/ContentView.swift: tab layout, API loading, chat navigation
  • visitoriOS/visitoriOSApp.swift: app entry
  • visitoriOS/Info.plist: ATS configuration for web content

Requirements

  • Xcode 16 or later
  • iOS Simulator or an iPhone device

How To Run

  1. Open frontend/apps/visitoriOS/visitoriOS.xcodeproj in Xcode.
  2. Select the visitoriOS scheme.
  3. Run on a simulator or device.

For command-line validation you can use:

cd frontend/apps/visitoriOS
xcodebuild -project visitoriOS.xcodeproj -scheme visitoriOS -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO build

How To Use

  1. Open Home and tap a scene card to enter the chat page.
  2. Open Messages to fetch visitor threads from the online API.
  3. Tap any thread to continue the conversation.
  4. Open Profile to switch the current demo visitor.

Notes

  • The app uses online endpoints by default.
  • NSAppTransportSecurity is enabled for the embedded web chat experience.