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() +// } +//}