From 261c35d97dc5a91013b33085394939ca760f344f Mon Sep 17 00:00:00 2001 From: jeongkite Date: Mon, 21 Nov 2022 17:03:42 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=98=BA[CHORE]=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EB=B2=95=20=EC=A3=BC=EC=84=9D=20=EC=B6=94=EA=B0=80=20(X)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Source/Common/Extensions/UIViewController+.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Oliveyoung-iOS/Oliveyoung-iOS/Source/Common/Extensions/UIViewController+.swift b/Oliveyoung-iOS/Oliveyoung-iOS/Source/Common/Extensions/UIViewController+.swift index 4918455..5029772 100644 --- a/Oliveyoung-iOS/Oliveyoung-iOS/Source/Common/Extensions/UIViewController+.swift +++ b/Oliveyoung-iOS/Oliveyoung-iOS/Source/Common/Extensions/UIViewController+.swift @@ -8,6 +8,7 @@ import Foundation import SwiftUI +/// SwiftUI를 이용한 프리뷰 표시 #if DEBUG extension UIViewController { private struct Preview: UIViewControllerRepresentable { @@ -26,3 +27,9 @@ extension UIViewController { } } #endif +// 아래 코드를 원하는 뷰컨 맨 아래에 넣고 swiftUI 임포트해주기 +//struct ViewControllerPreView:PreviewProvider { +// static var previews: some View { +// 뷰컨 이름().toPreview() +// } +//}