test
This commit is contained in:
25
demo/Components/UserAccountCard.swift
Normal file
25
demo/Components/UserAccountCard.swift
Normal file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// UserAccountCard.swift
|
||||
// demo
|
||||
//
|
||||
// Created by Jason on 2024/1/24.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct UserAccountCard: View {
|
||||
var model: UserAccountCardModel
|
||||
var body: some View {
|
||||
VStack {
|
||||
HStack {
|
||||
Image(systemName: model.icon)
|
||||
Text(model.title)
|
||||
}
|
||||
Text(model.info)
|
||||
.font(.caption)
|
||||
}
|
||||
.padding(12)
|
||||
.background(Color.white)
|
||||
.cornerRadius(8)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user