Skip to content

Commit

Permalink
added default value to ShadowStyle
Browse files Browse the repository at this point in the history
  • Loading branch information
ab1470 committed Nov 8, 2024
1 parent d1bf41a commit 0a42585
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/KlaviyoUI/Styles/ShadowStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@ public struct ShadowStyle {
let offset: CGSize
let radius: CGFloat
}

extension ShadowStyle {
public static var `default`: Self = .init(
color: UIColor.black.cgColor,
opacity: 0.5,
offset: CGSize(width: 5, height: 5),
radius: 8)
}

0 comments on commit 0a42585

Please sign in to comment.