MUPageControl
@IBDesignable
open class MUPageControl : UIControl
Class that act like UIPageControl with more customizable options.
-
The object that acts as the delegate of the page control.
Declaration
Swift
@IBOutlet public weak var delegate: MUPageControlDelegate?
-
The number of pages the receiver shows (as dots).
Declaration
Swift
@IBInspectable open var numberOfPages: Int { get set }
-
The current page, shown by the receiver as a white dot.
Declaration
Swift
@IBInspectable open var currentPage: Int { get set }
-
Optional: You can override pageIndicatorTintColor to have different colors on each dots.
Declaration
Swift
@objc open dynamic var tintColors: [UIColor] { get set }
-
Enable or not the touch to select a page.
Declaration
Swift
@IBInspectable open dynamic var enableTouchEvents: Bool { get set }
-
Define the size of each dots.
Declaration
Swift
@IBInspectable open dynamic var elementSize: CGSize { get set }
-
Define the width of the active dot.
Declaration
Swift
@IBInspectable open dynamic var activeElementWidth: CGFloat { get set }
-
Define the padding between each dots.
Declaration
Swift
@IBInspectable open dynamic var padding: CGFloat { get set }
-
Define the radius of the active dot.
Declaration
Swift
@IBInspectable open dynamic var radius: CGFloat { get set }
-
A Boolean value that controls whether the page control is hidden when there is only one page.
Declaration
Swift
@IBInspectable open dynamic var hidesForSinglePage: Bool { get set }
-
The inactive dot’s border width.
Declaration
Swift
@IBInspectable open dynamic var borderWidth: CGFloat { get set }
-
The inactive dot’s border color.
Declaration
Swift
@IBInspectable open dynamic var borderColor: UIColor { get set }
-
The tint color to be used for the current page indicator.
Declaration
Swift
@IBInspectable open dynamic var currentPageIndicatorTintColor: UIColor? { get set }
-
The tint color to be used for the page indicator.
Declaration
Swift
@IBInspectable open dynamic var pageIndicatorTintColor: UIColor? { get set }
-
Describes the margin around the page control.
Declaration
Swift
@IBInspectable open dynamic var horizontalMargin: CGFloat { get set }
-
Define the current page index, animated or not.
Declaration
Swift
open func set(page: Int, animated: Bool = false)
-
Initializes and returns a newly allocated view object with the specified frame rectangle.
Declaration
Swift
override public init(frame: CGRect)
-
Returns an object initialized from data in a given unarchiver.
Declaration
Swift
required public init?(coder aDecoder: NSCoder)
-
Initializes and returns a newly allocated view object with a zero frame rectangle.
Declaration
Swift
public convenience init()
-
Lays out subviews.
Declaration
Swift
override open func layoutSubviews()
-
The natural size for the receiving view, considering only properties of the view itself.
Declaration
Swift
override open var intrinsicContentSize: CGSize { get }
-
Asks the view to calculate and return the size that best fits the specified size.
Declaration
Swift
override open func sizeThatFits(_ size: CGSize) -> CGSize
-
Deinit the page control.
Declaration
Swift
deinit