This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
extension View { | |
/// Adds a modifier for this view that fires an action only when a time interval in | |
/// DispatchTimeInterval represented by `timeInterval` elapses between value changes. | |
/// | |
/// Each time the value changes before `timeInterval` passes, the previous action will | |
/// be cancelled and the next action will be scheduled to run after that time passes | |
/// again. This mean that the action will only execute after changes to the value stay |