Skip to content

Commit

Permalink
fix default parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuzukihashi committed Apr 26, 2020
1 parent 626ad19 commit bd9e742
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Sources/Extensions/ViewExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ public extension View {
func neumorphismShadow(
darkShadowColor: Color? = nil,
lightShadowColor: Color? = nil,
radius: CGFloat = 8,
x: CGFloat = 4,
y: CGFloat = 4,
radius: CGFloat = 16,
x: CGFloat = 8,
y: CGFloat = 8,
isAnimation: Bool = false
) -> some View {
self.modifier(NeumorphismShadowModifier(
Expand Down
6 changes: 3 additions & 3 deletions Sources/Modifier/NeumorphismShadowModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public struct NeumorphismShadowModifier: ViewModifier {
public init(
darkShadowColor: Color? = nil,
lightShadowColor: Color? = nil,
radius: CGFloat = 8,
x: CGFloat = 4,
y: CGFloat = 4,
radius: CGFloat = 16,
x: CGFloat = 8,
y: CGFloat = 8,
isAnimation: Bool = false
) {
self.darkShadowColor = darkShadowColor
Expand Down

0 comments on commit bd9e742

Please sign in to comment.