SplashScreen
struct SplashScreen : View
A view representing the splash screen of the app.
-
Variable for initialization status
Declaration
Swift
@State var initialized: Bool { get nonmutating set }
-
Variable for loading status
Declaration
Swift
@State var isLoading: Bool { get nonmutating set }
-
Closure for SDK init success
Declaration
Swift
var onSuccess: () -> Void
-
Closure for SDK init failure
Declaration
Swift
var onFailure: (ErrorType) -> Void
-
Declaration
Swift
var body: some View { get }
-
Sets up SDK initialization and handles potential errors.
Declaration
Swift
func setUpSdkInit()
-
Handle SDK error.
Declaration
Swift
private func handleSdkError(_ error: Error)
Parameters
error
The error that occurred.
-
Handle initialization failure.
Declaration
Swift
private func handleInitializationFailure(with error: Error)
Parameters
error
The error that occurred during initialization.