Implement a Document Picker Sidebar in Swift for iOS

Implement a Document Picker in the sidebar. Get additional resources by visiting our PSPDFDocumentPickerControllerDelegate API guide.


//
// Copyright © 2017-2025 PSPDFKit GmbH. All rights reserved.
//
// The Nutrient sample applications are licensed with a modified BSD license.
// Please see License for details. This notice may not be removed from this file.
//
import PSPDFKit
import PSPDFKitUI
class DocumentPickerSidebarExample: Example {
override init() {
super.init()
title = "Document Picker Sidebar"
contentDescription = "Displays a Document Picker in the sidebar."
category = .top
priority = 5
wantsModalPresentation = true
embedModalInNavigationController = false
}
override func invoke(with delegate: ExampleRunnerDelegate) -> UIViewController? {
return PSCSplitViewController()
}
}

This code sample is an example that illustrates how to use our SDK. Please adapt it to your specific use case.