You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
//
// E m p t y I n f o . s w i f t
// A l l I n
//
// C r e a t e d b y L u c a s D e l a n i e r o n 2 9 / 0 5 / 2 0 2 4 .
//
import SwiftUI
struct EmptyInfo : View {
let emoji : String
let title : String
let explain : String
var body : some View {
VStack {
Text ( emoji ) . font ( . system ( size : 120 ) )
Text ( title ) . textStyle ( weight : . bold , color : AllInColors . primaryTextColor , size : 15 )
explain . isEmpty ? nil : Text ( explain ) . textStyle ( weight : . light , color : . gray , size : 12 )
} . opacity ( 0.55 ) . padding ( . horizontal , 20 ) . multilineTextAlignment ( . center )
}
}
struct EmptyInfo_Previews : PreviewProvider {
static var previews : some View {
EmptyInfo ( emoji : " 👥 " , title : " Vous n’ avez pas encore d’ amis " , explain : " Ajoutez les depuis cet écran " )
}
}