MUDateSlider
@IBDesignable
public class MUDateSlider : MUNibView
Class that act like an horizontal slider with date components.
-
The object that acts as the delegate of the date slider.
Declaration
Swift
@IBOutlet public weak var delegate: MUDateSliderDelegate?
-
selected date when picker is displayed, default to current date
Declaration
Swift
public private(set) var selectedIndex: Int? { get }
-
Define the date day text font.
Declaration
Swift
@objc open dynamic var dayFont: UIFont { get set }
-
Define the date day selected color.
Declaration
Swift
@IBInspectable open dynamic var selectedDayColor: UIColor { get set }
-
Define the date day unselected color.
Declaration
Swift
@IBInspectable open dynamic var unselectedDayColor: UIColor { get set }
-
Define the date number text font.
Declaration
Swift
@objc open dynamic var numberFont: UIFont { get set }
-
Define the date number selected color.
Declaration
Swift
@IBInspectable open dynamic var selectedNumberColor: UIColor { get set }
-
Define the date number unselected color.
Declaration
Swift
@IBInspectable open dynamic var unselectedNumberColor: UIColor { get set }
-
Define the date month text font.
Declaration
Swift
@objc open dynamic var monthFont: UIFont { get set }
-
Define the date month selected color.
Declaration
Swift
@IBInspectable open dynamic var selectedMonthColor: UIColor { get set }
-
Define the date month unselected color.
Declaration
Swift
@IBInspectable open dynamic var unselectedMonthColor: UIColor { get set }
-
Define the date card corner radius.
Declaration
Swift
@IBInspectable open dynamic var radius: CGFloat { get set }
-
Define the date card selected border color.
Declaration
Swift
@IBInspectable open dynamic var selectedBorderColor: UIColor { get set }
-
Define the date card unselected border color.
Declaration
Swift
@IBInspectable open dynamic var unselectedBorderColor: UIColor { get set }
-
Define the date card selected border width.
Declaration
Swift
@IBInspectable open dynamic var selectedBorderWidth: CGFloat { get set }
-
Define the date card unselected border width.
Declaration
Swift
@IBInspectable open dynamic var unselectedBorderWidth: CGFloat { get set }
-
Define the date card selected background color.
Declaration
Swift
@IBInspectable open dynamic var selectedBackgroundColor: UIColor { get set }
-
Define the date card unselected background color.
Declaration
Swift
@IBInspectable open dynamic var unselectedBackgroundColor: UIColor { get set }
-
Define the selected marker color.
Declaration
Swift
@IBInspectable open dynamic var selectedMarkerColor: UIColor { get set }
-
Define the unselected marker color.
Declaration
Swift
@IBInspectable open dynamic var unselectedMarkerColor: UIColor { get set }
-
Define the marker line height.
Declaration
Swift
@IBInspectable open dynamic var markerLineHeight: CGFloat { get set }
-
Define the minimum slider date. Default is current date.
Declaration
Swift
@objc open dynamic var minimumDate: Date { get set }
-
Define the maximum slider date. Default is current date.
Declaration
Swift
@objc open dynamic var maximumDate: Date { get set }
-
Select today date.
Declaration
Swift
public func today()
-
Select item date at given index.
Declaration
Swift
public func select(index: Int)
-
Default setup to load the view from a xib file.
Declaration
Swift
public override func xibSetup()
-
The natural size for the receiving view, considering only properties of the view itself.
Declaration
Swift
open override var intrinsicContentSize: CGSize { get }
-
Returns the number of section.
Declaration
Swift
public func numberOfSections(in collectionView: UICollectionView) -> Int
-
Returns the number of item in section.
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int
-
The cell that is returned must be retrieved from a call to -dequeueReusableCellWithReuseIdentifier:forIndexPath:
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell
-
Collection view will display cell delegate.
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, willDisplay cell: UICollectionViewCell, forItemAt indexPath: IndexPath)
-
Collection view did select item at index path.
Declaration
Swift
public func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath)