Post

Replies

Boosts

Views

Activity

Reply to Xcode 15 refreshable list problem
I want to share some additional information. It looks like refreshable is working ok on its own. The problem only occurs in conjunction with a sheet. Here is the code I used: // // ListRefreshable.swift // ProblemDebug // import SwiftUI struct ListRefreshable: View { @State private var showTestView: Bool = false var body: some View { List { Text("A simple, refreshable list") } .refreshable { showTestView.toggle() } .sheet(isPresented: $showTestView, onDismiss: { showTestView = false }, content: { EmptyView() }) } } #Preview { ListRefreshable() } If you want to try it out for yourself, leaf out the ".sheet ..." part from the example above. The refreshable list will behave as expected. Does someone have a clue how to fix this?
Oct ’23