-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels