feat(detail): ajout d'un component InfoText
- Permet de diviser le texte en gras de la valeur associée
This commit is contained in:
parent
9da2bddf7f
commit
2a2bb0ea7e
1 changed files with 17 additions and 0 deletions
17
urbancanvas/Components/InfoText.swift
Normal file
17
urbancanvas/Components/InfoText.swift
Normal file
|
|
@ -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)")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue