portal_flutter_ios
iOS implementation of the portal_flutter plugin.
See the main package portal_flutter for documentation.
Native dependency setup
This package depends on PortalSwift, which is distributed via GitHub rather than the CocoaPods trunk. How you get it depends on which Apple dependency manager Flutter uses for your app.
Swift Package Manager (default on Flutter 3.44+)
Nothing to do. PortalSwift is declared in ios/portal_flutter_ios/Package.swift and resolved
straight from its git URL.
On Flutter versions before 3.44, enable SPM first:
flutter config --enable-swift-package-manager
CocoaPods (Flutter before 3.44, or SPM disabled)
PortalSwift cannot be resolved from the trunk, so add it to your app's ios/Podfile yourself:
pod 'PortalSwift', :git => 'https://github.com/portal-hq/PortalSwift.git', :tag => '8.1.0'
The tag must match the PortalSwift version in portal_flutter_ios.podspec. PortalSwift ships
its own podspec whose version tracks the tag, so a mismatched tag is an unsatisfiable constraint:
pod install fails outright rather than the build failing later.
Libraries
- portal_flutter_ios
- iOS implementation of the portal_flutter plugin.