Created
March 22, 2021 02:38
-
-
Save MatthewWaller/851157f28831a174e0b4c1e43a59e1b3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 QuickLookController: UIViewControllerRepresentable { | |
var startEditing: PassthroughSubject<Void, Never> | |
var url: URL | |
var endEditing: () -> Void | |
func makeUIViewController(context: Context) -> PreviewControllerHolder { | |
PreviewControllerHolder(url: url, startEditing: startEditing, endEditing: endEditing) | |
} | |
func updateUIViewController(_ viewController: PreviewControllerHolder, context: Context) { | |
// | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment