ExpoFP is a binary package (XCFramework) to show and manage floor plans
Full usage instructions on expofp.github.io
dependencies: [
.package(url: "https://github.com/expofp/expofp-sdk-ios", from: "5.2.0"),
]
and add it to your target’s dependencies
.target(
name: "MyApp",
dependencies: [
.product(name: "ExpoFP", package: "expofp-sdk-ios"),
]
),
target 'MyApp' do
pod 'ExpoFP', '~> 5.2.0'
end
let expoKey = "YourExpoKey"
let presenter = ExpoFpPlan.createPlanPresenter(with: .expoKey(expoKey))
let planController = presenter.getViewController()
yourViewController.pushViewController(planController, animated: true)
var body: some View {
presenter.getView()
}
let expoKey = "YourExpoKey"
let downloadedPlanResult = await ExpoFpPlan.downloader.downloadPlan(withExpoKey: expoKey) // Also awailable with completion
let downloadedPlanInfo = try downloadedPlanResult.get()
let presenter = ExpoFpPlan.createPlanPresenter(with: .downloadedPlanInfo(downloadedPlanInfo))
let expoKey = "YourExpoKey"
let preloadedPlanInfo = ExpoFpPlan.preloader.preloadPlan(with: .expoKey(expoKey))
or
let preloadedPlanInfo = ExpoFpPlan.preloader.preloadPlan(with: .downloadedPlanInfo(downloadedPlanInfo))
let presenter = ExpoFpPlan.preloader.getPreloadedPlanPresenter(with: preloadedPlanInfo)
- Apply additional params, location provider, message listener
- Reload plan with new or previously applied settings
- Monitor loading, initialization and errors via
presenter.planStatusPublisher
- Zoom, select booth or category, build routes, listen events and many more
Feel free to check out our detailed instructions on expofp.github.io