You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: