For those wondering, I was able to fix something similar using a hacky solution by applying this modifier to the view I wanted to render:
.environment(\.colorScheme, colorScheme == .light ? .light : .dark)
@Environment(\.colorScheme) private var colorScheme.