Skip to content

expofp/expofp-sdk-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Package Manager compatible CocoaPods Compatible Platform

ExpoFP is a binary package (XCFramework) to show and manage floor plans
Full usage instructions on expofp.github.io

Installation

Swift Package Manager

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"),
    ]
),

CocoaPods

target 'MyApp' do
    pod 'ExpoFP', '~> 5.2.0'
end

Quick Guide

Load a plan

let expoKey = "YourExpoKey"
let presenter = ExpoFpPlan.createPlanPresenter(with: .expoKey(expoKey))

Present in UIKit

let planController = presenter.getViewController()
yourViewController.pushViewController(planController, animated: true)

Present in SwiftUI

var body: some View {
    presenter.getView()
}

Download a plan

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))

Preload a plan

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)

Manage a plan

  • 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

About

IOS SDK

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •