Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 262 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 262 Bytes

NSTimerClosureExtention

It's a native swift extension for NSTimer that allows a timer to call a closure every 'x' seconds

#Usage

NSTimer.scheduledTimerWithTimeInterval(3){ (timer) in
            print("tick:")
            timer.invalidate()
        }