Unsure if this is an Xcode bug or a compiler bug - I suspect the former, but anyway, in a SwiftUI view we have some code similar to:
SomeView().padding(.top, someCondition ? 0 : 24)
This compiles and runs fine in both Xcode 12.5 and 12.4 however it fails to compile when trying to load the SwiftUI preview for this view using the 12.5 RC with the following error:
result values in '? :' expression have mismatching types 'Int' and 'CGFloat' <snip> Compiling failed: result values in '? :' expression have mismatching types 'Int' and 'CGFloat'
CGFloat(24) fixes the issue.