From 4ff0af7d5f93f51b61f7c1abc4ad7507e3740ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=EC=B1=84=EC=9D=80?= Date: Mon, 4 Sep 2023 21:03:29 +0900 Subject: [PATCH] =?UTF-8?q?Chore=20[#242]=20=EB=A7=88=ED=81=AC=20=EC=A3=BC?= =?UTF-8?q?=EC=84=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Presentation/Recommending/Main/View/NextButton.swift | 2 ++ .../Recommending/Main/View/RecommendingSegmentedControl.swift | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/NextButton.swift b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/NextButton.swift index d0d89fd0..8ea54870 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/NextButton.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/NextButton.swift @@ -10,11 +10,13 @@ import UIKit class NextButton: UIButton { // MARK: - Functions + // MARK: Layout Helpers override func point(inside point: CGPoint, with event: UIEvent?) -> Bool { let expandedBounds = bounds.insetBy(dx: -295.adjustedWidth, dy: -98.adjustedHeight) return expandedBounds.contains(point) } + // MARK: LifeCycle override init(frame: CGRect) { super.init(frame: frame) } diff --git a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/RecommendingSegmentedControl.swift b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/RecommendingSegmentedControl.swift index 8220ec77..0ff48853 100644 --- a/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/RecommendingSegmentedControl.swift +++ b/YELLO-iOS/YELLO-iOS/Presentation/Recommending/Main/View/RecommendingSegmentedControl.swift @@ -35,7 +35,7 @@ final class RecommendingSegmentedControl: UISegmentedControl { }() // MARK: - Function - // MARK: init + // MARK: LifeCycle override init(frame: CGRect) { super.init(frame: frame) removeBackgroundAndDivider() @@ -60,6 +60,7 @@ final class RecommendingSegmentedControl: UISegmentedControl { // MARK: - extension extension RecommendingSegmentedControl { + // MARK: Layout Helpers private func setUI() { setStyle() setLayout()