add a little shadow (IOS-234)

This commit is contained in:
Nathan Mattes 2024-04-09 19:24:15 +02:00
parent c1c6ef44e9
commit bef0536e72
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ class TimelineStatusPill: UIButton {
configuration.background.backgroundColor = reason.backgroundColor configuration.background.backgroundColor = reason.backgroundColor
self.configuration = configuration self.configuration = configuration
layer.shadowColor = reason.backgroundColor.cgColor
layer.shadowOpacity = 0.15
layer.shadowOffset = .init(width: 0, height: 8)
layer.shadowRadius = 8
} }
override func updateConfiguration() { override func updateConfiguration() {