Display a Custom Alert | raywenderlich.com

Yep I see the same behavior. As of Xcode 12.5, you now need to manually cast Ints to CGFloats / etc. as you’ve done here.

For more information, see this thread (@zhongdongy has a nice explanation): SwiftUI Views | raywenderlich.com - #6 by zhongdongy