我目前正在开发一个应用程序,我想为其创建某种文件夹,我不想使用图像,所以我想使用矩形来完成,但恐怕我不是那样的聪明,所以我在这里问你是否可以帮助我。
提前谢谢了。
这是我当前的代码:
ZStack{
VStack{
RoundedRectangle(cornerRadius: 25)
.fill(Color("marineblau"))
.frame(width: 100, height: 80)
}
VStack{
RoundedRectangle(cornerRadius: 25)
.fill(Color("blau"))
.frame(width: 150, height: 110)
}
}
像这样 ?
或者像这样: