Yep I see the same behavior. As of Xcode 12.5, you now need to manually cast Int
s to CGFloat
s / etc. as you’ve done here.
For more information, see this thread (@zhongdongy has a nice explanation): SwiftUI Views | raywenderlich.com - #6 by zhongdongy