RefreshUI icon indicating copy to clipboard operation
RefreshUI copied to clipboard

Doesn't seem to work with iOS 14 beta 5

Open btian opened this issue 4 years ago • 2 comments

btian avatar Aug 24 '20 23:08 btian

In RefreshUIView.swift, replace lines 24-26 with the following

        guard let tableViewWrapper = target else { return }
        guard let tableView = tableViewWrapper.subviews.first as? UITableView else { return }

There appears to be one less layer in the view hierarchy now. Of course, this is a fragile fix as it's subject to breaking in a similar way in the future. A safer bet might just be to loop over the subviews going deeper into the hierarchy until a UITableView is found rather than hard coding the hierarchy.

bpietsch avatar Nov 13 '20 04:11 bpietsch

RefreshUI is no longer available. I'm preferred to use Introspect. https://github.com/siteline/SwiftUI-Introspect

noppefoxwolf avatar Nov 13 '20 07:11 noppefoxwolf