@marudavid I am not able to reproduce your issue using the following sample code. There is a default background color always on both Xcode 15 and Xcode 16.1 Beta. It is possible you are using some type of ViewModifier that is causing this.
The following works fine.
import SwiftUI
struct Icon: Identifiable {
var id: String
var color: Color
}
struct ContentView: View {
let icons = [
Icon(id: "figure.badminton", color: .red),
Icon(id: "figure.fencing", color: .orange),
Icon(id: "figure.gymnastics", color: .green),
Icon(id: "figure.indoor.cycle", color: .blue),
Icon(id: "figure.outdoor.cycle", color: .purple),
Icon(id: "figure.rower", color: .indigo),
]
@State private var selected: Icon?
var body: some View {
LazyVGrid(columns: [.init(.adaptive(minimum: 100, maximum: 300))]) {
ForEach(icons) { icon in
Button {
selected = icon
} label: {
Image(systemName: icon.id)
}
.foregroundStyle(icon.color.gradient)
.font(.system(size: 100))
}
}
.fullScreenCover(item: $selected, content: { icon in
DestinationView(icon: icon, animation: animation)
.onTapGesture {
selected = nil
}
})
}
}
struct DestinationView: View {
var icon: Icon
var animation: Namespace.ID
var body: some View {
Image(systemName: icon.id)
.font(.system(size: 300))
.foregroundStyle(icon.color.gradient)
}
}
#Preview {
ContentView()
}