iOS-SwiftUI基础-Image

2020-06-23  本文已影响0人  蓝不蓝编程

效果图

代码

Image(systemName: "clock")
    .foregroundColor(.blue)
    .font(.system(size: 50))

Image("swiftui")
    .resizable()
    .frame(width: 200, height: 200)
    .clipShape(Circle())
    .overlay(Circle().stroke(Color.white, lineWidth: 4))
    .shadow(radius: 10)

源代码

https://gitee.com/cxyzy1/iOS_ImageDemo

上一篇 下一篇

猜你喜欢

热点阅读