Add SPM Support to a Capacitor Plugin Add Swift Package Manager (SPM) support to an existing Capacitor plugin by replacing the Objective-C bridge with the Swift protocol and adding a manifest. Prerequisites | Requirement | Version | | ----------------- | ------- | | Capacitor | 6+ | | Swift | 5.9+ | | Xcode | 15+ | The project must be a Capacitor plugin (not an app project). The plugin must have an existing iOS implementation with Swift source files in . Procedures Step 1: Gather Plugin Information 1. Read in the plugin root. Extract: - The plugin package name (e.g., ). - The existing array e…