- 18 Mar 2023
- 1 Minute to read
- DarkLight
Pay Monthly Information Modal
- Updated on 18 Mar 2023
- 1 Minute to read
- DarkLight
Pay Monthly Information Modal
As a means of explaining Pay Monthly pricing, and for regulatory purposes, Uplift provides a dynamic information modal ("info modal," for short) that is displayed whenever a visible Pay Monthly Message is tapped.
The modal itself is a UIViewController
which will be presented based on the configuration of the PMMessage
.
To avoid modal display conflicts, Partners are urged to not add other view controller presentations to the PMMessages
, as this will interfere with the opening of the Pay Monthly Information Modal. Only one modal can be displayed at a time, so when another modal is displayed, the previous modal will be closed.
For legal reasons, anywhere a Pay Monthly price is displayed, it is essential to provide a full explanation of the terms of the loan. For this reason, the fully compliant info modal be enabled.
Pay Monthly Information Modal Life Cycle Delegates
If you want to be notified about the life cycle of the presented Pay Monthly Information Modal, you need to set a delegate object to its button. Your delegate needs to conform ULPMMessageDelegate
protocol.
Your delegate can receive notifications:
- before the modal appears:
payMonthlyModal(_ modalViewController: UIViewController, willAppearWith message: ULPMMessage)
- after the modal appeared:
payMonthlyModal(_ modalViewController: UIViewController, didAppearWith message: ULPMMessage)
- when the modal loaded its content:
payMonthlyModal(_ modalViewController: UIViewController, didLoadContentFor message: ULPMMessage)
- before the modal disappears:
payMonthlyModal(_ modalViewController: UIViewController, willDismissWith message: ULPMMessage)
- after the modal disappeared:
payMonthlyModal(_ modalViewController: UIViewController, didDismissWith message: ULPMMessage)
- when an error is happened within the modal:
payMonthlyMessage(_ message: ULPMMessage, didFailWith error: Error)