ViColorPickerModalViewController
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
Color picker view controller Present colors in a grid (collection view). Implement ViColorPickerDelegate to receive notification for selected color List of colors are configurable
-
list of color strings in hex format e.g. #123456 or 123456. The hex is optional
Declaration
Swift
open var colorList: [String] = [] -
current selector color.. will be indicated with a tick
Declaration
Swift
open var selectedColor : String? = nil -
built in collection view
Declaration
Swift
public var collectionView : UICollectionView? -
collection view layout
Declaration
Swift
public var collectionViewLayout: UICollectionViewLayout -
title label
Declaration
Swift
public var titleLabel : UILabel? -
show/hide title
Declaration
Swift
public var showTitleHeader: Bool = true -
delegate notify when a color is picked
Declaration
Swift
public weak var delegate: ViColorPickerDelegate? -
size for a color item. Default to 44 x 44
Declaration
Swift
public var itemSize: CGSize = CGSize(width: 44, height: 44) -
spacing between items on same row.. item size may need to be re-calculated if this change
Declaration
Swift
public var itemSpacing : CGFloat = 4.0 -
background color
Declaration
Swift
public var backgroundColor : UIColor = UIColor.white -
left padding
Declaration
Swift
public var paddingLeft: CGFloat = 0 -
right padding
Declaration
Swift
public var paddingRight: CGFloat = 0 -
show/hide Power by Visenze logo
Declaration
Swift
public var showPowerByViSenze : Bool = true
-
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
-
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
-
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
-
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
-
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout -
Undocumented
Declaration
Swift
open class ViColorPickerModalViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
View on GitHub
ViColorPickerModalViewController Class Reference