Two Installation Approaches: Use package installation for quick integration, or fork from GitHub for complete control and customization.
Installation Methods
Package Installation
Quick Setup (Recommended)
- Managed dependencies
- Easy updates
- Minimal configuration
- Perfect for most use cases
GitHub Fork
Complete Customization
- Full source code access
- Custom modifications
- Advanced integrations
- Maximum flexibility
Package Installation
Install UIKit through package managers for quick integration:Prerequisites
- iOS 15.0 or later
- Xcode 16.0 or later
- Swift 6.0 or later
Installation Steps
Add Package Dependency in Xcode:
- Open your project in Xcode
- Go to File → Add Package Dependencies
- Enter the repository URL:
- Select dependency rule (Up to Next Major for stable releases)
**Please specify the required version of the UIKit using
Exact Version Dependency Rule as shown in the image below.For Example: Exact Version 4.6.0- Choose the latest version and add to your target
Initialize UIKit
Required Permissions (Info.plist)
GitHub Fork Installation
For complete customization and control over the UIKit source code:Note: React Native and Flutter UIKit is only available through GitHub forking, not package installation.
Fork Repository
- Fork the iOS UIKit repository
- Clone your forked repository:
Migration from Existing Project
Remove Existing Dependencies (If Applicable)
If you’re migrating from a managed UIKit installation, remove existing dependencies:- In Xcode, remove AmityUIKit from Build Phases → Link Binary With Libraries
- Remove any SwiftPM or CocoaPods dependencies
- Clean build folder (Product → Clean Build Folder)
Integration Methods
Step 1: Add SubmoduleStep 2: Create Xcode WorkspaceStep 3: Configure Dependencies
- Create a new workspace in Xcode (File → New → Workspace)
- Add both
YourApp.xcodeprojandAmityUIKit/AmityUIKit.xcodeprojto the workspace - Save the workspace file in your project root
-
Reset Package Cache (if upgrading):
- Select your app target in Xcode
- Go to File → Packages → Reset Package Cache
-
Link Frameworks:
- In your app target’s Build Phases
- Add
AmityUIKitto Target Dependencies - Add
AmityUIKit.frameworkto Link Binary With Libraries - Link
SharedFrameworks(Swift Package) to your target
Required Setup
Info.plist Permissions:Updating to Latest Version
For Git Submodule:Customization Benefits
- Complete UI Control: Modify view controllers, storyboards, XIB files, and Swift UI components
- Custom Theming: Change colors, fonts, images, and styling throughout the app
- Business Logic: Add custom validation, analytics, user flows, and integrations
- Advanced Features: Implement custom post types, moderation rules, and push notifications
- Native Performance: Direct access to native iOS optimizations and latest features
- Version Control: Track changes and manage updates through your own repository
Next Steps
After installation, continue with:Authentication Setup
Configure user authentication and API credentials
First Component
Add your first UIKit component to your app
Customization
Customize themes, colors, and styling
Installation Complete? Head to Authentication Setup to configure your API credentials and start building!