Sparkling SDK - iOS
This page documents the native iOS SDK APIs for hosting Sparkling content.
For the hybrid://... URL format, see Scheme.
Dependency (CocoaPods)
Initialization (App startup)
The template app registers services and executes boot tasks during startup:
Notes:
SPKServiceRegisteris typically defined in your app target (see the template undertemplate/sparkling-app-template/ios/.../MethodServices/SPKServiceRegistrar.swift).
Open a page (router)
Embed a container view
Customize loading/error/navigation/theme
Use SPKContext to customize container behavior, for example:
- loading/error view builders (
loadingViewBuilder,failedViewBuilder) - navigation bar (
naviBar) - theme (
appTheme) - lifecycle callbacks (
containerLifecycleDelegate)

