Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
aheze committed Feb 26, 2023
2 parents 0fe8d83 + f7de866 commit dc88bad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ A library to present popovers.
- Highly customizable API that's super simple — just add `.popover`.
- Drop-in replacement for iOS 14's `Menu` that works on iOS 13.
- SwiftUI-based core for a lightweight structure. 0 dependencies.
- It's 2022 — about time that popovers got interesting!
- It's 2023 — about time that popovers got interesting!

## Showroom

Expand Down
8 changes: 4 additions & 4 deletions Sources/Templates/Shadow.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public extension Templates {
/// A convenient way to apply shadows. Access using the `.popoverShadow()` modifier.
struct Shadow {
/// The shadow color.
public var color = Color(.label.withAlphaComponent(0.3))
public var color = Color.black.opacity(0.25)

/// The shadow radius.
public var radius = CGFloat(0)
Expand All @@ -24,15 +24,15 @@ public extension Templates {
/// The shadow's y offset.
public var y = CGFloat(0)

public static let system = Self(
color: Color(.label.withAlphaComponent(0.25)),
public static var system = Self(
color: Color.black.opacity(0.25),
radius: 40,
x: 0,
y: 4
)

public init(
color: Color = Color(.label.withAlphaComponent(0.3)),
color: Color = Color.black.opacity(0.25),
radius: CGFloat = CGFloat(0),
x: CGFloat = CGFloat(0),
y: CGFloat = CGFloat(0)
Expand Down

0 comments on commit dc88bad

Please sign in to comment.