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 =
-
The object that acts as the delegate of the picker view.
Declaration
Swift
open weak var delegate: FlaneurImagePickerControllerDelegate?
-
Contains all the Image Picker’s configurations, you can override those configs by setting their public properties from inside that object
Declaration
Swift
open var config: FlaneurImagePickerConfig = FlaneurImagePickerConfig()
-
Init
Declaration
Swift
public init(userInfo: Any?, sourcesDelegate: [FlaneurImageSource], selectedImages: [FlaneurImageDescriptor])
Parameters
userInfo
Arbitrary data
sourcesDelegate
Array of image sources, aka: FlaneurImageSource
selectedImages
An array of already selected images
-
A required init
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
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.