Skip to main content

🧱 UI Components (iOS)

The SDK provides two UI modules β€” Nutrition and Training β€” embeddable as UIKit view controllers, SwiftUI views, or tab bar tabs. All navigation uses typed AzeooDestination. Full iOS guide: Navigation.

One-screen overview​

// 1. After connect, navigate anywhere with a typed destination.
sdk.navigate(to: .nutrition(.plan(id: "abc-123")))
sdk.navigate(to: .training(.workouts))
sdk.back()

// 2. Embed a module as a SwiftUI view…
sdk.modules.nutrition.getView(bottomSafeArea: true)

// 3. …or as a UITabBarController tab (with auto tab-switching on cross-module nav).
let nutritionTab = sdk.tabHost(for: .nutrition)
sdk.setModuleContainer(AzeooUITabBarCoordinator(self, mapping: [
.nutrition: 1, .training: 2,
]))
  • Multi-tab hosting β€” The recommended setup for apps with both modules in a UITabBarController or SwiftUI TabView. One shared FlutterViewController, automatic native tab switching.
  • Nutrition Module β€” Full destination catalogue for nutrition (plans, recipes, scanner, search, cart, …).
  • Training Module β€” Full destination catalogue for training (workouts, exercises, progress, schedule).
  • iOS navigation β€” Swift examples, deep links, module containers.
  • Concepts β€” Navigation β€” Architecture and catalogue.
  • Configuration β€” Theme, safe area, deep links.