📜  swiftui circle - Swift 代码示例

📅  最后修改于: 2022-03-11 15:00:59.984000             🧑  作者: Mango

代码示例1
//We can use the Circle() struct in SwiftUI
//Example

import SwiftUI

Circle()
    .frame(height: 20, width: 20)
    .fill(Color.red)

//This makes a circle view with a diameter of 20, and the color of the circle is red