Skip to content

Commit

Permalink
😺[CHORE] 사용법 주석 추가 (X)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeongkite committed Nov 21, 2022
1 parent 55b9b03 commit 261c35d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import Foundation
import SwiftUI

/// SwiftUI를 이용한 프리뷰 표시
#if DEBUG
extension UIViewController {
private struct Preview: UIViewControllerRepresentable {
Expand All @@ -26,3 +27,9 @@ extension UIViewController {
}
}
#endif
// 아래 코드를 원하는 뷰컨 맨 아래에 넣고 swiftUI 임포트해주기
//struct ViewControllerPreView:PreviewProvider {
// static var previews: some View {
// 뷰컨 이름().toPreview()
// }
//}

0 comments on commit 261c35d

Please sign in to comment.