Skip to content

Any Other way to set Min & Max Values #36

@nitinumaretiya123

Description

@nitinumaretiya123

I can't figure out
sliderAge.attributedTextForFraction = { fraction in let formatter = NumberFormatter() formatter.minimum = 18 formatter.maximumIntegerDigits = 3 formatter.maximumFractionDigits = 0 let string = formatter.string(from: (fraction * 80) as NSNumber) ?? "" print("string\(string) , friction\(fraction) , \((fraction * 500))") return NSAttributedString(string: string, attributes: [.font: CalmUtility().setFont(type: .Bold, size: 12), .foregroundColor: UIColor.black]) }
can you please let me know how to set fraction to 18-80 for age range

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions