This file contains hidden or 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 | |
struct PullToRefreshView: View | |
{ | |
private static let minRefreshTimeInterval = TimeInterval(0.2) | |
private static let triggerHeight = CGFloat(100) | |
private static let indicatorHeight = CGFloat(100) | |
private static let fullHeight = triggerHeight + indicatorHeight | |
let backgroundColor: Color |