Aug 30, 2021 swiftui

How Can we implement Pull to refresh in SwiftUI

Pull to Refresh in SwiftUI Earlier in storyboard we were used to UIRefreshControl() which was using this observer we would load the tableview by calling the tableViewreloadata() let refreshControl = UIRefreshControl() override func viewDidLoad() {    super.viewDidLoad()    refreshControl.attributedTitle =…