Created
August 29, 2019 12:30
-
-
Save agiguere/4c0af20c80e5242bd00e02b70167ec4a to your computer and use it in GitHub Desktop.
SAP Fiori for iOS SDK Code Snippet: ApplicationOnboardingSession
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import SAPFioriFlows | |
class ApplicationOnboardingSession: OnboardingSession { | |
var odataController: OnlineODataController | |
required init(flow: OnboardingFlow) { | |
guard let step = flow.steps.first(where: { $0 is ODataOnboardingStep }) as? ODataOnboardingStep, let odataController = step.controller else { | |
fatalError("Reaching this point is a critical developer error. A successful run must contain an OData step which has a controller") | |
} | |
self.odataController = odataController | |
super.init(flow: flow) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment