UPDATE: On the previous Xcode 16 Beta version changing the spacing manually was indeed the only viable option. On Xcode 16 Beta 4 however this is no longer necessary. The list now looks as expected.
Post
Replies
Boosts
Views
Activity
I can confirm. I'm experiencing the same problem.
Hi,
I'm also having this problem. Do you also have other "log noise" after upgrading to macOS 14.4 and Xcode 15.3? I detailed my experience here: [https://developer.apple.com/forums/thread/748133)
I'm also having problems on Xcode 15 & iOS 17. None of the above methods are working ...
Hi, I'm also having this problem on Xcode 15 & iOS 17
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?