It is possible to combine multiple shadows, because every type that conforms to ShapeStyle
has this function provided by Apple:
extension ShapeStyle {
public static func shadow(_ style: ShadowStyle) -> some ShapeStyle
}
In other words, any ShapeStyle
can return a new ShapeStyle
that has a shadow applied to it.
A shadow Sha…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.