How to allow opening iWorks Pages Document using DocumentBrowserViewController

I am attempting to create a public speaking app with a timer and have a viewer that displays PDFs and other types of documents like *.pages or *.docx.

However, I am only able to select and open PDF documents. I have an entry for PDF in my plist, but can't find what the correct values are for iWorks Pages documents, etc.

Is there a place I can find these?

func application(_ app: UIApplication, open inputURL: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
        // Ensure the URL is a file URL
        guard inputURL.isFileURL else { return false }
        // Reveal / import the document at the URL
        guard let documentBrowserViewController = window?.rootViewController as? DocumentBrowserViewController else { return false }
        documentBrowserViewController.revealDocument(at: inputURL, importIfNeeded: true) { (revealedDocumentURL, error) in

            if let error = error {
                // Handle the error appropriately
                print("Failed to reveal the document at URL \(inputURL) with error: '\(error)'")
                return
            }
            // Present the Document View Controller for the revealed URL
            documentBrowserViewController.presentDocument(at: revealedDocumentURL!)
        }
        return true

    }

I am pretty sure I need to tweak this - but not sure how:

<key>CFBundleDocumentTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeIconFiles</key>
			<array/>
			<key>CFBundleTypeName</key>
			<string>PDFs</string>
			<key>CFBundleTypeRole</key>
			<string>Viewer</string>
			<key>LSHandlerRank</key>
			<string>Alternate</string>
			<key>LSItemContentTypes</key>
			<array>
				<string>com.adobe.pdf</string>
			</array>
		</dict>
	</array>

Replies

I have modified my plist as follows - but it still only allows the selection of PDF documents.

	<key>CFBundleDocumentTypes</key>

	<array>

		<dict>

			<key>CFBundleTypeIconFiles</key>

			<array/>

			<key>CFBundleTypeName</key>

			<string>PDFs</string>

			<key>CFBundleTypeRole</key>

			<string>Viewer</string>

			<key>LSHandlerRank</key>

			<string>Alternate</string>

			<key>LSItemContentTypes</key>

			<array>

				<string>com.adobe.pdf</string>

			</array>

		</dict>

		<dict>

			<key>CFBundleTypeIconFile</key>

			<string>Pages_Doc.png</string>

			<key>CFBundleTypeName</key>

			<string>SLDocumentTypeNativePublication</string>

			<key>CFBundleTypeRole</key>

			<string>Viewer</string>

			<key>LSHandlerRank</key>

			<string>Default</string>

			<key>LSItemContentTypes</key>

			<array>

				<string>com.apple.iwork.pages.pages</string>

				<string>com.apple.pages.pages</string>

			</array>

		</dict>

	</array>

I needed to add

<array>
				<string>com.apple.iwork.pages.pages</string>
				<string>com.apple.pages.pages</string>
                <string>public.item</string>
			</array>

But now it can open anything - I would like to limit to word processing docs