From 2a2bb0ea7e531460e07d9b35415490270caec4db Mon Sep 17 00:00:00 2001 From: CreepsoOff <51055703+CreepsoOff@users.noreply.github.com> Date: Tue, 23 Jun 2026 14:18:52 +0200 Subject: [PATCH] feat(detail): ajout d'un component InfoText MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Permet de diviser le texte en gras de la valeur associƩe --- urbancanvas/Components/InfoText.swift | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 urbancanvas/Components/InfoText.swift diff --git a/urbancanvas/Components/InfoText.swift b/urbancanvas/Components/InfoText.swift new file mode 100644 index 0000000..43a5356 --- /dev/null +++ b/urbancanvas/Components/InfoText.swift @@ -0,0 +1,17 @@ +// +// InfoText.swift +// urbancanvas +// +// Created by Apprenant154 on 23/06/2026. +// + +import SwiftUI + +struct InfoText: View { + let titre: String + let valeur: String + + var body: some View { + Text("\(Text(titre + " :").bold()) \(valeur)") + } +}