From 06b9c70903979d609d104c9e4bde33bae1a79911 Mon Sep 17 00:00:00 2001 From: Ilya Kharlamov Date: Wed, 31 Aug 2022 20:07:05 +0300 Subject: [PATCH] Add a little spacing to selection view --- Sources/Views/DayCell.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Views/DayCell.swift b/Sources/Views/DayCell.swift index 53302d0..24c61c8 100644 --- a/Sources/Views/DayCell.swift +++ b/Sources/Views/DayCell.swift @@ -133,8 +133,8 @@ class DayCell: JTACDayCell { } self.selectionBackgroundView.snp.makeConstraints { (maker) in maker.height.equalTo(100).priority(.low) - maker.top.left.greaterThanOrEqualToSuperview() - maker.right.bottom.lessThanOrEqualToSuperview() + maker.top.left.greaterThanOrEqualToSuperview().offset(1) + maker.right.bottom.lessThanOrEqualToSuperview().offset(-1) maker.center.equalToSuperview() maker.width.equalTo(self.selectionBackgroundView.snp.height) }