Created
April 1, 2023 15:09
-
-
Save kelvinfok/e7a46a5141d938d1707619eb550186d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct HomeViewController_Previews: PreviewProvider { | |
static var previews: some View { | |
Container().edgesIgnoringSafeArea(.all) | |
} | |
struct Container: UIViewControllerRepresentable { | |
func makeUIViewController(context: Context) -> UIViewController { | |
UINavigationController(rootViewController: HomeViewController()) | |
} | |
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {} | |
typealias UIViewControllerType = UIViewController | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
remember to import SwiftUI