ApphudUIDelegate.swift
class to improve rule’s experience in your project: Include some functions:func apphudShouldPerformRule
-> You can return false to ignore this rule. You should only do this if you want to handle your rules by yourself. A default implementation is true.func apphudShouldShowScreen
→ you can return false to this delegate method if you want to delay the Apphud Screen presentation. The controller will be kept in memory until you present it via the Apphud.showPendingScreen()
method. If you don't want to show the screen at all, you should check the apphudShouldPerformRule
delegate method.func apphudScreenPresentationStyle
→ Pass your own modal presentation style to Apphud Screens. This is useful since iOS 13 presents in page sheet style by default. To get full screen style you should pass .fullScreen
or .overFullScreen
.func apphudScreenDidAppear
→ Called when screen successfully loaded and is visible to the user.func apphudDidDismissScreen/apphudScreenWillDismiss
→ Notifies that Apphud Screen did dismiss/is about to dismiss.