DisplayingFloret
public protocol DisplayingFloret : Floret
A DisplayingFloret provides a ViewController for settings or to display any information.
-
This function is called whenever the Cauli UI will be displayed. If a Floret needs any UI for configuration or to display data you can return a ViewController here.
The default implementation returns nil.
Declaration
Swift
func viewController(_ cauli: Cauli) -> UIViewControllerParameters
cauliThe Cauli instance this floret will be displayed in. Use this instance to access the storage for example.
Return Value
Return a Floret specific ViewController or
nilif there is none.
View on GitHub
DisplayingFloret Protocol Reference