修复任务提交与弹窗交互问题
This commit is contained in:
@ -17,6 +17,11 @@ final class StatisticsPeriodButton: UIButton {
|
||||
didSet { updateAppearance() }
|
||||
}
|
||||
|
||||
override func layoutSubviews() {
|
||||
super.layoutSubviews()
|
||||
layer.cornerRadius = bounds.height / 2
|
||||
}
|
||||
|
||||
override init(frame: CGRect) {
|
||||
super.init(frame: frame)
|
||||
setupUI()
|
||||
@ -29,7 +34,7 @@ final class StatisticsPeriodButton: UIButton {
|
||||
|
||||
private func setupUI() {
|
||||
titleLabel?.font = .app(.bodyMedium)
|
||||
layer.cornerRadius = AppRadius.pill
|
||||
layer.cornerCurve = .continuous
|
||||
clipsToBounds = true
|
||||
contentEdgeInsets = UIEdgeInsets(top: 6, left: 20, bottom: 6, right: 20)
|
||||
updateAppearance()
|
||||
|
||||
Reference in New Issue
Block a user