π§± 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,
]))
What to read nextβ
- Multi-tab hosting β The recommended setup for apps with both modules in a
UITabBarControlleror SwiftUITabView. 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.