Skip to content

Commit

Permalink
add shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
pdtxie committed Mar 22, 2024
1 parent 7820384 commit f7d2675
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CubeTime/TimeList/TimeListViewInner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ class TimeCardView: UIStackView {
var config = UIImage.SymbolConfiguration(paletteColors: [UIColor(named: "accent")!, UIColor(named: "overlay0")!])
config = config.applying(UIImage.SymbolConfiguration(weight: .semibold))
checkbox.preferredSymbolConfiguration = config

checkbox.layer.shadowColor = UIColor.black.cgColor
checkbox.layer.shadowOffset = .init(width: 0, height: 2)
checkbox.layer.shadowRadius = 8
checkbox.layer.shadowOpacity = 0.12

self.axis = .vertical
self.alignment = .center
self.distribution = .equalCentering
Expand Down

0 comments on commit f7d2675

Please sign in to comment.