 import UIKit
 
 @IBDesignable public class NumericPicker: UIControl {
-    
+
     // MARK: - Properties
     override public var intrinsicContentSize: CGSize {
         return picker.bounds.size

            updatePicker()
        }
    }
    
    /// Number of digits to display to the right of the decimal separator
    @IBInspectable public var fractionDigits: Int = 0 {
        didSet {

        nf.maximumFractionDigits = fractionDigits
        nf.numberStyle = .decimal
        nf.usesGroupingSeparator = true

        let stringValue = nf.string(from: NSNumber(value: value))
        return stringValue ?? nf.string(from: 0)!
    }

    func updatePicker() {
        picker.reloadAllComponents()
        var index = 0

        for char in componentsString.characters {
            // Row is the numeric value of the digit string, or zero for separators
            let row = Int(String(char)) ?? 0
