Files
ios-study/jason/Components/UserCardComponent.swift
2024-01-16 22:55:44 +08:00

40 lines
1.2 KiB
Swift

//
// UserCardComponent.swift
// jason
//
// Created by Jason on 2024/1/16.
//
import SwiftUI
struct UserCardComponent: View {
var body: some View {
VStack (alignment: .leading, spacing: 8, content: {
Spacer()
Image("Images/logo")
.resizable(resizingMode: /*@START_MENU_TOKEN@*/.stretch/*@END_MENU_TOKEN@*/)
.aspectRatio(contentMode: .fit)
.cornerRadius(8)
.frame(width: 64,height: 64)
Text("Jason.Chen")
.font(.largeTitle)
.foregroundColor(Color("ReversColor"))
Text("PlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholderPlaceholder")
.font(.headline)
.foregroundColor(Color("ReversColor"))
.lineLimit(2)
.multilineTextAlignment(/*@START_MENU_TOKEN@*/.leading/*@END_MENU_TOKEN@*/)
})
.padding(.all, 20)
.frame(height: 300)
.background(.ultraThinMaterial)
.cornerRadius(10)
.shadow(radius: 20)
.padding(.horizontal, 10)
}
}
#Preview {
UserCardComponent()
}