Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MatthewWaller/851157f28831a174e0b4c1e43a59e1b3 to your computer and use it in GitHub Desktop.
Save MatthewWaller/851157f28831a174e0b4c1e43a59e1b3 to your computer and use it in GitHub Desktop.
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