This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class NexorPageControl: UIPageControl { | |
fileprivate let activeDotFrame = CGRect(origin: .zero, size: CGSize(width: 21, height: 7)) | |
fileprivate let inactiveDotFrame = CGRect(origin: .zero, size: CGSize(width: 7, height: 7)) | |
fileprivate let dotPadding: CGFloat = 9 //default is 9 | |
lazy var activeImage: UIImage = { | |
let view = UIView(frame: self.activeDotFrame) |