This repository has been archived on 2024-05-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
AlloVictor/AlloVictor/Views/Components/OffererUser/OffererUserInfos.swift
Victor Bodinaud 9ec3ba818b 🚀 First version
2024-04-18 19:32:10 +02:00

31 lines
858 B
Swift

//
// OffererUserInfos.swift
// AlloVictor
//
// Created by Bodinaud Victor on 18/04/2024.
//
import SwiftUI
struct OffererUserInfos: View {
let offererUser: OfferersUser
var body: some View {
VStack(alignment: .leading) {
HStack {
AvatarView(avatarUrl: offererUser.avatarUrl, width: 65, height: 65)
VStack(alignment: .leading) {
Text(offererUser.displayName)
.medium(15)
Text(offererUser.headline)
.medium(12)
Text("\(offererUser.locationFormatted) - à \(offererUser.distanceFormatted)")
.light(12)
Text(offererUser.onlineLatestActivityAtFormatted)
.light(12)
}
}
}
}
}