FlaneurImagePickerConfig
public class FlaneurImagePickerConfig
An object used to set all the configurations relative to the FlaneurImagePicker
-
Changes the order of the imageSources shown in the .imageSources section
Declaration
Swift
public var imageSourcesArray: [FlaneurImageSource] = [
-
Title displayed for the image source selection button.
If
nil
andimageForImageSource
is alsonil
, it defaults toFlaneurImageSource.rawValue
.Declaration
Swift
public var titleForImageSource: ((FlaneurImageSource) -> (String?)) = { imageSource in
-
Image displayed for the image source selection button.
Declaration
Swift
public var imageForImageSource: ((FlaneurImageSource) -> (UIImage?)) = { _ in
-
Title color for the image source selection buttons.
Defaults to
.blue
.Declaration
Swift
public var imageSourcesTitleColor: UIColor = .blue
-
Background color for the image source selection buttons.
Defaults to
.white
.Declaration
Swift
public var imageSourcesBackgroundColor: UIColor = .white
-
Background color for a specific collectionView in a section.
Defaults to
.gray
.Declaration
Swift
public var backgroundColorForSection: ((FlaneurImagePickerSection) -> (UIColor)) = { _ in
-
Color of the not selected dots of the pageControl
Declaration
Swift
public var pageControlTintColor: UIColor = .black
-
Color of the currently selected dot of the pageControl
Declaration
Swift
public var pageControlCurrentIndexColor: UIColor = .white
-
Size of each thumbnail image shown in the .pickerView section, defaults to 1:4 of the screen’s width
Declaration
Swift
public var sizeForImagesPickerView: ((CGSize) -> (CGSize)) = { collectionContextSize in
-
Padding for each image shown in the .pickerView section, defaults to 0
Declaration
Swift
public var paddingForImagesPickerView: UIEdgeInsets?
-
Size of each image source’s cell shown in the .imageSources section, defaults to the screen’s width divided by the total number of image sources so that the width of the screen can contain them all
Declaration
Swift
public var imageSourcesCellWidth: CGFloat?
-
Content Mode for images in the .selectedImages section, defaults to .scaleAspectFill
Declaration
Swift
public var selectedImagesContentMode: UIViewContentMode = .scaleAspectFill
-
Changes the order of the sections shown on the screen
Declaration
Swift
public var sectionsOrderArray: [FlaneurImagePickerSection] = [
-
Class of the custom view to use for authorization view.
IMPORTANT
Your class must conform to the FlaneurAuthorizationView’s Protocol
Declaration
Swift
public var authorizationViewCustomClass: UIView.Type?