SwiftUI iOS 仿Clubhouse App界面(教程含源码)
作者:互联网
实战需求
SwiftUI iOS 仿Clubhouse App界面
本文价值与收获
看完本文后,您将能够作出下面的界面
看完本文您将掌握的技能
- 基于ZStack进行布局
- .offset(y: 20)实现组件码放
- 设置视图大小和颜色.frame(width: UIScreen.main.bounds.width, height: 100).background(Color(UIColor.systemBackground))
- clubhouse 基础配色
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0.925",
"green" : "0.968",
"red" : "0.965"
}
},
实战代码
1、主界面
mport SwiftUI
struct ClubhouseHome: View {
var body: some View {
ZStac
标签:Clubhouse,界面,color,App,iOS,width,源码,SwiftUI,View 来源: https://blog.csdn.net/iCloudEnd/article/details/113813609