From 34149bf46d0971723e13f2f2a46c1d3cf61cedce Mon Sep 17 00:00:00 2001 From: dahun-lee-daji Date: Thu, 22 Apr 2021 15:28:14 +0900 Subject: [PATCH] =?UTF-8?q?feature=20:=20=ED=86=A0=EC=8A=A4=ED=84=B0=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80=20(#11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SideDishApp/Presentation/UI/View/DishCardCell.swift | 3 ++- .../Presentation/UI/ViewController/ViewController.swift | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/SideDishApp/SideDishApp/Presentation/UI/View/DishCardCell.swift b/SideDishApp/SideDishApp/Presentation/UI/View/DishCardCell.swift index 1b77ff661..4c8bce47a 100644 --- a/SideDishApp/SideDishApp/Presentation/UI/View/DishCardCell.swift +++ b/SideDishApp/SideDishApp/Presentation/UI/View/DishCardCell.swift @@ -7,7 +7,8 @@ import UIKit -class DishCardCell : UICollectionViewCell { @IBOutlet weak var dishImage: UIImageView! +class DishCardCell : UICollectionViewCell { + @IBOutlet weak var dishImage: UIImageView! @IBOutlet weak var title: UILabel! @IBOutlet weak var body: UILabel! @IBOutlet weak var charge: UILabel! diff --git a/SideDishApp/SideDishApp/Presentation/UI/ViewController/ViewController.swift b/SideDishApp/SideDishApp/Presentation/UI/ViewController/ViewController.swift index 3c38528ce..a8814d510 100644 --- a/SideDishApp/SideDishApp/Presentation/UI/ViewController/ViewController.swift +++ b/SideDishApp/SideDishApp/Presentation/UI/ViewController/ViewController.swift @@ -6,6 +6,7 @@ // import UIKit +import Toast_Swift class ViewController: UIViewController { @@ -49,6 +50,9 @@ class ViewController: UIViewController { configuration.textProperties.font = .boldSystemFont(ofSize: 16) configuration.textProperties.color = .systemBlue + let tap = UITapGestureRecognizer(target: self, action: #selector(handleTapGesture(recognizer:))) + headerView.addGestureRecognizer(tap) + // Apply the configuration to header view headerView.contentConfiguration = configuration } @@ -101,6 +105,10 @@ class ViewController: UIViewController { return label } + @objc private func handleTapGesture(recognizer: UITapGestureRecognizer) { + self.view.makeToast("Toaster 출력 \(recognizer.view)") + } + } enum section : String, CaseIterable {