Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Swift/FlickerNumber-Swift/UILabel+FlickerNumber.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,6 @@ extension UILabel {
- parameter attributes: The attributed string set(a dictionary OR array of dictionaries).
*/
public func fn_setNumber(_ number: NSNumber, duration: TimeInterval, format: String?, numberFomatter: NumberFormatter?, attributes: Any?) {
// check the number type
assert(number.isKind(of: NSNumber.self), "Number Type is not matched, exit")
if !number.isKind(of: NSNumber.self) {
text = String(describing: number)
return
}

//limit duration is positive number and it is larger than 0.3
var durationTime : TimeInterval = Swift.max(fabs(duration), 0.3)

Expand Down