import SwiftUI
struct ContentView: View {
@State var rating = 0.0
var body: some View {
// Circle().stroke(Color.red).frame(width: 100, height: 100, alignment: .center)
Circle().stroke(Color.red, lineWidth: 20)//.frame(width: 100, height: 100, alignment: .center)
Circle().strokeBorder(Color.red, lineWidth: 20)//.frame(width: 100, height: 100, alignment: .center)
}
}
SwiftUI:描边框与描形状(stroke & strokeBorder)
最新推荐文章于 2024-03-16 19:20:55 发布