Dear community,
Yesterday I update Xcode from 12.5.1 to 13.0 and I came across a lot of compile error. Until before the update all was working great, but I suppose probably some syntax rules changes with the update for iOS 15.
.background(Color.systemBlue)
error: Type 'Color' has no member 'systemBlue'
.maxWidth(.infinity)
error:
Cannot infer contextual base in reference to member 'infinity'
Value of type 'Image' has no member 'maxWidth'
.aspectRatio(contentMode: .fit)
error: Cannot infer contextual base in reference to member 'fit'
Image(.system("line.horizontal.3.circle.fill"))
error: Type 'String' has no member 'system'
.font(.largeTitle, weight: .bold)
errors:
- Cannot infer contextual base in reference to member 'bold'
- Extra argument 'weight' in call
Image(section.logo)
.resizable()
.height(32)
error: Value of type 'Image' has no member 'height'
Command CompileSwift failed with a nonzero exit code
I hope that this one will fix by itself
Basically I got 23 errors... and the code before yesterday was working great.
Thanks to those who will help me, hoping it will be useful to other users,
Martin