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) -> UIViewController

    Parameters

    cauli

    The 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 nil if there is none.