Skip to content

Customize UI from source

For deep customization of UI Extensions UI and behavior, import the open-source uiextensions project and modify it at source level.

Integrate the source project

The SDK’s libs/uiextensions directory contains the full UI Extensions source. Add it to your Xcode workspace:

  1. Open your .xcworkspace.
  2. Drag libs/uiextensions/uiextensions.xcodeproj into the workspace Project Navigator.
  3. In your app target → GeneralFrameworks, Libraries, and Embedded Content, add libFoxitRDKUIExtensions.a (static library).
  4. In Build SettingsHeader Search Paths, add UI Extensions header paths.

INFO

After integrating source, you do not need uiextensionsDynamic.framework— use one or the other.

Source layout

Main directories:

DirectoryDescription
PublicHeaders/Public headers (UIExtensionsManager.h, UIExtensionsConfig.h, etc.)
UIExtensions/Feature modules (annotations, bookmarks, search, signatures, thumbnails, etc.)

Customization examples

At source level you can:

  • Change toolbar button layout and styling
  • Add custom feature modules
  • Change default annotation tool behavior
  • Adjust panel UI layout

Mac Catalyst support

For Mac Catalyst, use the project under libs/uiextensions/ios_catalyst/, adapted for macOS.

Important

Track SDK upgrades when you modify source; merge upstream changes when updating the SDK version.