Swift UI-无法在设备中查看SF符号,

时间:2019-12-08 17:17:14

标签: swift swiftui sf-symbols

var body: some View {
    RoundedRectangle(cornerRadius: 20)
        .foregroundColor(.clear).overlay(
        VStack {
            Circle().overlay(Image(systemName: "circle.fill").resizable().aspectRatio(contentMode: .fill).foregroundColor(Color(red:0.56, green:0.89, blue:0.43, opacity:1.0)).frame(width: 200, height: 200)).foregroundColor(.white).frame(height:195)
            Text(text)
        }).frame(height:450)
    .padding(.all)
}

我能够在模拟器中预览SF符号图像,但不能在设备中预览。当我在设备上运行该应用程序时,我看不到任何带有SWIFT UI和SF符号的图像。有什么我想念的吗?

我在ipad设备上使用OS 13.1.3

0 个答案:

没有答案