Files
FamilyMealPlanner/MealMood/Extensions/View+MealCard.swift
T
alexandrev-tibco e593453abd Version casi lista
2026-02-17 13:34:02 +01:00

21 lines
524 B
Swift

import SwiftUI
struct MealCardStyle: ViewModifier {
func body(content: Content) -> some View {
content
.background(Color.mealMoodSurface)
.cornerRadius(16)
.shadow(color: Color.black.opacity(0.05), radius: 8, y: 4)
.overlay(
RoundedRectangle(cornerRadius: 16)
.stroke(Color(hex: "#F0F0F0"), lineWidth: 1)
)
}
}
extension View {
func mealCardStyle() -> some View {
modifier(MealCardStyle())
}
}