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:
- Open your
.xcworkspace. - Drag
libs/uiextensions/uiextensions.xcodeprojinto the workspace Project Navigator. - In your app target → General → Frameworks, Libraries, and Embedded Content, add
libFoxitRDKUIExtensions.a(static library). - In Build Settings → Header 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:
| Directory | Description |
|---|---|
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.