FlaneurImagePickerController

final public class FlaneurImagePickerController: UIViewController

An Image Picker that allows users to pick images from different sources (ex: user’s library, user’s camera, instagram …)

  • The navigation bar of the view controller.

    Declaration

    Swift

    public let navigationBar: UINavigationBar =
  • viewDidLoad Lifecyle callback

    Declaration

    Swift

    override public func viewDidLoad()
  • Notifies the view controller that its view is about to be added to a view hierarchy.

    Declaration

    Swift

    override public func viewWillAppear(_ animated: Bool)

    Parameters

    animated

    If true, the view is being added to the window using an animation.

  • Notifies the view controller that its view was added to a view hierarchy.

    Declaration

    Swift

    override public func viewDidAppear(_ animated: Bool)

    Parameters

    animated

    If true, the view was added to the window using an animation.

  • viewDidLayoutSubviews Lifecyle callback

    Declaration

    Swift

    override public func viewDidLayoutSubviews()
  • A DataSource method used to feed the collection with data for a particular list adapter

    Declaration

    Swift

    public func objects(for listAdapter: ListAdapter) -> [ListDiffable]

    Parameters

    listAdapter

    The adapter asking for the data

    Return Value

    An array of ListDiffable data

  • A DataSource method used to associate a section controller to object of an adapter

    Declaration

    Swift

    public func listAdapter(_ listAdapter: ListAdapter, sectionControllerFor object: Any) -> ListSectionController

    Parameters

    listAdapter

    The adapter asking for the section controller

    object

    The current object to be associated with a section controller

    Return Value

    The section controller for the object

  • A DataSource method used to show an empty view in the collection when data for an adapter are empty.

    Declaration

    Swift

    public func emptyView(for listAdapter: ListAdapter) -> UIView?

    Parameters

    listAdapter

    The adapter asking for the empty view.

    Return Value

    A custom empty view of type UIView.