Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ios/Classes/Bridge/StartStudioBridge.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ struct StartStudioBridge: BaseBridge {
}
})

getFlutterViewController()?.present(try onfidoFlow.run(), animated: true)
let vc = getFlutterViewController()
var modalPresentationStyle: UIModalPresentationStyle = .fullScreen
guard vc != nil else {
result(FlutterError(code: "exit", message: "getFlutterViewController returned nil", details: nil))
return
}
try onfidoFlow.run(from: vc!, presentationStyle: modalPresentationStyle)
} catch {
result(FlutterError(code: "configuration", message: error.localizedDescription, details: "\(error)"))
}
Expand Down