- Open the main project or workspace in Xcode.
- Go to
File > Add Packages.... - Enter the URL for this repository (https://github.com/Calindra/eitri-ios-age-verification) when prompted.
- Ensure the
EitriAgeVerificationproduct is added to the main target.
To use this module some configurations are needed.
Add the Declared Age Range (com.apple.developer.declared-age-range) capability to your project's target.
import EitriAgeVerification
// [...]
let eitriMachineContext = EitriMachineInstanceManager.start()
// get main eitri-machine instance
let mainEitriMachine = eitriMachineContext.mainMachine
// configure
mainEitriMachine.configure(
// configure params
)
//register modules
mainEitriMachine.modules.register(module: AgeVerificationModule())