Slide 10
Slide 10 text
ϥΠϒϥϦ࡞Γ·ͨ͠
extension View {
func neumorphismShadow() -> some View {
self.modifier(NeumorphismShadowModifier())
}
}
7JFX.PEJpFSͷ func body(content: Self.Content) -> Self.Body
func body(content: Content) -> some View {
content
.shadow(color: darkShadowColor,
radius: radius,
x: x, y: y)
.shadow(color: lightShadowColor,
radius: radius,
x: -x, y: -y)
}