- 直接圆角图片
Image("WechatIMG5108")
.clipShape(Circle())
- 设置圆角图片度数
Image("WechatIMG5108").cornerRadius(50)
- 设置圆角图片带灰色圆角边框
Image("WechatIMG5108")
.clipShape(Circle())
.overlay(Circle().stroke(Color.gray, lineWidth: 4))
- 设置圆角图片带灰色圆角边框带阴影
Image("WechatIMG5108")
.clipShape(Circle())
.overlay(Circle().stroke(Color.gray, lineWidth: 10).shadow(radius: 10))