yattee/Vendor/RefreshControl/Extensions/UIResponder+Extensions.swift
Arkadiusz Fal 94915b0496 Revert "Drop iOS 14 and macOS 11 support"
This reverts commit dcef7f47ff5194ccf6635c3f626fef1daee05514.
2023-10-15 13:35:23 +02:00

16 lines
292 B
Swift

//
// UIResponder+Extensions.swift
// SwiftUI_Pull_to_Refresh
//
// Created by Geri Borbás on 21/09/2021.
//
import Foundation
import UIKit
extension UIResponder {
var parentViewController: UIViewController? {
next as? UIViewController ?? next?.parentViewController
}
}