mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Animations improvements
This commit is contained in:
7
Shared/Delay.swift
Normal file
7
Shared/Delay.swift
Normal file
@@ -0,0 +1,7 @@
|
||||
import Foundation
|
||||
|
||||
struct Delay {
|
||||
@discardableResult static func by(_ interval: TimeInterval, block: @escaping () -> Void) -> Timer {
|
||||
Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { _ in block() }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user