腾讯云实时音视频(TRTC)第三方美颜插件的 iOS Swift Package 分发仓库,对应 CocoaPods 上的
TXCustomBeautyProcesserPlugin。
模块名与 CocoaPods 完全一致,因此接入方式无需改动:
import TXCustomBeautyProcesserPluginXcode 中 File > Add Package Dependencies...,填入仓库地址:
https://github.com/Tencent-RTC/TXCustomBeautyProcesserPlugin_SwiftPM
版本规则建议 Up to Next Major Version 从 1.0.2 开始。
或在 Package.swift 中声明:
dependencies: [
.package(
url: "https://github.com/Tencent-RTC/TXCustomBeautyProcesserPlugin_SwiftPM",
.upToNextMajor(from: "1.0.2")
)
],
targets: [
.target(
name: "YourTarget",
dependencies: [
.product(name: "TXCustomBeautyProcesserPlugin", package: "TXCustomBeautyProcesserPlugin_SwiftPM")
]
)
]pod 'TXCustomBeautyProcesserPlugin'| SPM 版本 | 对应 CocoaPods 版本 | 说明 |
|---|---|---|
| 1.0.2 | 1.0.2 | 首个 SwiftPM 版本,源码与 CocoaPods 1.0.2 完全一致 |
- 平台:iOS 12 及以上
- Swift:5.7 及以上
- API 与 CocoaPods 版本完全一致,
ITXCustomBeautyProcesserFactory、ITXCustomBeautyProcesser、ITXCustomBeautyVideoFrame等接口签名不变
MIT