Swiftpack.co - d-date/google-mlkit-swiftpm as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by d-date.
d-date/google-mlkit-swiftpm 3.2.1
Google MLKit for iOS in Swift Package Manager
⭐️ 42
🕓 3 days ago
iOS
.package(url: "https://github.com/d-date/google-mlkit-swiftpm.git", from: "3.2.1")

Google MLKit SwiftPM Wrapper

This is experimental project for building MLKit in Swift Package Manager.

Requirements

  • iOS 14 and later
  • Xcode 13.2.1 and later

Installation

Use Swift Package Manager to install

    .package(url: "https://github.com/d-date/google-mlkit-swiftpm", from: "3.2.1")

Link .bundle to your project

The MLKitFaceDetection contains GoogleMVFaceDetectorResources.bundle. Since the bundle can't be introduced via Swift PM, you need to link to your project by yourself.

Download GoogleMVFaceDetectorResources.bundle from Release and add to your Xcode project and make it available in your build target.

Limitation

  • Since pre-built MLKit binary missing arm64 for iphonesimulator, this project enables to build in arm64 for iphoneos and x86_64 for iphonesimulator only.
  • Only supported Face Detection and Barcode Scanning right now.

Example

Open Example/Example.xcworkspace and fixing code signing to yours.

GitHub

link
Stars: 42
Last commit: 3 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Use GitHub Release
3 days ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics